BossInfoEmitter

class BossInfoEmitter(role: Role, channel: Channel) : DiscordEmitter<BossInfoEmitter.Context> (source)

An emitter that posts message once a boss is being summoned/defeated

Constructors

Link copied to clipboard
constructor(role: Role, channel: Channel)

Types

Link copied to clipboard
data class Context(val filler: Unit)

A null context, this will be implemented later

Functions

Link copied to clipboard
open override fun handle(subject: BossInfoEmitter.Context, bot: JDA)

Handles the event, sending es

Link copied to clipboard

Posts an event of type S to this emitter

Link copied to clipboard
fun subscribe(user: Member)

Subscribes a member to this emitter

Link copied to clipboard
fun unsubscribe(user: Member)

Unsubscribes a member from this emitter

Properties

Link copied to clipboard
val dedicatedChannel: TextChannel

A dedicated channel to which the messages will be posted

Link copied to clipboard

Name of this emitter

Link copied to clipboard
val role: Role

Role that will be pinged by this emitter