I'm using Discord.py to make a bot and I'm looking for a way to return a random emoji when a command is called. I'm not really sure how to return a random emoji from Discord's emojis. According to the documentation, it that bot.emojis
returns a list of emojis that the connected client has, but when I use it, I just get an empty list. I'm assuming that refers to custom emojis. I want to make it so that the command returns a list of random emojis. I suppose I can get the unicodes as a list / json file and work off that, but I was wondering if there is a better way? Both of the things I've tried so far have yielded no luck.
@bot.command()
async def foo(ctx): # Not working right now.
# print(ctx.guild.emojis)
print(bot.emojis)
Thank you.