bot { events {onGuildCreate { }}} gives Guild instead CreatedGuild
bot(BOT_TOKEN) {
events {
onGuildCreate {
here it
is of type of Guild
instead of GuildClient
as it is supposed to
be according to the docs
}
}
}
But the object that comes from the rest api can't be desrialized to that because of a MissingFieldException: "Fields [guild_id, nsfw] are required for type with serial name '4', but they were missing"
Edited by binarynoise