mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Account for @here too, they share same policy
This commit is contained in:
parent
f87465e555
commit
070d354c48
@ -130,8 +130,11 @@ def format_post_content(guild_id, message):
|
||||
return (message, illegal_post, illegal_reasons)
|
||||
|
||||
def format_everyone_mention(channel, content):
|
||||
if not channel["mention_everyone"] and "@everyone" in content:
|
||||
content = content.replace("@everyone", u"@\u200Beveryone")
|
||||
if not channel["mention_everyone"]:
|
||||
if "@everyone" in content:
|
||||
content = content.replace("@everyone", u"@\u200Beveryone")
|
||||
if "@here" in content:
|
||||
content = content.replace("@here", u"@\u200Bhere")
|
||||
return content
|
||||
|
||||
def get_member_roles(guild_id, user_id):
|
||||
|
Loading…
Reference in New Issue
Block a user