Giving items to testers
The GetAccessForPlayer()
method returns a GetAccessResult which includes a table of matched roles. You can use this information to give certain items to a particular set of players.
The following example demonstrates how to give testers 100 coins.
GetAccessResult.matchedRoles
will only be populated if the player obtained access through Discord roles.
You can take advantage of this feature to jumpstart testers' job or for many other features.
Last updated