Allow bots to use all emotes #3256
Replies: 18 comments
-
Useful, but easily abusable, if you can use emotes from any server (think: people's private servers they don't want their emotes leaked from), someone is bound to find emojis from other servers by complete chance. TL;DR: Good idea at, but could be used badly |
Beta Was this translation helpful? Give feedback.
-
You can already load the image for any emoji with just the id, and you would need the id to send it The only thing this would change is adding the ability to send it inline instead of as an image attachment. |
Beta Was this translation helpful? Give feedback.
-
Fair point, I guess it's already abusable |
Beta Was this translation helpful? Give feedback.
-
If this is done, do it for webhooks too. |
Beta Was this translation helpful? Give feedback.
-
@TapuCosmo It was added for webhooks a few weeks ago |
Beta Was this translation helpful? Give feedback.
-
So webhooks can now use any emojis without needing a bot token? |
Beta Was this translation helpful? Give feedback.
-
@advaith1 are you sure it works for webhooks at the moment? |
Beta Was this translation helpful? Give feedback.
-
Webhooks require to have the emote on the same guild they're created in. |
Beta Was this translation helpful? Give feedback.
-
no webhooks can use all emoji from all guilds, it does require the everyone role to have use external emoji perms in the channel |
Beta Was this translation helpful? Give feedback.
-
My personal experience tells me otherwise. |
Beta Was this translation helpful? Give feedback.
-
Can we please keep this thread on the topic of allowing this for bot users, and not webhooks? |
Beta Was this translation helpful? Give feedback.
-
This would also be very useful for bots that repost content from normal users such as starboard bots; there isn't a workaround for those like there is for admin-set or dev-set emojis. |
Beta Was this translation helpful? Give feedback.
-
For a starboard bot now, you could actually use webhooks, which are able to use all emojis, as they are now capable of editing and deleting messages |
Beta Was this translation helpful? Give feedback.
-
Webhooks technically can't use all emojis, they need to be non deleted and they can't be unavailable (from a guild which lost a boost causing the emoji to grey out). Possibly also emojis that are role locked but I can't remember that. |
Beta Was this translation helpful? Give feedback.
-
Those are reasonable restrictions. |
Beta Was this translation helpful? Give feedback.
-
Webhooks can use Twitch-Emotes from other servers. |
Beta Was this translation helpful? Give feedback.
-
Currently, a bot is able to use emotes from servers it's part of, as they get Nitro perks for emote usage.
This is super helpful for some things like welcome messages, reaction menus and the like.
However, bots are limited to emotes from servers they are currently in, so these features will break if say a user with Nitro wants a welcome message with emotes from their servers that the bot isn't in for instance.
The current 'solution' for this is to create a dedicated emote server (or more!) for your bot and upload the emotes you want your bot to be able to use, if statically predetermined. Otherwise, you end up with a few servers that end up effectively acting as emote caches for your bot when it needs to send messages with certain emotes.
Whilst this does work pretty well, as the actual number of visually unique emotes is pretty low, it would probably be much less strain on developer and Discord's resources if bots were able to use emotes from servers they aren't in. I imagine this would be implemented easiest by simply removing the check for 'does this message contain invalid emoji' for messages sent with a bot token.
Beta Was this translation helpful? Give feedback.
All reactions