Method RemoveMemberAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
RemoveMemberAsync(DiscordUser, string?)
Removes a specified member from this guild.
public Task RemoveMemberAsync(DiscordUser member, string? reason = null)
Parameters
member
DiscordUserMember to remove.
reason
stringReason for audit logs.
Returns
- Task
RemoveMemberAsync(ulong, string?)
Removes a specified member by ID.
public Task RemoveMemberAsync(ulong userId, string? reason = null)
Parameters
userId
ulongID of the user to remove.
reason
stringReason for audit logs.
Returns
- Task