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
Advertisement
Tag: pycord
How can we store the value of a Modal in Pycord (2.x) in a method/function and then return it?
How can I make a method and store the value of the response? If I try accessing title_input_modal.children[0] 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.
Triggering method from within a loop with Python and Pycord
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
Advertisement