Whenever I run the following code for a discord bot after I type a message so that the bot sends the link to the image I get the error: I am pretty new to coding, so sorry if it’s something super simple! Answer ‘Messageable.send’ was never awaited tells you what went wrong here. The library is async so if you
Tag: discord
How can I make a commmand that goes through a txt file and sends the text that i need?
Im trying to make an api key thingy in discord but i don’t know how to go through txt files one by one for ex test test2 test3 test4 If the first user sends !key it would send test if the 2nd user sends !key it would send test2.And so on. this is what i’ve made so far: But im
Nextcord Fight Command Organization and Suggestions
I created an extremely basic fight command in Nextcord. The command is like so: Each character and weapon is assigned their own strength, speed, and defense stats. And the stats are all added up to find their final stat. Then it does the same for the enemy and it calculates the outcome. What I would like to do is make
How do you send a private message in discord.py to command user?
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
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
“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.
How do I check for required scopes in a discord bot user using Python?
I am making a discord API wrapper and I finally thought of embarking on commands. As most of you know, discord requires bots to have the application.commands scope for checking whether the bot user has permissions to receive application commands. I wanted to check if the bot had the setting enabled using Python, but it never seems to work. I