onGuildCreate

abstract fun onGuildCreate(handler: suspend (CreatedGuild) -> Unit)(source)

Called when the user first connects to lazy-fill unavailable guilds from the Ready event, a guild becomes available again, or the user joins a guild.

If the bot does not have the GatewayIntent.GUILD_PRESENCES intent or the guild has more than 75k members, members and presences returned in this event will only contain your bot and users in voice channels.

Parameters

handler

The loaded/available/joined guild.