Class: RunCommandAction

HungryGames~Action~ RunCommandAction


new RunCommandAction(msg, author)

Run a command in the game channel.
Parameters:
Name Type Description
msg string The command string.
author string | Discord~User | Discord~GuildMember The Discord user ID to run this command as.
Source:

Extends

  • HungryGames~Action~ChannelAction

Members


author

Get the current author ID.
Source:

author

Update the author with a new value.
Source:

command

Get the current command text.
Source:

command

Update the message 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.
Type
HungryGames~RunCommandAction