小编SrV*_*igu的帖子

如何让机器人发送个性化表情符号?

好吧,我目前正在使用表情符号:x:,但在我的服务器上我有一个名为:superbotxemoji 的表情符号:我只是不知道如何让我的机器人使用它

我的代码:

const Discord = require('discord.js');

module.exports = {
 name: 'say',
 description: 'say',
 execute(message, args) {
  const { prefix, token } = require('../config.json');

  if (!message.member.hasPermission('ADMINISTRATOR'))
   return message.channel.send({
    embed: {
     color: 16777201,
     description: `:x: | ${message.author}, You are not allowed to use this command.`,
     footer: {
      text: `   | Required permission: ADMINISTRATOR`,
     },
    },
   });

  if (!args.length)
   return message.channel.send({
    embed: {
     color: 16777201,
     description: `:x: | ${message.author}, You need to put a message.`,
     footer: {
      text: …
Run Code Online (Sandbox Code Playgroud)

javascript node.js discord discord.js

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

discord ×1

discord.js ×1

javascript ×1

node.js ×1