Class: GiveRoleAction

HungryGames~Action~ GiveRoleAction


new GiveRoleAction(role)

Give a role to a member.
Parameters:
Name Type Description
role Discord~Role The role to give.
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
client 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