Interface JDABot


  • public interface JDABot
    • Method Detail

      • getJDA

        JDA getJDA()
        Returns the JDA instance of this JDABot
        Returns:
        The corresponding JDA instance
      • getInviteUrl

        java.lang.String getInviteUrl​(Permission... permissions)
        Creates an authorization invite url for the currently logged in Bot-Account.
        Example Format: 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

        Parameters:
        permissions - The permissions to use in your invite, these can be changed by the link user.
        If no permissions are provided the permissions parameter is omitted
        Returns:
        A valid OAuth2 invite url for the currently logged in Bot-Account
      • getInviteUrl

        java.lang.String getInviteUrl​(java.util.Collection<Permission> permissions)
        Creates an authorization invite url for the currently logged in Bot-Account.
        Example Format: 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

        Parameters:
        permissions - The permissions to use in your invite, these can be changed by the link user.
        If no permissions are provided the permissions parameter is omitted
        Returns:
        A valid OAuth2 invite url for the currently logged in Bot-Account
      • getShardManager

        ShardManager getShardManager()
        Returns the ShardManager that manages this JDA instances or null if this instance is not managed by any ShardManager.
        Returns:
        The corresponding ShardManager or null if there is no such manager