commonMain.event.channel.ChannelDeleteEvent.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.channel
import dev.kord.core.Kord
import dev.kord.core.entity.channel.*
import dev.kord.core.event.Event
public interface ChannelDeleteEvent : Event {
public val channel: Channel
override val kord: Kord
get() = channel.kord
}
public class CategoryDeleteEvent(
override val channel: Category,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "CategoryDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class DMChannelDeleteEvent(
override val channel: DmChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "DMChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class NewsChannelDeleteEvent(
override val channel: NewsChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "NewsChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class TextChannelDeleteEvent(
override val channel: TextChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "TextChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class VoiceChannelDeleteEvent(
override val channel: VoiceChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "VoiceChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class StageChannelDeleteEvent(
override val channel: StageChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "StageChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class ForumChannelDeleteEvent(
override val channel: ForumChannel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "ForumChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
public class UnknownChannelDeleteEvent(
override val channel: Channel,
override val shard: Int,
override val customContext: Any?,
) : ChannelDeleteEvent {
override fun toString(): String {
return "UnknownChannelDeleteEvent(channel=$channel, shard=$shard)"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy