From b67b692201a811b6e65ce974aeb9ece2542b8d56 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 16 Apr 2024 11:08:15 -0400 Subject: [PATCH] fix(antipolls): fixed an allowedmentions error --- antipolls/antipolls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/antipolls/antipolls.py b/antipolls/antipolls.py index 1f2b67c..c0c8f59 100644 --- a/antipolls/antipolls.py +++ b/antipolls/antipolls.py @@ -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: