While developing a custom verification bot for one of my Discord servers I encountered a seemingly unfixable permission error. I am using the pycord rewrite fork (Pycord v2.3) and the exception I am encountering is: The issue is that even though I have invited my bot to my Discord server with administrative permissions it cannot edit/assign roles for applicable server
I’m using py-cord and my Discord bot is thinking even after it has already sent a response. I’m deferring since the .response function takes so long that the bot will exit out from the command if I don’t. Is there any fix to it? Answer ctx.respond will respond to it: it will be viewable by anyone. Idk if i helped
I want to write an error handler for my commands that would send the traceback in my dms using Pycord version 2.0.0. I first tried setting up per-command handlers using @command.error: This works perfectly fine (Message sent to DMs goes as follows): An exception has occurred! (User MrQez#0333 used /exception-test with args None) However, as the amount of commands in
Im making a discord bot and i decided to change from prefixed commands to slash command using pycord and my poll command it won’t add the reaction it will just send the embed without the reactions Here is my code: Before i decided to change to slash commands it worked perfectly fine I don’t know what is the problem and
I’m trying to make an unban command but I have no way of getting the banned users list. This is the code: Error code: I tried even copying the code from this man (https://youtu.be/KS1_3km5vC0) but it doesn’t work. This is the code: Error code: This is all the bot code: Answer as in Documentation , you need to do it
Please reference to the image below: I know how to send a private message DM to user… But I want the bot to send a message in the CHANNEL instead, yet make the message content see-able only by the command user. How do you send a message that says: “only you can see this”. Also, can this be done with
How can I make a method and store the value of the response? If I try accessing title_input_modal.children from another cog’s class method, this error pops up:- Answer You can store the value in your class as a property and access it once the modal has been dismissed. To do so you will have to modify your class like this.
I’m playing around with Pycord and trying to send a message to a channel X for each element in an array. The following class will throw a TypeError: MyClient.on_ready() missing 1 required positional argument: ‘message’ indicating that MyClient.on_ready() needs 2 arguments, one for self, one for message, but every example on how to pass arguments to class methods were only