I'm fairly new at using python and I'm trying to code a discord bot with basics functions, and I want for one of them to be that after someone uses a prefix if they post an emoji that the bot replies with the url of the emoji, but I have trouble trying to make it work. I don't know how to use on_message to check if a message contains an emoji. Could anyone help me? Thanks.
#if message.content[0] == "!" and message.content[1:4] == " <:":
#print(message.content[4:-1])
#emoji_name = ""
#for i in str(message.content[4:-1]):
#if i != ":":
#emoji_name += i
#if i == ":":
#print(emoji_name)
#break
#await client.send_message(message.channel, get(client.get_all_emojis(), name=emoji_name).url)