Bot doesn't respond to commands in channels / unable to import
The bot is present on the server. When I try to issue commands in any channel, nothing happens.
I can send commands to the bot via DM and it responds. If I try an import command in DMs I get: "You need ManageChannels, ManageMessages permissions to use that command!".
Both the bot and myself (an admin) have those permissions.
Any suggestions?
The bot is present on the server. When I try to issue commands in any channel, nothing happens.
I can send commands to the bot via DM and it responds. If I try an import command in DMs I get: "You need ManageChannels, ManageMessages permissions to use that command!".
Both the bot and myself (an admin) have those permissions.
Any suggestions?
Did the bot have Read Messages/View Channels permissions when added to the server? It sounds like it isn't able to see the messages in the server, which is why nothing happens.
As for DMs, it will not work for that as it was only designed for discord servers, I'll see if I can add an error for that.
I'm not 100% sure I set the correct settings the first time I added the bot to the server, but I also tried again making sure to have said permission and I also tried giving the bot Admin power for good measure.
Same behavior, no response on server channels.
Is there perhaps some way to enable / build the bot with debug output, so I could see what's going wrong?
I'm not much of a .NET developer, but I did some digging.
private async Task Client_MessageReceived(SocketMessage arg)
When I DM the bot, messages are received as expected, i.e. Console.WriteLine(userMsg); prints the DM sent. In channels however, any message results in printing a blank new line.
I also tried deleting and re-creating the bot altogether and even adding it to a new server with default permissions in case there was something funky about the server config. Testing with full admin rights at this point to rule out permissions issues altogether.
I kept stubbornly battling on and the issue seemed to be that you need to enable the message content intent under bot settings on the Discord developer panel. Now the bot reacts to commands, however importing still doesn't work.
Message failed to import. - (The server responded with error 400: BadRequest)
Message failed to import. - (The server responded with error 400: BadRequest)
Message failed to import. - (The server responded with error 400: BadRequest)
Message failed to import. - (The server responded with error 400: BadRequest)
Message failed to import. - (The server responded with error 400: BadRequest)
15:26:08 Rest Preemptive Rate limit triggered: POST channels/1017043065501917294/messages (Bucket: a06de0de4a08126315431cc0c55ee3dc)
Repeats forever. Am out of ideas how to debug this.
I'm also experiencing this same issue. I thought it might have to do with all the special characters in my URL but I'm not sure if that 400 Bad Request on the json server's side or on Discord's side?
Edit: Are you exporting media with DCE @j005u? I've just discovered through trial and error that this 400 Bad Request error occurs only when I download media. Which is slightly problematic since if the server I'm trying to archive gets shut down, all media will be lost, defeating the purpose.