Package org.javacord.api.interaction
Interface MessageContextMenu
-
- All Superinterfaces:
ApplicationCommand,ContextMenu,DiscordEntity,Specializable<ApplicationCommand>
public interface MessageContextMenu extends ContextMenu
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default MessageContextMenuUpdatercreateMessageContextMenuUpdater()Creates a message context menu updater from this MessageContextMenu instance.static MessageContextMenuBuilderwith(java.lang.String name)Create a new message context menu command builder with the given name and description.static MessageContextMenuBuilderwithRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)Create a new message context menu command builder with the given name and description.static MessageContextMenuBuilderwithRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)Create a new message 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 MessageContextMenuBuilder with(java.lang.String name)
Create a new message 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 message context menu command.- Returns:
- The new message context menu builder
-
withRequiredPermissions
static MessageContextMenuBuilder withRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)
Create a new message 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 message context menu command.requiredPermissions- The required permissions to be able to use this command.- Returns:
- The new message context menu builder
-
withRequiredPermissions
static MessageContextMenuBuilder withRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)
Create a new message 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 message context menu command.requiredPermissions- The required permissions to be able to use this command.- Returns:
- The new message context menu builder
-
createMessageContextMenuUpdater
default MessageContextMenuUpdater createMessageContextMenuUpdater()
Creates a message context menu updater from this MessageContextMenu instance.- Returns:
- The message context menu updater for this MessageContextMenu instance.
-
-