Interface MessageReference

All Superinterfaces:
Entity
All Known Implementing Classes:
MessageReferenceImpl

public interface MessageReference extends Entity
Since:
8/19/19.
Author:
amy
  • Method Summary

    Modifier and Type
    Method
    Description
    The id of the channel this message reference is from.
    default io.reactivex.rxjava3.core.Maybe<Guild>
    The guild this entity is from.
    The id of the guild this message reference is from.
    The id of the message this message reference is from.

    Methods inherited from interface com.mewna.catnip.entity.Entity

    catnip, serialize
  • Method Details

    • messageId

      @Nullable @CheckReturnValue String messageId()
      The id of the message this message reference is from. May be null.
      Returns:
      String representing the message ID.
    • channelId

      @Nullable @CheckReturnValue String channelId()
      The id of the channel this message reference is from. May be null in the case of inline replies.
      Returns:
      String representing the channel ID.
    • guildId

      @Nullable @CheckReturnValue String guildId()
      The id of the guild this message reference is from. May be null.
      Returns:
      String representing the guild ID.
    • guild

      @Nonnull @CheckReturnValue default io.reactivex.rxjava3.core.Maybe<Guild> guild()
      The guild this entity is from.
      Returns:
      Guild represented by the guild ID.