GameKit.Challenge.Decline
-------------------------

Declines a challenge.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Challenge.Decline"; ChallengeRef ) 

**MBS**( **"GameKit.Challenge.Decline";** /\* Declines a challenge. \*/  
**$ChallengeRef**) /\* The identifier for the challenge.e.g. $challenge \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ChallengeRef | The identifier for the challenge. | $challenge |

### Result

Returns OK or error.

### Description

Declines a challenge.  
If your game implements a custom user interface to display challenges, it should include controls that allow a player to decline a challenge. If the player uses your user interface to decline a challenge, call this method.  
### See also

- [GameKit.Challenge.Message](GameKitChallengeMessage.md)
- [GameKit.Challenge.Score](GameKitChallengeScore.md)
- [GameKit.Challenge.State](GameKitChallengeState.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Challenge.CompletionDate](GameKitChallengeCompletionDate.md) - [GameKit.Challenge.IssueDate](GameKitChallengeIssueDate.md)

[HTML Version](GameKitChallengeDecline.shtml)