Now parsing custom emoji

This commit is contained in:
JustMaffie 2017-05-28 23:46:26 +02:00
parent 82bccb7188
commit 4016f816c1

View File

@ -15,12 +15,3 @@ def parseEmoji(textToParse, guild_id):
if name.lower is emoji2.replace(":", "").lower(): if name.lower is emoji2.replace(":", "").lower():
newText = newText.replace(":{}:".format(name), "<img src='https://cdn.discordapp.com/emojis/{}.png'></img>".format(id)) newText = newText.replace(":{}:".format(name), "<img src='https://cdn.discordapp.com/emojis/{}.png'></img>".format(id))
return newText return newText
#Default emoji object here
#{
#"require_colons": true,
#"managed": false,
#"name": "sh",
#"roles": [],
#"id": "318499652175396866"
#}