Class GuildCreateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.GuildCreateEvent
-
public class GuildCreateEvent extends GuildEvent
Dispatched in three different scenarios:- After the bot connects to Discord (after
ReadyEventis dispatched), this event will be dispatched for all guilds the bot is in on this shard. - After an outage (in which many
guild deleteswill be dispatched), this event will be dispatched as guilds become available again. - When the bot is added to a guild.
This event is dispatched by Discord.
- See Also:
- Guild Create
- After the bot connects to Discord (after
-
-
Constructor Summary
Constructors Constructor Description GuildCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Guild guild)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuildgetGuild()Gets theGuildthat has become available in this event.StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
GuildCreateEvent
public GuildCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Guild guild)
-
-