简体   繁体   中英

Use Message ID to upload Emote in discord.js

This is my first time on this website, so apologies if I've done anything incorrectly.

I'm trying to create a command where I can input a message ID ( !command [message ID] ) and the bot with search for new emotes in that message and add them to the server. I'm inexperienced in this as well, so please be aware of that and be specific when you can.

Thank you,
Red

  1. The message needs to be either in the same server or in a server the bot is in
  2. If the message is in the same server, will it be in the same channel?
  3. How will the message contain emotes? Emotes from other servers or images? If its emotes from other servers I don't believe the bot can access it unless it's also in the server

Here's a start: const specifiedMsg = msg.channel.messages.fetch(id);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM