問題描述
我有一個不和諧機器人,我想知道如何讓機器人在服務器上使用動畫表情符號.我嘗試過其他通過 WebHooks 放置動畫表情符號的機器人,或者將機器人本身放入動畫表情符號.但我無法讓它以任何方式工作.如果有人可以幫助我,謝謝.KKtua
I have a discord bot and I would like to know how I can make the bot use animated emoticons on the server. I have tried other bots that put animated emoticons through WebHooks or put the bot itself to put animated emoticons. But I can't get it to work in any way. If anyone can help me thanks. KKtua
推薦答案
首先,機器人需要在動畫表情符號所在的服務器中,所以如果你想使用火箭聯盟"服務器中的表情符號,那么機器人必須在該服務器中.
First of all the bot needs to be in the server where the animated emoji is, so if you want to use an emoji from the 'Rocket League' server, then the bot has to be in that server.
一旦您知道機器人在具有表情符號的服務器中,您需要做的就是在聊天中鍵入表情符號,并在表情符號之前加上一個 ,以便您獲得表情符號 ID,您需要復制該 ID并在機器人代碼中使用,機器人消息中使用的動畫表情符號示例:
Once you know the bot is in the server which has the emoji, what you need to do is type the emoji in chat yourself with a before the emoji, so that you get the emoji ID, which you will need to copy and use in the bot code, example of an animated emoji used in a bot message:
message.reply('here is a cool emoji -> <a:check_no:717523612906684428> ');
這篇關于帶有動畫表情符號的 Discord 機器人的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!