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
ulongGuild ID
userIds
IEnumerable<ulong>Collection of user ids to ban
deleteMessageSeconds
intTimespan in seconds to delete messages from the banned users
reason
stringAuditlog reason