This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Possible Method Paramers
Bastian Oppermann edited this page Nov 16, 2017
·
5 revisions
Depending on your library there may be different possible parameters. Some of them work with all three libs and some others only work for one library.
-
String
: The first String parameter is the command itself (e.g. for!info author
it would be"!info"
). Any additional String will be populated with an argument (e.g. for!info author bla
the 1st String would be"!info"
, the 2nd String"author"
, the 3rd String"bla"
and any other String parameternull
. -
String[]
: An array with all String parameters (e.g. for!info author bla
it's["author", "bla"]
.
-
DiscordApi
: The api instance. -
Message
: The message of the command. -
User
: The user who executed the command. -
Channel
: The channel of the command. -
TextChannel
: The text channel of the command. -
ServerTextChannel
: The server text channel of the command. If the command is executed in a private chat it'snull
. -
GroupChannel
: The group channel of the command. If the command is not executed in a group channel it'snull
. -
PrivateChannel
: The server text channel of the command. If the command is not executed in a private channel it'snull
. -
ServerChannel
: The server channel of the command. If the command is executed in a private chat it'snull
. -
Server
: The server of the command. If the command is executed in a private chat it'snull
. -
MessageAuthor
: The author of the message. The author is always a user. -
Object[]
: An array with all parameters as an object. It tries to convert parameters to anInteger
,User
orChannel
. It's a String if it's non of these three.
-
JDA
: The JDA instance. -
Message
: The message of the command. -
MessageReceivedEvent
: The event of the received message. -
User
: The user who executed the command. -
Member
: The member who executed the command. If the command is executed in a private chat it'snull
. -
MessageChannel
: The message channel of the command. -
TextChannel
: The text channel of the command. If the command is executed in a private chat it'snull
. -
PrivateChannel
: The private channel of the command. If the command is not executed in a private chat it'snull
. -
Guild
: The guild of the command. If the command is executed in a private chat it'snull
. -
Group
: The group channel of the command. If the command is not executed in a group channel it'snull
. -
Object[]
: An array with all parameters as an object. It tries to convert parameters to anInteger
,User
orTextChannel
. It's a String if it's non of these three.
-
IDiscordClient
: The client instance. -
IMessage
: The message of the command. -
IUser
: The user who executed the command. -
IChannel
: The text channel of the command. If the command is executed in a private chat it'snull
. -
IGuild
: The guild of the command. If the command is executed in a private chat it'snull
. -
Object[]
: An array with all parameters as an object. It tries to convert parameters to anInteger
,IUser
orIChannel
. It's a String if it's non of these three.