From 71791a2f5af8c31d32b0232b5c25f6d6f22923e1 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Mon, 3 Aug 2020 19:04:57 +0200 Subject: [PATCH] Remove incorrect 3.4+ compatibility layer (#103) --- forcemention/forcemention.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/forcemention/forcemention.py b/forcemention/forcemention.py index 72c9466..e9b5c5a 100644 --- a/forcemention/forcemention.py +++ b/forcemention/forcemention.py @@ -1,16 +1,10 @@ import asyncio from discord.utils import get -from redbot import VersionInfo, version_info from redbot.core import Config, checks, commands from redbot.core.bot import Red from redbot.core.commands import Cog -if version_info < VersionInfo.from_str("3.4.0"): - SANITIZE_ROLES_KWARG = {} -else: - SANITIZE_ROLES_KWARG = {"sanitize_roles": False} - class ForceMention(Cog): """ @@ -39,8 +33,8 @@ class ForceMention(Cog): if not role_obj.mentionable: await role_obj.edit(mentionable=True) - await ctx.send("{}\n{}".format(role_obj.mention, message), **SANITIZE_ROLES_KWARG) + await ctx.send("{}\n{}".format(role_obj.mention, message)) await asyncio.sleep(5) await role_obj.edit(mentionable=False) else: - await ctx.send("{}\n{}".format(role_obj.mention, message), **SANITIZE_ROLES_KWARG) + await ctx.send("{}\n{}".format(role_obj.mention, message))