Skip to content
Advertisement

Tag: discord

discord.py – BanIterator object is not iterable

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

discord.py self-bot replies only to itself

I’m new at programming. I want to write a bot for my Discord channel to send users “hi” messages who send “hello”. But there is a problem, only I (the self bot) can receive the “hi!” message. When I write “hello” from another account, the bot doesn’t answer it. Note: I am using a self-bot, not a normal bot. Answer

Nextcord Fight Command Organization and Suggestions

I created an extremely basic fight command in Nextcord. The command is like so: Each character and weapon is assigned their own strength, speed, and defense stats. And the stats are all added up to find their final stat. Then it does the same for the enemy and it calculates the outcome. What I would like to do is make

Clear reactions in setting time [nextcord.py]

I want clear or disable reactions in setting time using nextcord.py I making poll command and wanna delete or disable(I dont know can I or not) reactions in setting time I have code like this I have my time time_plus and wanna do something when time invoke Answer You can use reaction.clear or reaction.remove to remove reaction from your message.

How do I check for required scopes in a discord bot user using Python?

I am making a discord API wrapper and I finally thought of embarking on commands. As most of you know, discord requires bots to have the application.commands scope for checking whether the bot user has permissions to receive application commands. I wanted to check if the bot had the setting enabled using Python, but it never seems to work. I

Why I can’t send messages in a @tasks.loop in discord.py?

I have a problem: I can’t send message in a @tasks.loop() function. When I try to get the channel object with self.client.get_channel(channlid), it return me a Nonetype variable. My code : my error: Can you help me ? Answer Problem You’re calling client.get_channel before the client is ready. So, the client cannot find the channel you’re looking for, and channel

Advertisement