Class BotInviteBuilder



  • public class BotInviteBuilder
    extends Object
    A tool to create bot invites.
    • Constructor Detail

      • BotInviteBuilder

        public BotInviteBuilder​(long clientId)
        Creates a new bot invite builder.
        Parameters:
        clientId - The client id of the bot's application.
      • BotInviteBuilder

        public BotInviteBuilder​(String clientId)
        Creates a new bot invite builder.
        Parameters:
        clientId - The client id of the bot's application.
    • Method Detail

      • setPermissions

        public BotInviteBuilder setPermissions​(Permissions permissions)
        Sets the permissions the bot should have.
        Parameters:
        permissions - The permissions to set.
        Returns:
        The current instance in order to chain call methods.
      • build

        public String build​()
        Creates the invite link.
        Returns:
        The invite link for the bot.