const { Command } = require('discord-akairo');
const Logger = require('../../../util/Logger');

function exec(message, args) {
    if (!args.emoji) {
        Logger.warn('Invalid custom emoji provided.');
        return message.delete();
    }

    return message.edit(`${args.emoji} is from ${args.emoji.guild.name}.`);
}

module.exports = new Command('locate', exec, {
    aliases: ['locate'],
    args: [
        {
            id: 'emoji',
            type: 'emoji'
        }
    ]
});

@@ -454,23 +454,216 @@
   type: 
-'emoji'
+function type(word) %7B%0A                if (!word) return null;%0A                const emoji = this.client.util.resolveEmoji(word, this.client.emojis);%0A                return emoji %7C%7C null;%0A            %7D
 %0A       

Fix locate for all emojis