Class GenericMessageEvent

    • Constructor Detail

      • GenericMessageEvent

        public GenericMessageEvent​(JDA api,
                                   long responseNumber,
                                   long messageId,
                                   MessageChannel channel)
    • Method Detail

      • getMessageId

        public java.lang.String getMessageId()
        The id for this message
        Returns:
        The id for this message
      • getMessageIdLong

        public long getMessageIdLong()
        The id for this message
        Returns:
        The id for this message
      • isFromType

        public boolean isFromType​(ChannelType type)
        Indicates whether the message is from the specified ChannelType
        Parameters:
        type - The ChannelType
        Returns:
        True, if the message is from the specified channel type
      • getChannelType

        public ChannelType getChannelType()
        The ChannelType for this message
        Returns:
        The ChannelType
      • getGuild

        public Guild getGuild()
        The Guild the Message was received in.
        If this Message was not received in a TextChannel, this will return null.
        Returns:
        The Guild the Message was received in or null if not from a TextChannel
        See Also:
        isFromType(ChannelType)
      • getTextChannel

        public TextChannel getTextChannel()
        The TextChannel the Message was received in.
        If this Message was not received in a TextChannel, this will return null.
        Returns:
        The TextChannel the Message was received in or null if not from a TextChannel
        See Also:
        isFromType(ChannelType)
      • getGroup

        public Group getGroup()
        The Group the Message was received in.
        If this Message was not received in a Group, this will return null.
        Returns:
        The Group the Message was received in or null if not from a Group
        See Also:
        isFromType(ChannelType)