Skip to content
Advertisement

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’t figure out why. Here’s my

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 when I introduce that

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 because you are

How to make my bot forward DMs sent to it to a channel

So, I’ve got a bot that can send a user a DM via a very simple command. All I do is “!DM @user message” and it sends them the message. However, people sometimes try responding to the bot in DMs with their questions, but the bot does nothing with that, and I cannot see their replies. Would there be a

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/latest/ext/commands/commands.html#parameters Answer Your whole code should look like this. You are in the right documentation keep

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 (as is explained in the

Advertisement