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.
这篇关于如何将自定义表情符号上传到我的不和谐机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将自定义表情符号上传到我的不和谐机器人


- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01