Skip to content

Tag: discord.py

How to create a Rock Paper Scissors command in discord.py

I’m very new to discord.py and I want to create a Rock, Paper, Scissors command. I got it working, but I want to do it using user input. I tried using the await bot.wait_for code, but for some reason it doesn’t work. I’m not getting any errors, but it just doesn’t work and I can’…

Get the number of boosts in a server discord.py

I am trying to make a server info command and I want it to display the server name, boost count, boost members and some other stuff as well. Only problem is I have looked at the docs and searched online and I cant find out how to find the boost information. I dont have any code as Ive not found

issues with discord.py “if channel.id ==”

I’m trying to make a bot that takes images from channel A and posts them to channel B when someone reacts to it. I have everything down so far except that it’ll also post pictures in channel B if someone reacts to one in channel C. I’m trying to use “if channel.id ==” but so far …

how to get all members of a guild in discord.py?

So i want to get all members on the discord guild/server printed out in the console but i only get the bot as member. I already activated server member intent on the discord developer portal but it didn’t help. Thanks in advance here is the code i use: Answer The reason you are only getting bot, is beca…

How do I do the positional parameter in discord.py

This is not working. I totally followed what documentation says, but the bot doesn’t repond to me when I type “!test hello” It should work like this, but mine has nothing respond to me, idk what’s wrong at all This is the original documentation https://discordpy.readthedocs.io/en/lates…

Role auto-assignment bot

The bot does not issue a role when the user connects (there are no errors either) code: Answer Starting from Discord 1.5, you now need to pass in Intents. Everything is explained in the API docs (link). In your case you need the members intent. Remember to also enable it on your bot’s application page (…