Please reference to the image below: I know how to send a private message DM to user… But I want the bot to send a message in the CHANNEL instead, yet make the message content see-able only by the command user. How do you send a message that says: “only you can see this”. Also, can this be done with
Tag: discord.py
Simple Discord bot not functioning as its supposed to be |Python
I have recently started coding with python and ended up coding a discord bot. This is the code i ran: I think this should make the bot say:Commands:!hello, !help, when a user writes !help but in the end nothing happens. Anyone got an idea how i can improve the code so it works?Id love to know Answer The event’s name
checking if message author has a certain role
I am making an automatic banning system with a discord bot. So once a message with a steam id is placed into the channel, it will run through an API and ban them (I’ve got this working) what I am looking for is to check if that user has a certain role or not. For this I am using a
“TypeError: shield() got an unexpected keyword argument ‘loop'” when running discord.py bot
When I launch my discord.py bot with this code: I get this error: Does anyone have any idea why I have this error? I have already removed everything that is not required in the code and I have updated all my pip freeze, but the error doesn’t change. Answer This is usually caused because of outdated aiohttp module You can
How can we store the value of a Modal in Pycord (2.x) in a method/function and then return it?
How can I make a method and store the value of the response? If I try accessing title_input_modal.children[0] from another cog’s class method, this error pops up:- Answer You can store the value in your class as a property and access it once the modal has been dismissed. To do so you will have to modify your class like this.
How can I make sue only I can use certain commands on my Discord bot? (Python)
So my Discord bot can now kick people from my server. But right now everyone can use the kick command. And I don’t want that. How can I fix this? This is the code so far: Thanks in advance! Answer I have done that before, this answer may help. First, import the necessary modules first I assume you already set
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.
Discord python bot streaming activity
Nothing error, but the bot is not run. Answer
Bot Mentions Discord.py
So I want my bot to respond to anyone who @mentions it. It does work as it should, but the only problem it’ll respond to @everyone and @here pings. It’s probably simple and I am overthinking it but I just want to know if there is any way to make the bot respond to messages it’s actually mentioned in, not
Triggering method from within a loop with Python and Pycord
I’m playing around with Pycord and trying to send a message to a channel X for each element in an array. The following class will throw a TypeError: MyClient.on_ready() missing 1 required positional argument: ‘message’ indicating that MyClient.on_ready() needs 2 arguments, one for self, one for message, but every example on how to pass arguments to class methods were only