Class: RunCommandAction

HungryGames~Action~ RunCommandAction


new RunCommandAction(msg, author)

Create an action that will send a message to the game channel.
Parameters:
Name Type Description
msg string The command string.
author string | external:Discord~User | external: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 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.
Type
HungryGames~RunCommandAction