Interface UserContextMenuCommandEvent

    • Method Detail

      • getUserContextMenuInteraction

        default UserContextMenuInteraction getUserContextMenuInteraction()
        Gets the created interaction as UserContextMenuInteraction, if the interaction is of this type.
        Returns:
        The interaction.
      • getUserContextMenuInteractionWithCommandId

        default java.util.Optional<UserContextMenuInteraction> getUserContextMenuInteractionWithCommandId​(long commandId)
        Gets the created interaction as UserContextMenuInteraction, 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.