Class: TakeRoleAction

HungryGames~Action~ TakeRoleAction


new TakeRoleAction(role)

Create an action that will remove a Discord role from a member.
Parameters:
Name Type Description
role external: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
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~TakeRoleAction