HighSkillEmitter

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

An emitter that posts message once user reaches high skill level (>45)

Constructors

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

Types

Link copied to clipboard
data class Context(val skill: SkillType, val level: Int, val player: MacrocosmPlayer)

Context for this emitter

Functions

Link copied to clipboard
open override fun handle(subject: HighSkillEmitter.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