RareDropEmitter

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

An emitter that posts message once player gets a really rare drop (DropRarity.INSANE | DropRarity.UNBELIEVABLE)

Constructors

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

Types

Link copied to clipboard
data class Context(val player: MacrocosmPlayer, val paper: Player, val drop: Drop, val item: MacrocosmItem)

Context for the rare drop emitter

Functions

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