---
title: "didRejectPlayer(_:reason:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tabletopgame/multiplayerdelegate-swift.protocol/didrejectplayer(_:reason:)"
---

# didRejectPlayer(_:reason:)

A player that tried to join was rejected or a player that previously joined our game was ejected.

## Declaration

```swift
func didRejectPlayer(_ playerID: PlayerIdentifier, reason: any Error)
```

## See Also

### Handling errors

- [multiplayerSessionFailed(reason:)](tabletopkit/tabletopgame/multiplayerdelegate-swift.protocol/multiplayersessionfailed(reason:).md)
