Class MessageEvent<M>

    • Constructor Detail

      • MessageEvent

        protected MessageEvent​(M message,
                               String prefix,
                               String usedAlias)
        Constructs a new message event with the given message, prefix, and used alias as payload.
        Parameters:
        message - the message payload of this message event
        prefix - the command prefix that was used to trigger the command
        usedAlias - the alias that was used to trigger the command
    • Method Detail

      • getMessage

        public M getMessage()
        Returns the message payload of this message event.
        Returns:
        the message payload of this message event
      • getPrefix

        public String getPrefix()
        Returns the command prefix that was used to trigger the command.
        Returns:
        the command prefix that was used to trigger the command
      • getUsedAlias

        public String getUsedAlias()
        Returns the alias that was used to trigger the command.
        Returns:
        the alias that was used to trigger the command