Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot invoke \"net.dv8tion.jda.api.entities.channel.concrete.TextChannel.canTalk()\" because \"textChannel\" is null #7

Open
usongame opened this issue Feb 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@usongame
Copy link

直接使用docker 部署后,具体参数也换成自己的,会报这个错,
docker run --net host -d --restart=always
--name coze-discord
--privileged
-e TZ=Asia/Shanghai
-e SERVER_PORT=8080
-e DISCORD_BOT_TOKEN="xxxxxxxxx"
-e DISCORD_GUILD_ID="1xxxxxxxxxx3"
-e DISCORD_COZE_BOT_ID="1xxxxxxxxx2"
-e DISCORD_CHANNEL_ID="1xxxxxxxxxxxx0"
ghcr.io/oddfar/coze-discord:master

注:服务器部署在国外

@usongame usongame added the bug Something isn't working label Feb 27, 2024
@ss3414
Copy link

ss3414 commented Feb 28, 2024

我也是同样的错误,在获取textChannel时为null。我试了下直接使用JDA连接Discord能连上但是获取任意类型的Channel都为null,我是用向coze-bot发消息的另一个bot的token,我给这个bot管理员的权限拉进我的服务器的。

@yi5an
Copy link

yi5an commented Mar 29, 2024

我也遇到了,我将gateway的权限设置成与coze bot一样的,这个问题可以解决,现在遇到的问题时 gateway bot 发送给coze bot的请求得不到回复

@oddfar
Copy link
Owner

oddfar commented Mar 29, 2024

我也遇到了,我将gateway的权限设置成与coze bot一样的,这个问题可以解决,现在遇到的问题时 gateway bot 发送给coze bot的请求得不到回复

参考#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants