Interface MessageCommandContext

All Superinterfaces:
AccessValidator, CommandContext
All Known Implementing Classes:
MessageContextImpl

public interface MessageCommandContext extends CommandContext
The execution context of an command invoked through a message.
Since:
1.0
Version:
1.0
  • Method Details

    • getEvent

      MessageCreateEvent getEvent()
      Description copied from interface: CommandContext
      Retrieves the event that triggered the command.
      Specified by:
      getEvent in interface CommandContext
      Returns:
      The trigger event.
    • getMessage

      @Pure default Message getMessage()
      Retrieves the message that invoked the command.
      Returns:
      The invoking message.
    • getMessageId

      @Pure default Snowflake getMessageId()
      Retrieves the ID of the message that invoked the command.
      Returns:
      The invoking message ID.