Linking emojis to a role

Hello, if I remember correctly there is a way to make an emoji only usable with a certain role through the API. Does djs have any easy way to do it?
5 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs3w ago
:method: GuildEmojiManager#create() @14.16.3 Creates a new custom emoji in the guild.
// Create a new emoji from a URL
guild.emojis.create({ attachment: 'https://i.imgur.com/w3duR07.png', name: 'rip' })
.then(emoji => console.log(`Created new emoji with name ${emoji.name}!`))
.catch(console.error);
// Create a new emoji from a URL
guild.emojis.create({ attachment: 'https://i.imgur.com/w3duR07.png', name: 'rip' })
.then(emoji => console.log(`Created new emoji with name ${emoji.name}!`))
.catch(console.error);
Syjalo
Syjalo3w ago
It has the option
No description
Wasabi
WasabiOP3w ago
cheers
Mark
Mark3w ago
it's also changeable through GuildEmoji#edit after it's created
Want results from more Discord servers?
Add your server