Closed MrMasrozYTLIVE closed 2 months ago
kord.on<MessageCreateEvent> { // runs every time a message is created that our bot can read
message.getChannel().createMessage("test")
}
kord.login {
kord.editPresence {
this.watching("Tsukimichi: Moonlit Fantasy")
this.status = PresenceStatus.DoNotDisturb
}
}
This code is crashing, but if you either remove Kord.on
(Happens with any event) or you remove Kord.editPresence
then it works just fine
You can't send gateway commands at this point, if you want to set a presence during login use the presence builder
kord.login {
presence {
watching("Tsukimichi: Moonlit Fantasy")
status = PresenceStatus.DoNotDisturb
}
}
This happens if you have any event when setting presence from
Kord.login {}