Table of Contents

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 DiscordUser

Member to remove.

reason string

Reason for audit logs.

Returns

Task

RemoveMemberAsync(ulong, string?)

Removes a specified member by ID.

public Task RemoveMemberAsync(ulong userId, string? reason = null)

Parameters

userId ulong

ID of the user to remove.

reason string

Reason for audit logs.

Returns

Task