我制作了一个不和谐的机器人,现在我想开始添加自定义表情符号.我看过很多关于如何使用 client.cache 或其他东西来输入表情符号的教程,但是我如何上传它们并获取它们的 ID 以在我的不和谐机器人中使用.我将不胜感激一个快速简单的答案!
I have made a discord bot and I would now like to get started on adding custom emojis. I have seen many tutorials on how to use client.cache or something to type an emoji, but how do I upload them and get their ID to use in my discord bot. I would appreciate a fast and easy answer!
<3
你需要做的就是让你的机器人在一个服务器中使用你想要在你的机器人中使用的任何表情.然后,键入前面带有反斜杠的表情并发送,返回类似 <:honk:670458084136845352> 的内容.这就是您在机器人消息中输入的内容.
What you have to do is have your bot in a server with whichever emotes you want to use in your bot. Then, you type the emote with a backslash in front and send it, returning something like <:honk:670458084136845352>. That's what you put in the message for your bot.
如果您有任何问题,或者这不够清楚,请告诉我.
If you have any issues, or this isn't clear enough, please let me know.
这篇关于如何将自定义表情符号上传到我的不和谐机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
discord.js v12:我如何等待 DM 频道中的消息?discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 频道中的消息?)
如何让我的机器人提及发出该机器人命令的人how to make my bot mention the person who gave that bot command(如何让我的机器人提及发出该机器人命令的人)
如何修复必须使用导入来加载 ES 模块 discord.jsHow to fix Must use import to load ES Module discord.js(如何修复必须使用导入来加载 ES 模块 discord.js)
如何列出来自特定服务器的所有成员?How to list all members from a specific server?(如何列出来自特定服务器的所有成员?)
Discord bot:修复“找不到 FFMPEG"Discord bot: Fix ‘FFMPEG not found’(Discord bot:修复“找不到 FFMPEG)
使用 discord.js 加入 discord 服务器时的欢迎消息Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服务器时的欢迎消息)