c

ackcord

MemoryCacheSnapshot

case class MemoryCacheSnapshot(botUser: @@[User, BotUser], dmChannelMap: SnowflakeMap[Channel, DMChannel], groupDmChannelMap: SnowflakeMap[Channel, GroupDMChannel], unavailableGuildMap: SnowflakeMap[Guild, UnavailableGuild], guildMap: SnowflakeMap[Guild, Guild], messageMap: SnowflakeMap[Channel, SnowflakeMap[Message, Message]], lastTypedMap: SnowflakeMap[Channel, SnowflakeMap[User, Instant]], userMap: SnowflakeMap[User, User], banMap: SnowflakeMap[Guild, SnowflakeMap[User, Ban]]) extends CacheSnapshotId with Product with Serializable

Represents the cache at some point in time

Source
MemoryCacheSnapshot.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MemoryCacheSnapshot
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CacheSnapshotId
  7. CacheSnapshot
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MemoryCacheSnapshot(botUser: @@[User, BotUser], dmChannelMap: SnowflakeMap[Channel, DMChannel], groupDmChannelMap: SnowflakeMap[Channel, GroupDMChannel], unavailableGuildMap: SnowflakeMap[Guild, UnavailableGuild], guildMap: SnowflakeMap[Guild, Guild], messageMap: SnowflakeMap[Channel, SnowflakeMap[Message, Message]], lastTypedMap: SnowflakeMap[Channel, SnowflakeMap[User, Instant]], userMap: SnowflakeMap[User, User], banMap: SnowflakeMap[Guild, SnowflakeMap[User, Ban]])

Type Members

  1. type MapType[K, V] = SnowflakeMap[K, V]

    The map type to use.

    The map type to use. Mutable for builder, immutable otherwise.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot

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. val banMap: SnowflakeMap[Guild, SnowflakeMap[User, Ban]]

    The bans received this session.

    The bans received this session. NOTE: This is not all the bans that exists, only the ones received during this session. If you want all the bans, use ackcord.http.rest.GetGuildBans.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  6. val botUser: @@[User, BotUser]

    Our bot user.

    Our bot user. Tagged to allow special syntax.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. val dmChannelMap: SnowflakeMap[Channel, DMChannel]

    The current dm channels.

    The current dm channels.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getBan(guildId: GuildId, userId: UserId): OptionT[Id, Ban]

    Gets the ban for a specific user.

    Gets the ban for a specific user.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  12. def getChannel(id: ChannelId): OptionT[Id, Channel]

    Get a channel by id, ignoring if it's a dm or guild channel.

    Get a channel by id, ignoring if it's a dm or guild channel.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  13. def getChannelLastTyped(channelId: ChannelId): SnowflakeMap[User, Instant]

    Get a map of when users last typed in a channel.

    Get a map of when users last typed in a channel.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshotId
  14. def getChannelMessages(channelId: ChannelId): SnowflakeMap[Message, Message]

    Gets all the messages for a specific channel.

    Gets all the messages for a specific channel.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getDmChannel(id: ChannelId): OptionT[Id, DMChannel]

    Get a dm channel by id.

    Get a dm channel by id.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  17. def getEmoji(id: EmojiId): OptionT[Id, Emoji]

    Get an emoji by id without knowing the guild it belongs to.

    Get an emoji by id without knowing the guild it belongs to.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  18. def getGroupDmChannel(id: ChannelId): OptionT[Id, GroupDMChannel]

    Get a group dm channel by id.

    Get a group dm channel by id.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  19. def getGuild(id: GuildId): OptionT[Id, Guild]

    Get a guild by id.

    Get a guild by id.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  20. def getGuildBans(id: GuildId): SnowflakeMap[User, Ban]

    Gets all the bans for a specific guild.

    Gets all the bans for a specific guild.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshotId
  21. def getGuildChannel(id: ChannelId): OptionT[Id, GuildChannel]

    Get a guild channel by id without knowing the guild it belongs to.

    Get a guild channel by id without knowing the guild it belongs to.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  22. def getGuildChannel(guildId: GuildId, id: ChannelId): OptionT[Id, GuildChannel]

    Get a guild channel.

    Get a guild channel.

    guildId

    The guild id

    id

    The channel id

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  23. def getGuildWithUnavailable(id: GuildId): OptionT[Id, UnknownStatusGuild]

    Get guild by id, also including unavailable guilds.

    Get guild by id, also including unavailable guilds.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  24. def getLastTyped(channelId: ChannelId, userId: UserId): OptionT[Id, Instant]

    Get the instant a user last typed in a channel.

    Get the instant a user last typed in a channel.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  25. def getMessage(messageId: MessageId): OptionT[Id, Message]

    Get a message by id without knowing the channel it belongs to.

    Get a message by id without knowing the channel it belongs to.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  26. def getMessage(channelId: ChannelId, messageId: MessageId): OptionT[Id, Message]

    Get a message, specifying both the channel, and message id.

    Get a message, specifying both the channel, and message id.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  27. def getPresence(guildId: GuildId, userId: UserId): OptionT[Id, Presence]

    Get the presence of a user for a specific guild

    Get the presence of a user for a specific guild

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  28. def getRole(guildId: GuildId, roleId: RoleId): OptionT[Id, Role]

    Get a role by a guildId and a roleID.

    Get a role by a guildId and a roleID.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  29. def getRole(id: RoleId): OptionT[Id, Role]

    Get a role by id without knowing the guild it belongs to.

    Get a role by id without knowing the guild it belongs to.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  30. def getTChannel(id: ChannelId): OptionT[Id, TChannel]

    Get a text channel by id, ignoring if it's a dm or guild channel.

    Get a text channel by id, ignoring if it's a dm or guild channel.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  31. def getUser(id: UserId): OptionT[Id, User]

    Get a user by id.

    Get a user by id.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  32. def getUserDmChannel(id: UserId): OptionT[Id, DMChannel]

    Get the dm channel for a specific user.

    Get the dm channel for a specific user.

    Definition Classes
    CacheSnapshotIdCacheSnapshot
  33. val groupDmChannelMap: SnowflakeMap[Channel, GroupDMChannel]

    The current group dm channels.

    The current group dm channels.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  34. val guildMap: SnowflakeMap[Guild, Guild]

    The currently joined guilds.

    The currently joined guilds.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. val lastTypedMap: SnowflakeMap[Channel, SnowflakeMap[User, Instant]]

    The point each user typed for each channel.

    The point each user typed for each channel.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  37. def mapK[G[_]](f: ~>[Id, G]): CacheSnapshot[G]
    Definition Classes
    CacheSnapshot
  38. val messageMap: SnowflakeMap[Channel, SnowflakeMap[Message, Message]]

    All messages, organized by channelId, and then messageId.

    All messages, organized by channelId, and then messageId.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. val unavailableGuildMap: SnowflakeMap[Guild, UnavailableGuild]

    The guilds currently not available.

    The guilds currently not available.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  44. val userMap: SnowflakeMap[User, User]

    All the users currently tracked.

    All the users currently tracked.

    This method returns a map that might be empty depending on the implementation. Make sure you know if this will be the case before you use this method.

    Definition Classes
    MemoryCacheSnapshotCacheSnapshot
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CacheSnapshotId

Inherited from CacheSnapshot[Id]

Inherited from AnyRef

Inherited from Any

Ungrouped