Table of Contents

Method GetGuildBanAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

GetGuildBanAsync(ulong, ulong)

Gets the ban of the specified user. Requires Ban Members permission.

public Task<DiscordBan> GetGuildBanAsync(ulong guildId, ulong userId)

Parameters

guildId ulong

The ID of the guild to get the ban from.

userId ulong

The ID of the user to get the ban for.

Returns

Task<DiscordBan>

A guild ban object.