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) ⇒ List[APIMessage], handler: CacheHandler[Data], registry: CacheTypeRegistry, dispatch: Dispatch[_]) 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.
- dispatch
The low level message that created this update.
- case class BatchedAPIMessageCacheUpdate(updates: Seq[APIMessageCacheUpdate[_]]) extends CacheEvent with Product with Serializable
- type BotAuthentication = ackcord.requests.BotAuthentication.type
- type Cache = Events
-
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.
-
case class
Events(publish: Sink[CacheEvent, NotUsed], subscribe: Source[(CacheEvent, CacheState), NotUsed], toGatewayPublish: Sink[GatewayMessage[Any], NotUsed], toGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], fromGatewayPublish: Sink[GatewayMessage[Any], NotUsed], fromGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], parallelism: Int)(implicit system: ActorSystem[Nothing]) extends Product with Serializable
Houses streams to interact with events and messages sent to and from Discord.
Houses streams to interact with events and messages sent to and from Discord.
- 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.
- parallelism
How many cache updates to construct at the same time.
- 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, GatewayGuild], messageMap: SnowflakeMap[TextChannel, SnowflakeMap[Message, Message]], lastTypedMap: SnowflakeMap[TextChannel, SnowflakeMap[User, Instant]], userMap: SnowflakeMap[User, User], banMap: SnowflakeMap[Guild, SnowflakeMap[User, Ban]], processor: CacheProcessor) extends CacheSnapshotWithMaps with Product with Serializable
Represents the cache at some point in time
- case class PubSubBufferSize(perProducer: Int = 16, consumer: Int = 256) extends Product with Serializable
-
case class
RequestCacheUpdate[Data](requestResponse: RequestResponse[Data], request: Request[Data], registry: CacheTypeRegistry) extends CacheEvent with Product with Serializable
A cache event that will try to put the data of the response into the cache.
A cache event that will try to put the data of the response into the cache.
- Data
The type of the request response.
- requestResponse
The response to the request.
- request
The request used to get the response.
- registry
The handler registry that the event will use to update the snapshot.
- type Requests = ackcord.requests.Requests
- type RequestsHelper = ackcord.requests.RequestsHelper
- type SourceRequest[A] = Source[A, NotUsed]
- type Streamable[F[_]] = ackcord.util.Streamable[F]
Value Members
- val BotAuthentication: ackcord.requests.BotAuthentication.type
- val Cache: Events.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 APIMessageCacheUpdate extends Serializable
- object CacheEventCreator
- object CacheStreams
- object DiscordShard
- object Events extends Serializable
- object MemoryCacheSnapshot extends Serializable
- object RequestCacheUpdate extends Serializable