commonMain.event.guild.GuildScheduledEventDeleteEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-core-jvm Show documentation
Show all versions of kord-core-jvm Show documentation
Idiomatic Kotlin Wrapper for The Discord API
package dev.kord.core.event.guild
import dev.kord.core.Kord
import dev.kord.core.entity.GuildScheduledEvent
import dev.kord.core.supplier.EntitySupplier
import dev.kord.core.supplier.EntitySupplyStrategy
/**
* Event fired when a scheduled event got deleted.
* Use [GuildScheduledEvent.status] to know why the event got deleted.
*
* @see GuildScheduledEvent
* @see GuildScheduledEvent
*/
public data class GuildScheduledEventDeleteEvent(
public override val scheduledEvent: GuildScheduledEvent,
override val kord: Kord,
override val shard: Int,
override val customContext: Any?,
override val supplier: EntitySupplier = kord.defaultSupplier,
) : GuildScheduledEventEvent {
override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildScheduledEventDeleteEvent =
copy(supplier = strategy.supply(kord))
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy