I have a discord bot that I’m using to learn how to use the API and to practise my python knowledge. I’m trying to create a system that randomly chooses a status and applies it then waits a short time, currently 10 minutes, then continue like that infinitely until the bot is shutdown. Currently, I have the loop in my
Tag: discord
Discord Python Bot Multiple Value in embed field
So i have a discord bot (using python) that connect to a sqlite database, and i want to show the data using embed. The data is containing my daily anime schedule. Here’s the code : The problem is this Discord Embed There are 2 ‘Sunday’ which is not what i wanted. What i want is (example for Sunday), the ‘Value’
how to get a apis output in python without json
here is api i am trying https://api.apithis.net/host2ip.php?hostname=google.com as you can see unlike json apis it dose not have “” that you can copy as response.json here is my current code if anyone can fix would help alot as im not sure how to use apis without json output thanks Answer Firstly the response you are getting is not JSON. If
How to stop limit of channel.purge decreasing when check returns false?
I have a command that is meant to go through and remove the last x number of messages sent by bots in a channel. However, the command removes all messages from bots in the last x messages instead of removing the last x number of messages from bots. Is there a way that I can check if x number of
Discord.py editing channel by word that is in the name
I am making statistics bot, and i have a problem, with voice channel containing member count. I want to make bot update name of that channel, on_member_join, on_member_remove and when user use command refresh but i tried many times at different ways, and it stil don’t work, i want to make him edit channel that contains in name “Members:” but
Discord.py Error when trying to edit embed after X seconds
So, after like an hour of trying I gave up. I was trying to make my embed get edited after 5 seconds but it did not work. I keep getting this error: ”Instance of ‘Embed’ has no ‘message’ member” Pretty basic command but no clue what to do. Also do I need the ‘Import time’? Answer You’re trying to edit
Discord.py get uses and author from an invite
I would like to get all the invites from a discord server. I get all the invite but I want to get the author and the uses from it. Everything works just fine except the guild.uses. Tried to embed the things from the discord API. “””From discord api https://discordpy.readthedocs.io/en/latest/api.html Attribute & Method max_age abc.GuildChannel.invites(), Guild.invites() max_uses abc.GuildChannel.invites(), Guild.invites() created_at abc.GuildChannel.invites(),
cannot instal discord module properly
while installing the module, i get this error and to double check when i try running with this code- the error was shown to me was this pls help out , so i need to spam so that my question get subbmitted and i dont get a error regarding that your post is mostly code , please add some more
on_member_join event discord.py
I maked an auto roles giving system with on_member_join event, it has worked until now, now it’s not sending messages to members, and not giving roles. Please help: Answer It sounds like you need intents. You’ll need to add this code above your definition of bot: Now, add the intents=intents parameter to your bot initialization underneath the intents bit: Make
Commands not working after adding message.delete() function to certain keywords
The commands that used the bot prefix to run stopped working after adding a client event to delete messages containing certain keywords. I recently started coding so all help would be very appreciated. The discord.py documentation is kinda complicated so i cannot find what i am looking for. For more details please ask me in the comments. Answer You have