diff --git a/files/helpers/discord.py b/files/helpers/discord.py index 992695dafe..7195183030 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -44,13 +44,6 @@ def add_role(user, role_name): headers = {"Authorization": f"Bot {BOT_TOKEN}"} requests.put(url, headers=headers) -@discord_wrap -def delete_role(user, role_name): - role_id = ROLES[role_name] - url = f"https://discordapp.com/api/guilds/{SERVER_ID}/members/{user.discord_id}/roles/{role_id}" - headers = {"Authorization": f"Bot {BOT_TOKEN}"} - requests.delete(url, headers=headers) - @discord_wrap def remove_user(user): url=f"https://discordapp.com/api/guilds/{SERVER_ID}/members/{user.discord_id}" diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index fe95ee2b86..fe32b37d10 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -220,7 +220,7 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('
:([^ ]{1,30}?):
', sanitized): emoji = i.group(1).lower() if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - sanitized = sanitized.replace(f':{emoji}:
', f':{emoji}:
', f'