new TakeRoleAction(role)
Take a role from a member.
Parameters:
| Name | Type | Description |
|---|---|---|
role |
Discord~Role | The role to take. |
- Source:
Extends
- HungryGames~Action~MemberAction
Members
-
role
-
Get role ID of current configured role.
- Source:
-
role
-
Update the role with a new value.
- Source:
Methods
-
<static> create(client, id, obj)
-
Create action from save data.
Parameters:
Name Type Description clientDiscord~Client Bot client context to get object references. idstring Guild ID this action is for. objobject The parsed data from file. - Source:
Returns:
The created action, null if unable to find the given role.- Type
- HungryGames~TakeRoleAction