Interface MessageContextMenuCommandEvent
-
- All Superinterfaces:
ApplicationCommandEvent,Event
public interface MessageContextMenuCommandEvent extends ApplicationCommandEvent
A message context menu command event.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MessageContextMenuInteractiongetMessageContextMenuInteraction()Gets the created interaction as MessageContextMenuInteraction, if the interaction is of this type.default java.util.Optional<MessageContextMenuInteraction>getMessageContextMenuInteractionWithCommandId(long commandId)Gets the created interaction as MessageContextMenuInteraction, if the interaction is of this type and the command id equals the given command id.-
Methods inherited from interface org.javacord.api.event.interaction.ApplicationCommandEvent
getInteraction
-
-
-
-
Method Detail
-
getMessageContextMenuInteraction
default MessageContextMenuInteraction getMessageContextMenuInteraction()
Gets the created interaction as MessageContextMenuInteraction, if the interaction is of this type.- Returns:
- The interaction.
-
getMessageContextMenuInteractionWithCommandId
default java.util.Optional<MessageContextMenuInteraction> getMessageContextMenuInteractionWithCommandId(long commandId)
Gets the created interaction as MessageContextMenuInteraction, if the interaction is of this type and the command id equals the given command id.- Parameters:
commandId- The command it to match.- Returns:
- The interaction.
-
-