fix(antipolls): fixed an allowedmentions error

This commit is contained in:
Seaswimmer 2024-04-16 11:08:15 -04:00
parent 15715dff3c
commit b67b692201
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -101,7 +101,7 @@ class AntiPolls(commands.Cog):
role_whitelist.append(role.id)
await ctx.tick()
if failed:
await ctx.send(f"The following roles were already in the whitelist: {humanize_list([role for role in failed])}", delete_after=10, allowed_mentions=discord.AllowedMentions.none)
await ctx.send(f"The following roles were already in the whitelist: {humanize_list([role for role in failed])}", delete_after=10)
@antipolls_roles.command(name="remove")
async def antipolls_roles_remove(self, ctx: commands.Context, *roles: discord.Role) -> None:
@ -116,7 +116,7 @@ class AntiPolls(commands.Cog):
role_whitelist.remove(role.id)
await ctx.tick()
if failed:
await ctx.send(f"The following roles were not in the whitelist: {humanize_list([role.mention for role in failed])}", delete_after=10, allowed_mentions=discord.AllowedMentions.none)
await ctx.send(f"The following roles were not in the whitelist: {humanize_list([role.mention for role in failed])}", delete_after=10)
@antipolls_roles.command(name="list")
async def antipolls_roles_list(self, ctx: commands.Context) -> None:
@ -144,7 +144,7 @@ class AntiPolls(commands.Cog):
channel_whitelist.append(channel.id)
await ctx.tick()
if failed:
await ctx.send(f"The following channels were already in the whitelist: {humanize_list([channel.mention for channel in failed])}", delete_after=10, allowed_mentions=discord.AllowedMentions.none)
await ctx.send(f"The following channels were already in the whitelist: {humanize_list([channel.mention for channel in failed])}", delete_after=10)
@antipolls_channels.command(name="remove")
async def antipolls_channels_remove(self, ctx: commands.Context, *channels: discord.TextChannel) -> None:
@ -159,7 +159,7 @@ class AntiPolls(commands.Cog):
channel_whitelist.remove(channel.id)
await ctx.tick()
if failed:
await ctx.send(f"The following channels were not in the whitelist: {humanize_list([channel.mention for channel in failed])}", delete_after=10, allowed_mentions=discord.AllowedMentions.none)
await ctx.send(f"The following channels were not in the whitelist: {humanize_list([channel.mention for channel in failed])}", delete_after=10)
@antipolls_channels.command(name="list")
async def antipolls_channels_list(self, ctx: commands.Context) -> None: