ackcord
package ackcord
- Alphabetic
- By Inheritance
- ackcord
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
APIMessage extends AnyRef
Base trait normal messages.
-
case class
APIMessageCacheUpdate[Data](data: Data, sendEvent: (CacheState) ⇒ Option[APIMessage], handler: CacheHandler[Data], registry: CacheTypeRegistry) extends CacheEvent with Product with Serializable
An event that should publish an APIMessage.
An event that should publish an APIMessage.
- Data
The data it contains.
- data
The data.
- sendEvent
A function to gather the needed variables to send the event.
- handler
The handler to process the data of this event with.
- registry
The handler registry that the event will use to update the snapshot.
- type BotAuthentication = ackcord.requests.BotAuthentication.type
-
case class
Cache(publish: Sink[CacheEvent, NotUsed], subscribe: Source[(CacheEvent, CacheState), NotUsed], gatewayPublish: Sink[GatewayMessage[Any], NotUsed], gatewaySubscribe: Source[GatewayMessage[Any], NotUsed])(implicit system: ActorSystem[Nothing]) extends Product with Serializable
Represents a cache that can be published and subscribed to.
Represents a cache that can be published and subscribed to.
- publish
A sink used for publishing. Any elements connected to this sink is published to the cache.
- subscribe
A source to subscribe to. All updates are pushed here.
-
trait
CacheEvent extends AnyRef
Represents some sort of event handled by the cache
-
trait
CacheSnapshotWithMaps extends CacheSnapshot
A cache snapshot where the getters can use the maps to get their data.
-
case class
CacheState(current: MemoryCacheSnapshot, previous: MemoryCacheSnapshot) extends Product with Serializable
Represents the state of the cache for a single point.
Represents the state of the cache for a single point.
- current
The current values in the cache.
- previous
The previous values in the cache.
- type FutureVectorRequest[A] = Future[Vector[A]]
- type GatewayLogin = Login.type
- type GatewayLogout = Logout.type
- type GatewaySettings = ackcord.gateway.GatewaySettings
- type JsonNull = ackcord.util.JsonNull.type
- type JsonOption[A] = ackcord.util.JsonOption[A]
- type JsonSome[A] = ackcord.util.JsonSome[A]
- type JsonUndefined = ackcord.util.JsonUndefined.type
-
case class
MemoryCacheSnapshot(seq: Long, botUser: @@[User, BotUser], dmChannelMap: SnowflakeMap[DMChannel, DMChannel], groupDmChannelMap: SnowflakeMap[GroupDMChannel, GroupDMChannel], unavailableGuildMap: SnowflakeMap[Guild, UnavailableGuild], guildMap: SnowflakeMap[Guild, Guild], messageMap: SnowflakeMap[TextChannel, SnowflakeMap[Message, Message]], lastTypedMap: SnowflakeMap[TextChannel, SnowflakeMap[User, Instant]], userMap: SnowflakeMap[User, User], banMap: SnowflakeMap[Guild, SnowflakeMap[User, Ban]], creationProcessor: CacheProcessor) extends CacheSnapshotWithMaps with Product with Serializable
Represents the cache at some point in time
- type OptionTRequest[A] = OptionT[Future, A]
- type Requests = ackcord.requests.Requests
- type RequestsHelper = ackcord.requests.RequestsHelper
- type SourceRequest[A] = Source[A, NotUsed]
- type Streamable[F[_]] = ackcord.util.Streamable[F]
-
type
RequestHelper = ackcord.requests.Requests
- Annotations
- @deprecated
- Deprecated
(Since version 0.16) Prefer the new name Requests
Value Members
- val BotAuthentication: ackcord.requests.BotAuthentication.type
- val GatewayLogin: Login.type
- val GatewayLogout: Logout.type
- val GatewaySettings: ackcord.gateway.GatewaySettings.type
- val JsonNull: ackcord.util.JsonNull.type
- val JsonOption: ackcord.util.JsonOption.type
- val JsonSome: ackcord.util.JsonSome.type
- val JsonUndefined: ackcord.util.JsonUndefined.type
- val Requests: ackcord.requests.Requests.type
- val Streamable: ackcord.util.Streamable.type
- implicit def flowFunctorInstance[In, Mat]: Functor[[β$0$]Flow[In, β$0$, Mat]]
- implicit def sinkContravariantInstance[Mat]: Contravariant[[α$1$]Sink[α$1$, Mat]]
- implicit val sourceMonadInstance: MonadError[SourceRequest, Throwable] with Alternative[SourceRequest]
- implicit def sourceSyntax[A, M](source: Source[A, M]): SourceFlatmap[A, M]
- object APIMessage
- object Cache extends Serializable
- object CacheStreams
- object DiscordShard
- object GatewayHandlerCache
- object MemoryCacheSnapshot extends Serializable
Deprecated Value Members
-
val
RequestHelper: ackcord.requests.Requests.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.16) Prefer the new name Requests