I need to get Only users of my channel, but I have not found a function that returns the desired result. There is a function to get all users of the bot: get_all_members(), but she’s not doing exactly what I need. I want get user nicknames. Help me find a solution to my problem. Answer Hm… I had this issue
Tag: discord
Discord.py on_member_join not working, no error message
I am trying to make a discord bot with the Discord.py library. The commands with the @client.command() decorator work fine for me, but none of the event ones that I tried work. I would expect this to output to the terminal or in the channel id I put in, but nothing appears, not even an error message. *I used client.
How do I get the most recent call of a command, and save it in a function? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I’ve been messing with bots for a couple days now, and I’m trying to get the name of the user that called a certain command,
Get person who invited the discord bot discord.py
Is there any way to get the person who invited the bot to the server? My point is to dm that person to tell her what to do so things go smoothly and I don’t want the bot to just write it in a random text channel that everybody could see. Thanks in advance Answer There isn’t any way yet
Discord.py Making the bot not interact with DM channels
I am writing a small message logging program, I want the bot to only log messages from a specific Guild and for that, I check for the message.guild.id. This, however, raises a problem when there is a message sent in a DM Channel. I want the bot to ignore the Dm channel completely but I did not have much luck
Discord.py REWRITE – How to make a Guild Invite
I am trying to make my bot create an invite This gives an error ‘bot’ object has no Attribute ‘create_invite’ I am using the Discord.py Rewrite. Thanks in advance! Answer You’ll need to specify what you’re making the invite for, because the bot doesn’t currently have a target for the invite: References: TextChannel.create_invite() abc.GuildChannel – The general target that’s needed
Discord.py async function does not give any output and does not do anything
here is the code: I have no clue what is happening as there is quite literally no error or output of any sort in the console. does anyone know the problem? Answer If you’re not familiar with asynchronous functions, they need to be awaited. Examples of coroutines can be seen in msg.edit(…, as edit() is a coroutine, therefore you need
How do I reference “*args” in a discord bot’s code as a message for the bot to send?
This is my code: client.say(output) does not work, but I tried to do it in this form: await message.channel.send(output) However, I don’t know what to put for message as my function’s parameter is *args Is there a something else I can put as the message? Answer Firstly, you need to have a parameter for your command so that context can
discord.py emoji all servers bot in
I have a bot that sends embeds that include emojis specific to each embed and it works great on my test server where I uploaded the emojis but they don’t show up on other servers since those servers don’t have the custom emoji. using: works of course for the server it’s in but is there a way to get and