How to get message of command used | discord.py
I need to create a button that will create a link to the discord message.
This is implemented in my code like this:
Get discord.py bot to leave voice channel if alone
I’ve been trying to get my music bot to leave a voice channel it’s in if it’s been alone for more than 5 seconds but can’t seem to get it to work. I’d appreciate any pointers toward the correct implementation.
How would I get a users PROFILE PICTURE FILE NAME ONLY and call it after the user interacts with a button?
My current code defines a button that has a interaction response, and puts some of the users information in a URL, like their id, name, dprofile picture, etc. I want to fix my code so that it gets the users profile picture FILE NAME ONLY, when they click the interaction button, and then the link. So i can put just the filename into the URL.
How to see the difference between before.timeout and after.timeout in discord.py?
@bot.event async def on_member_update(before, after): print(before.timeout) print(after.timeout) if before.timeout != after.timeout: print(“Timeout status changed”) else: print(“No change”) This is my code, and I’ve been trying to detect changes in a user’s timeout status. When I try to print the two statements and check them side by side, I’m certain they are the same. However, when […]
How to get message of command used | discord.py
Мне необходимо создать кнопку, которая будет создавать ссылку на сообщение дискорд.
Это у меня реализовано в коде так:
How to get personal correspondence with a user outside the guild using the discord py correspondence id
I need to get a message in a conversation with a user that already exists, but I ran into the problem that I can’t get the conversation as an object by id, although the id is correct
Error: ‘NoneType’ object has no attribute ‘fetch_message’
Python Discord bot problem with editing users who are not in the voice channel
I have a problem with the fact that I can only access users who are in a voice channel. except with the user ID. I have very little knowledge of python myself and am just learning it this code is written using AI. my bot has admin rights.
Discord.Py Cogs And Slash Command
I’m trying to make a bot with moderation cog file. Firstly I added ban and unban but it is not working.
my files look like. I think files are in correct positions.
I want to check user has nitro
It returns None even though the user has nitro
Discord Bot suddenly sending embedded activity
I’ve created a music bot in discord using the discord.py library, among others for music playback. It’s been working fine and I haven’t changed anything in my code but today, suddenly, whenever using a command, the bot sends an embedded activity shortly before doing whatever it’s supposed to do.
I’ve attached a screenshot to show this. Does anyone know what causes this? My bot doesn’t even have “Use embedded activites” enabled in its invite permissions.