Class MemberLeaveEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.MemberLeaveEvent
-
public class MemberLeaveEvent extends GuildEvent
Dispatched when a user leaves a guild OR is kicked from it.Discord does not differentiate between a user leaving on their own and being kicked. Except through audit logs, it is not possible to tell the difference between these.
This event is dispatched by Discord.
- See Also:
- Guild Member Remove
-
-
Constructor Summary
Constructors Constructor Description MemberLeaveEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, User user, long guildId, Member member)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Snowflake
getGuildId()
Optional<Member>
getMember()
User
getUser()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-