How do I upload a custom emoji to my discord bot(如何将自定义表情符号上传到我的不和谐机器人)
问题描述
我制作了一个不和谐的机器人,现在我想开始添加自定义表情符号.我看过很多关于如何使用 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.
这篇关于如何将自定义表情符号上传到我的不和谐机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将自定义表情符号上传到我的不和谐机器人
基础教程推荐
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
