我如何限制Discord机器人中的命令

时间:2020-09-26 17:21:33

标签: discord bots

所以我正在使用pylon(打字稿不和谐bot),我想将一个命令限制在我身上,不会破坏任何内容

    const commands = new discord.command.CommandGroup({
  defaultPrefix: '.'
});

commands.on(
  'say',
  (args) => ({
    input: args.text()
  }),
  async (message, { input }) => {
    await message.delete();
    await message.reply({
      content: input,
      allowedMentions: {}
    });
  }
);

0 个答案:

没有答案