Table of Contents

Method CreateGuildBanAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CreateGuildBanAsync(ulong, ulong, int, string)

Creates guild ban

public Task CreateGuildBanAsync(ulong guildId, ulong userId, int deleteMessageDays, string reason)

Parameters

guildId ulong

Guild ID

userId ulong

User ID

deleteMessageDays int

Days to delete messages

reason string

Reason why this member was banned

Returns

Task