Package org.javacord.api.interaction
Interface UserContextMenu
-
- All Superinterfaces:
ApplicationCommand,ContextMenu,DiscordEntity,Specializable<ApplicationCommand>
public interface UserContextMenu extends ContextMenu
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default UserContextMenuUpdatercreateUserContextMenuUpdater()Creates a user context menu updater from this UserContextMenu instance.static UserContextMenuBuilderwith(java.lang.String name)Create a new user context menu builder with the given name and description.static UserContextMenuBuilderwithRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)Create a new user context menu command builder with the given name and description.static UserContextMenuBuilderwithRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)Create a new user context menu command builder with the given name and description.-
Methods inherited from interface org.javacord.api.interaction.ApplicationCommand
delete, deleteForServer, deleteForServer, deleteGlobal, getApplicationId, getDefaultRequiredPermissions, getDescription, getDescriptionLocalizations, getId, getName, getNameLocalizations, getServer, getServerId, getType, isDisabledByDefault, isEnabledInDms, isGlobalApplicationCommand, isServerApplicationCommand
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getIdAsString
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
with
static UserContextMenuBuilder with(java.lang.String name)
Create a new user context menu builder with the given name and description. CallApplicationCommandBuilder.createForServer(Server)orApplicationCommandBuilder.createGlobal(DiscordApi)on the returned builder to submit to Discord.- Parameters:
name- The name of the new user context menu command.- Returns:
- The new user context menu builder
-
withRequiredPermissions
static UserContextMenuBuilder withRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)
Create a new user context menu command builder with the given name and description. CallApplicationCommandBuilder.createForServer(Server)orApplicationCommandBuilder.createGlobal(DiscordApi)on the returned builder to submit to Discord.- Parameters:
name- The name of the new user context menu command.requiredPermissions- The required permissions to be able to use this command.- Returns:
- The new user context menu builder
-
withRequiredPermissions
static UserContextMenuBuilder withRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)
Create a new user context menu command builder with the given name and description. CallApplicationCommandBuilder.createForServer(Server)orApplicationCommandBuilder.createGlobal(DiscordApi)on the returned builder to submit to Discord.- Parameters:
name- The name of the new user context menu command.requiredPermissions- The required permissions to be able to use this command.- Returns:
- The new user context menu builder
-
createUserContextMenuUpdater
default UserContextMenuUpdater createUserContextMenuUpdater()
Creates a user context menu updater from this UserContextMenu instance.- Returns:
- The user context menu updater for this UserContextMenu instance.
-
-