Class: GiveRoleAction

HungryGames~Action~ GiveRoleAction


new GiveRoleAction(role)

Create an action that will give a member a Discord role.
Parameters:
Name Type Description
role external:Discord~Role The role to give.
Source:

Extends

  • HungryGames~Action~MemberAction

Members


role

Update the role with a new value.
Source:

role

Get role ID of current configured role.
Source:

Methods


<static> create(client, id, obj)

Create action from save data.
Parameters:
Name Type Description
client external:Discord~Client Bot client context to get object references.
id string Guild ID this action is for.
obj object The parsed data from file.
Source:
Returns:
The created action, null if unable to find the given role.
Type
HungryGames~GiveRoleAction