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
ReadyEvent
is dispatched), this event will be dispatched for all guilds the bot is in on this shard. - After an outage (in which many
guild deletes
will 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 Guild
getGuild()
Gets theGuild
that has become available in this event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
GuildCreateEvent
public GuildCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Guild guild)
-
-