How do I show what emojis are in the server

Tags: , ,

So I was working on a discord.js server info command. So I had an idea, of showing the emojis that are in a server, though I don’t know how to do that. I do know how to get the amount of emojis, but I’m not sure how to get the emojis.


const emoji = message.guild.emojis.cache.array();;

Source: stackoverflow