Skip to content

Instantly share code, notes, and snippets.

@yuchand017
Last active May 4, 2021 01:50
Show Gist options
  • Save yuchand017/60504fe7f2bf5d034d5b88037ac8c24e to your computer and use it in GitHub Desktop.
Save yuchand017/60504fe7f2bf5d034d5b88037ac8c24e to your computer and use it in GitHub Desktop.
Discord emoji information generator
var findModule = (item) => Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}}, [['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default[item]!==void 0).exports.default;
findModule('sendMessage').sendMessage = (sendMessage => async(id, message, ...params) => {
if (message['content'].startsWith("getinfo <:") || message['content'].startsWith("getinfo <a:")) {
let arr = []
message.validNonShortcutEmojis.forEach(emoji => {
var emojiuse = message['content'].replace('getinfo ', '')
arr.push(` ${emojiuse}\n`)
arr.push(`Emoji \`${emoji.name}\` (${emoji.id})\n`)
arr.push(`Emoji Animated \`${emoji.animated}\` \n`)
arr.push(`Emoji Available \`${emoji.available}\` \n`)
arr.push(`Emoji Url \`${emoji.url}\` \n`)
arr.push(`Use Emoji \`${emoji.allNamesString}\` or \`${emojiuse}\` `)
})
message.content = arr.join(" ")
return sendMessage(id, message, ...params);
}
return sendMessage(id, message, ...params);
})(this.oldSendMessage = findModule('sendMessage').sendMessage)
findModule('getCurrentUser').getCurrentUser().premiumType = 2
console.log('%cDiscordEmojiInfo','color:black; font-size:50px; background:white')
console.log('%cDiscord emoji information is easier to know.','color:black; font-size:20px; background:white')
console.log('%cUse : "getinfo (emoji)" ', 'color:black; font-size:20px; background:white')
@yuchand017
Copy link
Author

yuchand017 commented May 3, 2021

How to Use:
Setup:
Paste the code above into the discord console

Use:
Enter the following in Discord Chat

getinfo (emoji)

Emoji is not an emoji name, you have to go to the emoji selection menu and select an emoji

@yuchand017
Copy link
Author

yuchand017 commented May 3, 2021

If you sent, the message will be replaced.

test

@fxxntrbl
Copy link

fxxntrbl commented May 3, 2021

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment