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
Tag: discord.py
How to make an argument on discord.py to be the last words
I am making a discord bot that one of the features is that you can use a command to make the bot embed thing into chat. This is the code: But when I try to embed more than one words it only embeds the last one. Why does it do that? Answer You need to add a * before the
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 can bots detect spam lines or multiple lines of useless text? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question I am trying to improve my moderation side of my Discord.py bot. I would like users not to send multiple lines
Where to find discord.py bot in self attributes in order to assign roles
I am the owner of a Discord server that doesn’t have too many people so I want them to introduce themselves so I can keep track of who’s who. Upon joining, members only have access to a #introductions channel. When they type in their name, they are given the Member role. There isn’t any discord.py function that does this, so
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