What I’ve tried StackOverflow articles Need help to fix a certain bug in rock, scissor and paper. discord.py documentation How can I add reaction to a message (checked plenty of articles, but I’m not going to add them in order to get into the point) I’ve managed to retrieve the emoji from the user in the check method, but still
Tag: discord.py
Discord.py ctx commands not recognised
im fairly new to coding in general and recently started trying to code my own bot. Almost all of the tutorials i have seen use the ctx command however, whenever i use it i get this error: Here is part of my code that uses the ctx command. The aim is to get it to delete the last 3 messages
Timestamp for when the Giveaway Ends
So, i want to do an Timestamp to my Giveaway Command for when the Giveaway Ends. Now the Timestamp is 01.01.1970, i imported datetime and did an convert system. There isnt any Error, so it must been my Code. Any ideas how i can do that? I have no clue how i can change that My Convert System And this
Make Discord.py Bot Only Work In Specific Channels
I was making a bot for my friend using discord.py and I wanted to make it so that it would only work in channel which include the word ticket, made by another bot named Ticket Toll How can I do so? Answer Relevant docs on text channels Unfortunately, Discord’s API does not keep track of who created the channel (which
discord.embed update with role reaction
I’m trying to update a discord.embed with reaction: I create a discord embed with some default information, and add the reaction I want to use, the idea is that when someone react with one of the select reaction, the name of the user is added to the field. ( I actually have 4 commands using the same “template” with the
‘Member’ has no attribute ‘server’
In the given code below I was trying to give a role to the person who reacts to a message by using any emoji but this code throws me an error saying that ‘Member’ has no attribute ‘server’ what should I do now? Answer First off take a look at the documentation. It’ll tell you everything you need to know
How to take from key value and take from this value another value
How can i get needed value, because i send post request to other site and cant edit answer from site. I have this dict from responded content: How you can see in this dict there is a key subscriptions, i’m need value expiry(this is timestamp) but how can i get this value if when i’m trying to call this value
Discord.py Sending attachments for ‘say’ command
I have a ‘say’ command for my bot where it repeats what the user writes in the command message: I want it to also include the attachments if the user included any, but i can’t seem to get it to work. I keep getting the error: What am i doing wrong? In the discord.py docs it says that the ctx.message.attachments
How to get/request the api: https://ev.io/stats-by-un/(username)
I want to show in game stats when the player puts in $stats (username) Answer First, you need to request the api which you need the requests module. Next, you need to know how to get the data from the requested api. I wouldn’t suggest using requests within asynchronous code since it’s blocking. discord.py uses aiohttp, so it should already
Getting an error when trying to get an attachment url in discord.py
I’m trying to make a discord bot that would repost art submissions to the art channel after they are approved by the moderators. Every time I try to extract the attachment URL, I get this error: I tried searching this up on the Internet, but there is nothing. The only thing I found was this post, but I did everything