object GuildStreams
- Source
- GuildStreams.scala
- Alphabetic
- By Inheritance
- GuildStreams
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apiMessageGroupByGuildId[Msg <: APIMessage]: SubFlow[Msg, NotUsed, [+O]Flow[Msg, O, NotUsed], Sink[Msg, NotUsed]]
Creates a subflow grouped by what GuildId a message belongs to.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def createGatewayGuildInfoExtractor(log: Logger): (GatewayEvent[_]) => Option[GuildId]
A function which tries to find out which guild a given GatewayEvent event belongs to.
A function which tries to find out which guild a given GatewayEvent event belongs to.
Handles
- ackcord.gateway.GatewayEvent.GuildEvent
- ackcord.gateway.GatewayEvent.OptGuildEvent
- ackcord.gateway.GatewayEvent.ChannelEvent
The function returned by this contains multiple state, and is not safe to share.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def gatewayEventGroupByGuildId[Msg <: GatewayEvent[_]](log: Logger): SubFlow[Msg, NotUsed, [+O]Flow[Msg, O, NotUsed], Sink[Msg, NotUsed]]
Creates a subflow grouped by what GuildId an event belongs to.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def guildFilterApiMessage[Msg <: APIMessage](guildId: GuildId): Flow[Msg, Msg, NotUsed]
Serves the opposite function of GuildRouter.
Serves the opposite function of GuildRouter. The job of the guild filter is to only allow messages that belong to a specific guild.
Handles
- APIMessage.ChannelMessage
- APIMessage.GuildMessage
- APIMessage.MessageMessage
- APIMessage.VoiceStateUpdate
Global events like APIMessage.Ready, APIMessage.Resumed and APIMessage.UserUpdate are sent no matter what.
- guildId
The only guildID to allow through.
- def guildFilterGatewayEvent[Msg <: GatewayEvent[_]](guildId: GuildId, log: Logger): Flow[Msg, Msg, NotUsed]
GuildFilter serves the opposite function of GuildRouter.
GuildFilter serves the opposite function of GuildRouter. The job of the guild filter is to only send messages to one actor that matches a specific guild.
Handles
- ackcord.gateway.GatewayEvent.GuildEvent
- ackcord.gateway.GatewayEvent.OptGuildEvent
- ackcord.gateway.GatewayEvent.ChannelEvent
Global events like ackcord.gateway.GatewayEvent.Ready, ackcord.gateway.GatewayEvent.Resumed and ackcord.gateway.GatewayEvent.UserUpdate are sent no matter what.
- guildId
The only guildID to allow through.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withGuildInfoApiMessage[Msg <: APIMessage]: Flow[Msg, (Msg, Option[GuildId]), NotUsed]
A flow which tries to find out which guild a given APIMessage event belongs to.
A flow which tries to find out which guild a given APIMessage event belongs to.
Handles
- def withGuildInfoGatewayEvent[Msg <: GatewayEvent[_]](log: Logger): Flow[Msg, (Msg, Option[GuildId]), NotUsed]
A flow which tries to find out which guild a given GatewayEvent event belongs to.
A flow which tries to find out which guild a given GatewayEvent event belongs to.
Handles