object APIMessage

Source
APIMessage.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. APIMessage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class ChannelCreate(guild: Option[GatewayGuild], channel: GuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when a new channel is created.

    Sent to the client when a new channel is created.

    channel

    The channel that was created.

  2. case class ChannelDelete(guild: Option[GatewayGuild], channel: GuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when a channel is deleted.

    Sent to the client when a channel is deleted. The current snapshot will not contain the channel.

    channel

    The channel that was deleted.

  3. sealed trait ChannelMessage extends APIMessage

    Trait that covers all channel messages

  4. case class ChannelPinsUpdate(guild: Option[GatewayGuild], channelId: TextChannelId, mostRecent: Option[OffsetDateTime], cache: CacheState, gatewayInfo: GatewayInfo) extends TextChannelIdMessage with Product with Serializable

    Sent to the client when a message is pinned or unpinned in a text channel where guild information is not available.

    Sent to the client when a message is pinned or unpinned in a text channel where guild information is not available. This is not sent when a pinned message is deleted.

    guild

    The guild where the change happened

    channelId

    The channel where the change happened

    mostRecent

    The time the most recent pinned message was pinned

  5. case class ChannelUpdate(guild: Option[GatewayGuild], channel: Channel, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when a channel is edited or updated.

    Sent to the client when a channel is edited or updated.

    channel

    The channel that was edited.

  6. case class ClientAddedToThread(guild: GatewayGuild, channel: ThreadGuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Sent to the client is added to a thread.

    Sent to the client is added to a thread.

    channel

    The thread that the client was added to.

  7. case class GuildBanAdd(guild: GatewayGuild, user: User, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when an user is banned from a guild.

    Sent to the client when an user is banned from a guild. If you need the ackcord.data.GuildMember object of the user, you can find it in cache.previous.

    guild

    The guild the user was banned from.

    user

    The banned user.

  8. case class GuildBanRemove(guild: GatewayGuild, user: User, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when an user is unbanned from a guild.

    Sent to the client when an user is unbanned from a guild.

    guild

    The guild where the user was previously banned.

    user

    The previously banned user.

  9. case class GuildCreate(guild: GatewayGuild, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client after the client connects to the gateway, when a previously unavailable guild becomes available, and when the client joins a new guild.

    Sent to the client after the client connects to the gateway, when a previously unavailable guild becomes available, and when the client joins a new guild.

    guild

    The created guild object

  10. case class GuildDelete(guild: GatewayGuild, unavailable: Option[Boolean], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client either if a guild becomes unavailable due to and outage, or if the client leaves or is kicked from a guild.

    Sent to the client either if a guild becomes unavailable due to and outage, or if the client leaves or is kicked from a guild.

    guild

    The deleted guild

    unavailable

    If an outage caused this event

  11. case class GuildEmojiUpdate(guild: GatewayGuild, emojis: Seq[Emoji], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when the emojis of a guild have been updated.

    Sent to the client when the emojis of a guild have been updated. If you need the old emojis, you can find them in cache.previous.

    guild

    The guild where the update occurred.

    emojis

    The new emojis.

  12. case class GuildIntegrationsUpdate(guild: GatewayGuild, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when the integrations of a guild were updated.

    Sent to the client when the integrations of a guild were updated. You have to fetch the integrations yourself.

    guild

    The guild where the update occurred.

  13. case class GuildMemberAdd(member: GuildMember, guild: GatewayGuild, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a user joins the guild.

    Sent to the client when a user joins the guild.

    member

    The new member

    guild

    The joined guild

  14. case class GuildMemberRemove(user: User, guild: GatewayGuild, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a user leaves the guild (or is kicked or banned).

    Sent to the client when a user leaves the guild (or is kicked or banned). If you need the ackcord.data.GuildMember, you can find it in cache.previous.

    user

    The user that left

    guild

    The guild the user left

  15. case class GuildMemberUpdate(guild: GatewayGuild, roles: Seq[Role], user: User, nick: Option[String], joinedAt: Option[OffsetDateTime], premiumSince: Option[OffsetDateTime], deaf: Boolean, mute: Boolean, pending: Boolean, communicationDisabledUntil: Option[OffsetDateTime], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a guild member is updated.

    Sent to the client when a guild member is updated. The fields seen here are all the fields that can change.

    guild

    The guild of the guild member.

    roles

    Thew new roles for the guild member.

    user

    The user of the updated guild member.

    nick

    Nick of the user if one was set.

    joinedAt

    When the user joined the guild.

    premiumSince

    When the user started boosting the guild.

    deaf

    If the user is deafened in the guild.

    mute

    If the user is muted in the guild.

    pending

    If the user has not yet passed the guild's membership screening.

  16. case class GuildMembersChunk(guild: GatewayGuild, members: Seq[GuildMember], chunkIndex: Int, chunkCount: Int, notFound: Option[Seq[UserId]], nonce: Option[String], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client if the client requests to get all members (even offline ones) for large guilds using ackcord.gateway.RequestGuildMembers.

    Sent to the client if the client requests to get all members (even offline ones) for large guilds using ackcord.gateway.RequestGuildMembers.

    guild

    The guild requested for.

    members

    The guild members in this chunk.

  17. sealed trait GuildMessage extends APIMessage

    Trait that covers all guild messages.

  18. case class GuildRoleCreate(guild: GatewayGuild, role: Role, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a new role is created.

    Sent to the client when a new role is created.

    guild

    The guild of the new role

    role

    The new role

  19. case class GuildRoleDelete(guild: GatewayGuild, roleId: Role, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a role is deleted

    Sent to the client when a role is deleted

    guild

    The guild of the deleted role

    roleId

    The deleted role.

  20. case class GuildRoleUpdate(guild: GatewayGuild, role: Role, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a role is updated.

    Sent to the client when a role is updated.

    guild

    The guild of the updated role

    role

    The updated role

  21. case class GuildScheduledEventCreate(guild: GatewayGuild, scheduledEvent: GuildScheduledEvent, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a guild scheduled event has been created.

    Sent to the client when a guild scheduled event has been created.

    guild

    The guild of the scheduled event.

    scheduledEvent

    The scheduled event itself.

  22. case class GuildScheduledEventDelete(guild: GatewayGuild, scheduledEvent: GuildScheduledEvent, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a guild scheduled event has been deleted.

    Sent to the client when a guild scheduled event has been deleted.

    guild

    The guild of the scheduled event.

    scheduledEvent

    The scheduled event itself.

  23. case class GuildScheduledEventUpdate(guild: GatewayGuild, scheduledEvent: GuildScheduledEvent, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a guild scheduled event has been updated.

    Sent to the client when a guild scheduled event has been updated.

    guild

    The guild of the scheduled event.

    scheduledEvent

    The scheduled event itself.

  24. case class GuildStickerUpdate(guild: GatewayGuild, stickers: Seq[Sticker], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when the stickers of a guild have been updated.

    Sent to the client when the stickers of a guild have been updated. If you need the old stickers, you can find them in cache.previous.

    guild

    The guild where the update occurred.

    stickers

    The new stickers.

  25. case class GuildUpdate(guild: GatewayGuild, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when the guild object is updated.

    Sent to the client when the guild object is updated.

    guild

    The updated guild.

  26. case class IntegrationCreate(guild: GatewayGuild, integration: Integration, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an integration is created.

  27. case class IntegrationDelete(guild: GatewayGuild, id: IntegrationId, applicationId: Option[ApplicationId], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an integration is deleted.

    Sent when an integration is deleted.

    applicationId

    Id of the bot/OAuth2 application for the integration.

  28. case class IntegrationUpdate(guild: GatewayGuild, integration: Integration, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an integration is updated.

  29. case class InteractionCreate(rawInteraction: RawInteraction, cache: CacheState, gatewayInfo: GatewayInfo) extends APIMessage with OptGuildMessage with Product with Serializable
  30. case class InviteCreate(guild: Option[GatewayGuild], channel: TextChannel, invite: CreatedInvite, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with ChannelMessage with Product with Serializable

    Sent when an invite is created.

    Sent when an invite is created.

    guild

    The guild the invite is for.

    channel

    The channel the invite directs to.

  31. case class InviteDelete(guild: Option[GatewayGuild], channel: TextChannel, code: String, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with ChannelMessage with Product with Serializable

    Sent when an invite is deleted.

    Sent when an invite is deleted.

    guild

    The guild the invite was for.

    channel

    The channel the invite directed to.

  32. case class MessageCreate(guild: Option[GatewayGuild], message: Message, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with MessageMessage with Product with Serializable

    Sent to the client when a message is created (posted).

    Sent to the client when a message is created (posted).

    message

    The sent message

  33. case class MessageDelete(messageId: MessageId, guild: Option[GatewayGuild], channelId: TextChannelId, cache: CacheState, gatewayInfo: GatewayInfo) extends MessageIdMessage with TextChannelIdMessage with Product with Serializable

    Sent to the client when a message is deleted.

    Sent to the client when a message is deleted.

    messageId

    The deleted message.

    channelId

    The channel of the message.

  34. case class MessageDeleteBulk(messageIds: Seq[MessageId], guild: Option[GatewayGuild], channelId: TextChannelId, cache: CacheState, gatewayInfo: GatewayInfo) extends TextChannelIdMessage with Product with Serializable

    Sent to the client when multiple messages are deleted at the same time.

    Sent to the client when multiple messages are deleted at the same time. Often this is performed by a bot.

    messageIds

    The deleted messages

    channelId

    The channel of the deleted messages

  35. sealed trait MessageIdMessage extends TextChannelIdMessage

    Trait that covers all message id messages

  36. sealed trait MessageMessage extends APIMessage

    Trait that covers all message messages.

  37. case class MessageReactionAdd(userId: UserId, guild: Option[GatewayGuild], channelId: TextChannelId, messageId: MessageId, emoji: PartialEmoji, user: Option[User], member: Option[GuildMember], cache: CacheState, gatewayInfo: GatewayInfo) extends MessageIdMessage with TextChannelIdMessage with Product with Serializable

    Sent to the client when a user adds a reaction to a message.

    Sent to the client when a user adds a reaction to a message.

    userId

    The id of the user that added the reaction.

    guild

    The guild the message was sent in.

    channelId

    The channel the message was sent in.

    messageId

    The id of the message the user added an reaction to.

    emoji

    The emoji the user reacted with.

    user

    The user that added the reaction.

    member

    The guild member that added the reaction.

  38. case class MessageReactionRemove(userId: UserId, guild: Option[GatewayGuild], channelId: TextChannelId, messageId: MessageId, emoji: PartialEmoji, user: Option[User], member: Option[GuildMember], cache: CacheState, gatewayInfo: GatewayInfo) extends MessageIdMessage with TextChannelIdMessage with Product with Serializable

    Sent to the client when a user removes a reaction from a message.

    Sent to the client when a user removes a reaction from a message.

    userId

    The id of the user that added the reaction.

    guild

    The guild the message was sent in.

    channelId

    The channel the message was sent in.

    messageId

    The id of the message the user added an reaction to.

    emoji

    The emoji the user removed.

    user

    The user that added the reaction.

    member

    The guild member that added the reaction.

  39. case class MessageReactionRemoveAll(guild: Option[GatewayGuild], channelId: TextChannelId, messageId: MessageId, cache: CacheState, gatewayInfo: GatewayInfo) extends MessageIdMessage with TextChannelIdMessage with Product with Serializable

    Sent to the client when a user removes all reactions from a message.

    Sent to the client when a user removes all reactions from a message. The emojis of the message can be found in cache.previous.

    guild

    The guild of the message.

    channelId

    The id of the channel the message was sent it.

    messageId

    The id of the message the user removed the reactions from.

  40. case class MessageReactionRemoveEmoji(guild: Option[GatewayGuild], channelId: TextChannelId, messageId: MessageId, emoji: PartialEmoji, cache: CacheState, gatewayInfo: GatewayInfo) extends MessageIdMessage with TextChannelIdMessage with Product with Serializable

    Sent to the client when a user removes all reactions of a specific emoji from a message.

    Sent to the client when a user removes all reactions of a specific emoji from a message.

    guild

    The guild of the message.

    channelId

    The id of the channel the message was sent it.

    messageId

    The id of the message the user removed the reactions from.

    emoji

    The removed emoji.

  41. case class MessageUpdate(guild: Option[GatewayGuild], messageId: MessageId, channelId: TextChannelId, cache: CacheState, gatewayInfo: GatewayInfo) extends OptGuildMessage with MessageIdMessage with Product with Serializable

    Sent to the client when a message is updated.

    Sent to the client when a message is updated.

    messageId

    The id of the message that changed.

  42. sealed trait OptGuildMessage extends APIMessage

    A trait that covers all messages that might have an guild associated with them

  43. case class PresenceUpdate(guild: GatewayGuild, user: User, presence: Presence, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when the presence of a user updates.

    Sent to the client when the presence of a user updates.

    guild

    The guild where the update took place

    user

    The user of the presence

    presence

    The new presence

  44. case class Ready(applicationId: ApplicationId, cache: CacheState, gatewayInfo: GatewayInfo) extends APIMessage with Product with Serializable

    Sent to the client when Discord is ready to serve requests.

    Sent to the client when Discord is ready to serve requests. No requests should be sent before this has been received.

  45. case class Resumed(cache: CacheState, gatewayInfo: GatewayInfo) extends APIMessage with Product with Serializable

    Sent to the client when a previously interrupted connection is resumed.

  46. case class StageInstanceCreate(guild: GatewayGuild, stageInstance: StageInstance, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an stage instance is created.

  47. case class StageInstanceDelete(guild: GatewayGuild, stageInstance: StageInstance, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an stage instance is created.

  48. case class StageInstanceUpdate(guild: GatewayGuild, stageInstance: StageInstance, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when an stage instance is deleted.

  49. sealed trait TextChannelIdMessage extends OptGuildMessage

    Trait that covers all channel id messages

  50. case class ThreadCreate(guild: GatewayGuild, channel: ThreadGuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when a new thread is created.

    Sent to the client when a new thread is created.

    channel

    The thread that was created.

  51. case class ThreadDelete(guild: GatewayGuild, threadId: ThreadGuildChannelId, parentId: TextGuildChannelId, tpe: ChannelType, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent to the client when a thread is deleted.

    Sent to the client when a thread is deleted. The current snapshot will not contain the channel.

    threadId

    The id of the thread that was deleted.

  52. case class ThreadListSync(guild: GatewayGuild, updatedChannelsIds: Seq[TextGuildChannelId], threads: Seq[ThreadGuildChannel], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent when the client gains access to a channel.

    Sent when the client gains access to a channel.

    updatedChannelsIds

    The ids of the channels where threads were updated.

    threads

    The new updated threads.

  53. case class ThreadMemberUpdate(guild: GatewayGuild, channel: ThreadGuildChannel, member: ThreadMember, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Sent when the thread member object for the current user is updated.

    Sent when the thread member object for the current user is updated.

    channel

    The channel where the update took place.

    member

    An updated thread member for the current user.

  54. case class ThreadMembersUpdate(guild: GatewayGuild, channel: ThreadGuildChannel, addedMembers: Seq[ThreadMember], removedMembers: Seq[UserId], cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Send when anyone is added or removed from a thread.

    Send when anyone is added or removed from a thread. If the current user does not have the GUILD_MEMBERS intent, then this will only be sent for the current user.

    channel

    The channel that had users added or removed.

    addedMembers

    The members that were added to the channel.

    removedMembers

    The members that were removed from the channel.

  55. case class ThreadUpdate(guild: GatewayGuild, channel: ThreadGuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when a thread is edited or updated.

    Sent to the client when a thread is edited or updated.

    channel

    The thread that was edited.

  56. case class TypingStart(guild: Option[GatewayGuild], channelId: TextChannelId, userId: UserId, timestamp: Instant, user: Option[User], member: Option[GuildMember], cache: CacheState, gatewayInfo: GatewayInfo) extends TextChannelIdMessage with Product with Serializable

    Sent to the client when a user starts typing in a channel

    Sent to the client when a user starts typing in a channel

    guild

    The guild where the typing happened

    channelId

    The id of the channel where the typing happened

    userId

    The id of the user that began typing

    timestamp

    When user started typing

    user

    The user that began typing

    member

    The member that began typing

  57. case class UserUpdate(user: User, cache: CacheState, gatewayInfo: GatewayInfo) extends APIMessage with Product with Serializable

    Sent to the client when a user object is updated.

    Sent to the client when a user object is updated.

    user

    The new user.

  58. case class VoiceServerUpdate(token: String, guild: GatewayGuild, endpoint: String, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with Product with Serializable

    Sent a guilds voice server is updated.

    Sent a guilds voice server is updated. Also used when connecting to a voice channel.

    token

    The voice connection token

    guild

    The guild of the update

    endpoint

    The voice server

  59. case class VoiceStateUpdate(voiceState: VoiceState, cache: CacheState, gatewayInfo: GatewayInfo) extends APIMessage with Product with Serializable

    Sent to the client when a user joins/leaves/moves voice channels

    Sent to the client when a user joins/leaves/moves voice channels

    voiceState

    New voice states

  60. case class WebhookUpdate(guild: GatewayGuild, channel: GuildChannel, cache: CacheState, gatewayInfo: GatewayInfo) extends GuildMessage with ChannelMessage with Product with Serializable

    Sent to the client when guilds webhooks are updated.

    Sent to the client when guilds webhooks are updated.

    guild

    The guild of the updated webhook

    channel

    The channel for the webhook

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped