Package org.javacord.api
Class BotInviteBuilder
- java.lang.Object
-
- org.javacord.api.BotInviteBuilder
-
public class BotInviteBuilder extends Object
A tool to create bot invites.
-
-
Constructor Summary
Constructors Constructor Description BotInviteBuilder(long clientId)Creates a new bot invite builder.BotInviteBuilder(String clientId)Creates a new bot invite builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Creates the invite link.BotInviteBuildersetPermissions(Permissions permissions)Sets the permissions the bot should have.
-
-
-
Field Detail
-
BASE_LINK
public static final String BASE_LINK
The base link of a bot invite.- See Also:
- Constant Field Values
-
-
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.
-
-