new SendVictorAction()
Sends message announcing the winner of the game.
- Source:
Extends
- HungryGames~Action~ChannelAction
Methods
-
<static> create()
-
Create action from save data.
- Source:
Returns:
The created action.- Type
- HungryGames~SendVictorAction
-
<private> _sendNoVictor(hg, game, channel)
-
Send the message that no one has won the games.
Parameters:
Name Type Description hgHungryGames HungryGames context. gameHungryGames~GuildGame Game context. channelDiscord~TextChannel Channel to send the message. - Source:
-
<private> _sendSoloVictor(hg, game, channel, p, team)
-
Send the message that a player has won the games.
Parameters:
Name Type Argument Description hgHungryGames HungryGames context. gameHungryGames~GuildGame Game context. channelDiscord~TextChannel Channel to send the message. pHungryGames~Player The last player surviving. teamHungryGames~Team <nullable>
The last team surviving, if one. - Source:
-
<private> _sendTeamVictor(hg, game, channel, team)
-
Send the message that a team has won the games.
Parameters:
Name Type Description hgHungryGames HungryGames context. gameHungryGames~GuildGame Game context. channelDiscord~TextChannel Channel to send the message. teamHungryGames~Team The last team surviving. - Source: