Class DiscordChannelCommandEvent
java.lang.Object
tv.phantombot.event.Event
tv.phantombot.event.discord.DiscordEvent
tv.phantombot.event.discord.channel.DiscordChannelEvent
tv.phantombot.event.discord.channel.DiscordChannelCommandEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
getArgs()
Method that returns the array of argumentsMethod that returns the string of arguments.Method that returns the command.boolean
isAdmin()
Method that returns if the user a admin in the server.setCommand
(String command) Method that sets the command for this class.toString()
Method that returns this object as a string.Methods inherited from class tv.phantombot.event.discord.DiscordEvent
getChannel, getChannelId, getDiscordChannel, getDiscordMessage, getDiscordUser, getDiscordVoiceChannel, getDiscriminator, getMention, getMessage, getSender, getSenderId, getUsername
-
Constructor Details
-
Method Details
-
setCommand
Method that sets the command for this class. Mostly used for aliases.- Returns:
- command
-
getCommand
Method that returns the command.- Returns:
- command
-
getArguments
Method that returns the string of arguments.- Returns:
- arguments
-
getArgs
Method that returns the array of arguments- Returns:
- args
-
isAdmin
public boolean isAdmin()Method that returns if the user a admin in the server. -
toString
Method that returns this object as a string.
-