Package org.javacord.api.interaction
Class ServerSlashCommandPermissionsBuilder
- java.lang.Object
-
- org.javacord.api.interaction.ServerSlashCommandPermissionsBuilder
-
public class ServerSlashCommandPermissionsBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerSlashCommandPermissionsBuilder(long commandId, List<SlashCommandPermissions> permissions)Creates an instance of this server slash command permissions builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCommandId()Gets the command ID.List<SlashCommandPermissions>getPermissions()Gets a list of the slash command permissions.
-
-
-
Constructor Detail
-
ServerSlashCommandPermissionsBuilder
public ServerSlashCommandPermissionsBuilder(long commandId, List<SlashCommandPermissions> permissions)Creates an instance of this server slash command permissions builder.- Parameters:
commandId- The command ID which should be updated.permissions- The permissions for the command which should be updated.
-
-
Method Detail
-
getCommandId
public long getCommandId()
Gets the command ID.- Returns:
- The command ID.
-
getPermissions
public List<SlashCommandPermissions> getPermissions()
Gets a list of the slash command permissions.- Returns:
- A list containing the slash command permissions.
-
-