I’m trying to place the user name and the user image in the right place in the welcome banner but I can’t mess with pixel well the banner this is the output: output I was trying to play a little with pixels but I couldn’t fix this right so idk what to do Answer If you use paint on windows,
Tag: discord.py
Getting error – ‘int’ object has no attribute ‘time’
I’m trying to make a giveaway command for my bot but I get an error every time I try to run the command ‘int’ object has no attribute ‘time’ My code for the giveaway command Answer You must rename your time : int parameter, so it does not interfere with the time module. Given the…
hey im making a giveaway command but it throws a error “‘async_generator’ object has no attribute ‘flatten'”
so im making a giveaway command for my bot in discord.py v2 but it throws this error: ‘async_generator’ object has no attribute ‘flatten’ here is an image: my code – i know that flatten has been removed in discord.py v2 but i dont know how to implement the new one im confused any…
How to set minimum and maximum length of a string argument?
I have this so far: But it gives me this error: How do I make it so that the min and max length of the username argument is 3 and 22. Answer I was able to accomplish this by using app_commands.Range.
Discord.py – How to set slash command parameter’s name and description
I’m trying to make discord bot using python discord.py module, and I wanna add slash command with member parameter using CommandTree. I added parameter but it does not have it’s own parameter name(displays as it’s variable name) and description. How can I add its name and description? Answer…
Discord bot with pre-defined tags
I have a problem. I have a list of programming languages, for example The user should be assigned a maximum of three programming languages as roles. Is there a possibility to use a tag input like for web pages in Discord? For example, the user just writes Ja and the user gets back Java and JavaScript and can …
If I use a helping function for a discord.py command, should I use await to call my helping function or just transfer control to my async helper
I have a command that works to send multiple type of messages that follow the same structure but I am using a helping function to send the message. For simplicity, my code looks similar to this: Option 1: Option 2 is making every function async and calling helper with await. It is my first time creating a dis…
discord.py some commands simply dont run
after adding these commands my code has stopped working removing some help however adding them back adds makes it not process any commands i try don’t run besides the deleted message one i have tried using the await client.commands.process and it also dosent work. it dosent give an error it just sits th…
Sending a message 2 hours after the last message discord py
So, I can’t figure out how to make my discord bot send a message 2 hours after the last message. The problem for me is that I want the bot to reset the 2 hours timer if a new message comes, but I don’t know how to do that without breaking the program. Can anyone help me out? Answer To
I’ve followed all the instructions in a tutorial for a bot, and why doesn’t it work?
This code i’m using to try to make a discord bot that will change people’s nicknames in my server for them, won’t work. Here’s what my terminal and member list look like Answer client.run is not a variable, as you have treated it in your question, but instead more similar to a function…