public interface JDABot
Modifier and Type | Method | Description |
---|---|---|
RestAction<ApplicationInfo> |
getApplicationInfo() |
Retrieves the
ApplicationInfo for
the application that owns the logged in Bot-Account. |
java.lang.String |
getInviteUrl(java.util.Collection<Permission> permissions) |
Creates an authorization invite url for the currently logged in Bot-Account.
|
java.lang.String |
getInviteUrl(Permission... permissions) |
Creates an authorization invite url for the currently logged in Bot-Account.
|
JDA |
getJDA() |
Returns the
JDA instance of this JDABot |
JDA getJDA()
JDA
instance of this JDABot@CheckReturnValue RestAction<ApplicationInfo> getApplicationInfo()
ApplicationInfo
for
the application that owns the logged in Bot-Account.
RestAction
- Type: ApplicationInfo
ApplicationInfo
of the bot's application.java.lang.String getInviteUrl(Permission... permissions)
https://discordapp.com/oauth2/authorize?scope=bot&client_id=288202953599221761&permissions=8
Hint: To enable a pre-selected Guild of choice append the parameter &guild_id=YOUR_GUILD_ID
permissions
- The permissions to use in your invite, these can be changed by the link user.
permissions
parameter is omittedjava.lang.String getInviteUrl(java.util.Collection<Permission> permissions)
https://discordapp.com/oauth2/authorize?scope=bot&client_id=288202953599221761&permissions=8
Hint: To enable a pre-selected Guild of choice append the parameter &guild_id=YOUR_GUILD_ID
permissions
- The permissions to use in your invite, these can be changed by the link user.
permissions
parameter is omitted