Interface MessageContextMenuCommandEvent

    • 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.