Table of Contents

Method CreateGuildBansAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CreateGuildBansAsync(ulong, IEnumerable<ulong>, int, string)

Creates multiple guild bans

public Task<DiscordBulkBan> CreateGuildBansAsync(ulong guildId, IEnumerable<ulong> userIds, int deleteMessageSeconds, string reason)

Parameters

guildId ulong

Guild ID

userIds IEnumerable<ulong>

Collection of user ids to ban

deleteMessageSeconds int

Timespan in seconds to delete messages from the banned users

reason string

Auditlog reason

Returns

Task<DiscordBulkBan>