基本上,我需要从用户所在的当前文本通道获取权限。我已经得到了频道名称,如果我需要得到ID,这应该很容易做到。const Discord = require("discord.js");
letchannel permissions to overwrite the new channel's permissions with the old ones 预期的结果是该通道应该具有与旧通道相同
今天,我从JS切换到TS (主要是因为它的类型注释),当我试图将一个通道保存到一个变量时,我得到了以下错误:Property 'messages' does not exist on type 'TextChannel显示消息是TextChannel的一个有效属性,所以这里发生了什么?我用来获取通道的代码是channel = guild.channels.cache.get(id),我在末尾添加了as TextChannel (声明变量类似于:let channel: <em
它不设置权限。不过,该通道已创建。下面是给出错误的代码。When you want to close the ticket, do `,ticket close`" }); 错误是它设置权限的位置。/1610b021-5dc3-42d8-a00c-f4489c1bc502/node_modules/.registry.npmjs.org/discord.js/12.0.2/node_modules/discord.js
因此,基本上,我试图从一个通道获取嵌入,然后将其发送到另一个通道,但它给出了一个错误,说明有一些关于空消息的信息。完全错误: Received 1 messages throwDiscordAPIError: Cannot send an empty message
at RequestHandler.execute (/home&