p

net.katsstuff

ackcord

package ackcord

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ackcord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait APIMessage extends AnyRef

    Base trait normal messages.

  2. case class APIMessageCacheUpdate[Data](data: Data, sendEvent: (CacheState) ⇒ Option[APIMessage], handler: CacheHandler[Data]) extends CacheUpdate[Data] 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.

  3. sealed trait AudioAPIMessage extends AnyRef

    The base trait for all audio events.

    The base trait for all audio events. Note that the audio API does not have any connections to any CacheSnapshots. As such you have to find the objects for the IDs yourself.

  4. type BotAuthentication = ackcord.http.requests.BotAuthentication.type
  5. case class Cache(publish: Sink[CacheUpdate[Any], NotUsed], subscribe: Source[(CacheUpdate[Any], CacheState), NotUsed], gatewayPublish: Sink[GatewayMessage[Any], NotUsed], gatewaySubscribe: Source[GatewayMessage[Any], NotUsed])(implicit mat: Materializer) 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.

  6. trait CacheSnapshot[F[_]] extends AnyRef

    A representation of the cache.

  7. trait CacheSnapshotId extends CacheSnapshot[Id]
  8. 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.

  9. sealed trait CacheUpdate[Data] extends AnyRef

    Represents some sort of event handled by the cache

    Represents some sort of event handled by the cache

    Data

    The data it contains

  10. class ClientSettings extends GatewaySettings

    Settings used when connecting to Discord.

  11. abstract class CommandHandler[F[_], G[_], A] extends AnyRef

    A handler for a specific command.

    A handler for a specific command.

    A

    The parameter type.

  12. trait CommandsHelper[F[_]] extends AnyRef

    An object which manages a net.katsstuff.ackcord.commands.Commands instance.

  13. case class CoreDiscordClient(shards: Seq[ActorRef], cache: Cache, commands: Commands[Id], requests: RequestHelper) extends DiscordClient[Id] with Product with Serializable
  14. trait DiscordClient[F[_]] extends CommandsHelper[F]

    Trait used to interface with Discord stuff from high level.

  15. class DiscordShard extends Actor with ActorLogging with Timers

    The core actor that controls all the other used actors of AckCord

  16. trait EventHandler[F[_], G[_], A <: APIMessage] extends AnyRef

    A handler for a specific event type.

    A handler for a specific event type.

    A

    The API message type

  17. type FutureVectorRequest[A] = Future[Vector[A]]
  18. type GatewaySettings = ackcord.websocket.gateway.GatewaySettings
  19. trait HasCache[F[_], A] extends AnyRef
  20. type JsonNull = ackcord.util.JsonNull.type
  21. type JsonOption[A] = ackcord.util.JsonOption[A]
  22. type JsonSome[A] = ackcord.util.JsonSome[A]
  23. type JsonUndefined = ackcord.util.JsonUndefined.type
  24. type Login = ackcord.websocket.AbstractWsHandler.Login.type
  25. type Logout = ackcord.websocket.AbstractWsHandler.Logout.type
  26. 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

  27. type MessageParser[A] = ackcord.util.MessageParser[A]
  28. case class MiscCacheUpdate[Data](data: Data, handler: CacheHandler[Data]) extends CacheUpdate[Data] with Product with Serializable

    Any other event that updates the cache with it's data.

    Any other event that updates the cache with it's data.

    Data

    The data it contains.

    data

    The data.

    handler

    The handler to process the data of this event with.

  29. abstract class RawCommandHandler[F[_], G[_]] extends AnyRef

    A handler for all raw commands.

  30. type Request[Data, Ctx] = ackcord.http.requests.Request[Data, Ctx]
  31. type RequestHelper = ackcord.http.requests.RequestHelper
  32. class RequestPermissionException extends Exception
  33. trait RequestRunner[F[_], G[_]] extends AnyRef
  34. case class RequestSettings(parallelism: Int = 4, bufferSize: Int = 32, maxRetryCount: Int = 3, overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure, maxAllowedWait: FiniteDuration = 2.minutes) extends Product with Serializable

    parallelism

    Parallelism to use for requests.

    bufferSize

    The buffer size to use for waiting requests.

    maxRetryCount

    The maximum amount of times a request will be retried. Only affects requests that uses retries.

    overflowStrategy

    The overflow strategy to use when the buffer is full.

    maxAllowedWait

    The max allowed wait time before giving up on a request.

  35. case class SeperateCommandsHelper[F[_]](commands: Commands[F], requests: RequestHelper) extends CommandsHelper[F] with Product with Serializable
  36. class SnowflakeMap[K, +V] extends AbstractMap[SnowflakeType[K], V] with Map[SnowflakeType[K], V] with MapLike[SnowflakeType[K], V, SnowflakeMap[K, V]]
  37. type SourceRequest[A] = Source[A, NotUsed]
  38. type Streamable[F[_]] = ackcord.util.Streamable[F]
  39. abstract class CommandHandlerDSL[A] extends AnyRef

    A handler for a specific command that runs a RequestDSL when the command is received.

    A handler for a specific command that runs a RequestDSL when the command is received.

    A

    The parameter type.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use CommandHandler instead

  40. trait EventHandlerDSL[A <: APIMessage] extends AnyRef

    A handler for a specific event type that runs a RequestDSL when the event is received.

    A handler for a specific event type that runs a RequestDSL when the event is received.

    A

    The API message type

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use EventHandler instead

  41. sealed trait RequestDSL[+A] extends AnyRef

    Base trait for a RequestDSL object.

    Base trait for a RequestDSL object. An RequestDSL object is a program that will evaluate to a value gotten by running requests, while hiding the streaming implementation.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use RequestRunner instead

Value Members

  1. val BotAuthentication: ackcord.http.requests.BotAuthentication.type
  2. val GatewaySettings: ackcord.websocket.gateway.GatewaySettings.type
  3. val JsonNull: ackcord.util.JsonNull.type
  4. val JsonOption: ackcord.util.JsonOption.type
  5. val JsonSome: ackcord.util.JsonSome.type
  6. val JsonUndefined: ackcord.util.JsonUndefined.type
  7. val Login: ackcord.websocket.AbstractWsHandler.Login.type
  8. val Logout: ackcord.websocket.AbstractWsHandler.Logout.type
  9. val MessageParser: ackcord.util.MessageParser.type
  10. val Request: ackcord.http.requests.Request.type
  11. val RequestHelper: ackcord.http.requests.RequestHelper.type
  12. val Streamable: ackcord.util.Streamable.type
  13. implicit def flowFunctorInstance[In, Mat]: Functor[[β$0$]Flow[In, β$0$, Mat]]
  14. implicit def sinkContravariantInstance[Mat]: Contravariant[[α$1$]Sink[α$1$, Mat]]
  15. implicit val sourceMonadInstance: MonadError[SourceRequest, Throwable] with Alternative[SourceRequest]
  16. implicit def sourceSyntax[A, M](source: Source[A, M]): SourceFlatmap[A, M]
  17. object APIMessage
  18. object AckCord
  19. object AudioAPIMessage
  20. object Cache extends Serializable
  21. object CacheSnapshot
  22. object CacheStreams
  23. object ClientSettings extends Serializable
  24. object DiscordShard extends FailFastCirceSupport
  25. object GatewayHandlerCache
  26. object HasCache
  27. object MusicManager
  28. object RequestRunner
  29. object ShardShutdownManager
  30. object SnowflakeMap

Deprecated Value Members

  1. object RequestDSL
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use RequestRunner instead

Inherited from AnyRef

Inherited from Any

Ungrouped