discord

How do I get or track who clicked on a reaction in a message? Discord bot

There is a discord bot. You need to create reactions under the messages that the bot sends, and get information about who clicked on which reaction.

Development of Discord bots on discord.py

I'm writing a function that changes the channel name when someone leaves or comes to the server. It outputs the number of ser ... ков: {}".format(len(member.guild.members)) ) What is the problem? Maybe this is because my computer is slowing down?

How to log in to Discord via token

I have a question, how do I log in to my discord account using a token?

Discord.py, how to issue a role when using the command?

from SimpleQIWI import * from time import sleep import discord token = "Token" # https://qiwi.com/api phone = "numbe ... break time.sleep(1) api.stop() client = MyClient() client.run('Token')

Question about MySQL for Node.JS

I create bots for Discord using the discord module.js for Node.js. I use a MySQL database for storing users. So, in my bot th ... }) } module.exports.help = { name: 'personal' }; Please help me, I have 4 days can not understand what I'm doing wrong!

How do I find out the category id? (discord.py)

How to find out the id of the category by its name, for example: the category is called "Main" and it is necessary that after ... f"{OSNid}", reason=None) await ctx.guild.create_text_channel(f"TEST8", overwrites=None,category=f"{OSNid}", reason=None)

Discord.py | How to find out the role ID of the person who wrote the command

In this code snippet, I need to find out if the ID of this role is in the list of author roles. Role ID- 767450270888099910 @ ... ctx.send('Предателям не давали право открывать рот! Скажи спасибо что ты можешь остаться на сервере...') return True

Hyperlink in the message

I tried the following code: await ctx.send("`uwu`\n\nUsage = `sun.uwu <[arg1]>`\n\nNOTE: " + ["Sunrise"]("https://disco ... d, the TypeError comes out. Please help, preferably by explaining how to add a hyperlink to a message. Solved: solution below

Changing the command prefix discord.py

How can I change the bot prefix via the command in discord.py? I tried to use this code, but it says that the setprefix comma ... , prefixes=""): custom_prefixes[ctx.guild.id] = prefixes.split() or default_prefixes await ctx.send("Prefixes set!")

Discord.py deleting all messages in a text channel

I've been trying to clear messages (everything) in my Discord bot for a long time using the command: /clear, but it doesn't w ... ): await client.delete_message(msg) What am I doing wrong? I just close the file (when opened). Please help me!

Commands for admins

I make a bot and I don't want some commands like clear to be used by ordinary mortals. How to make a role restriction on the ... x.channel.purge(limit=int(amount)) await ctx.channel.send(':: Сообщения успешно удалены') print('Готов') bot.run(token)

Discord How to get a username with a Discord ID

I have a lot of Discord IDs. I would like to get from ID -> user#1234. In the official API, I found https://discord.com/de ... here are shared servers/friends with this id I would like to implement it either with#, or by request. Thank you in advance.

How to get a list of all discord server members (discord.py)

How can I write all the server participants to a list? I tried it like this: @bot.command() async def members(ctx): for ... for member in guild.members: await ctx.send(member) But it only gave out the nickname and tag of my bot

Get text from Embed in in discord

Writing a bot discord.py . I have an Embed and there is text in the description. I need to convert it to plain text. How to d ... u need to get the "text that needs to be intercepted". In general, it is better to use the entire text. Thank you in advance.

How can I send a link in discord on behalf of a bot, but without an attachment?

When the bot sends a link to a text channel. Discord automatically creates an attachment from the site, which, with a large n ... : await ctx.send(f'{author.mention}, создаю ссылку...') url = URL_Generator() await author.send(url)

Discord.js does not change the channel name

The idea of the bot in discord is that when enabled, it changes the name of the voice channel to the number of participants o ... etName("Количество челов:"+ memberCount) .then(result => console.log(result)) .catch(error => console.log(error)); });

I run the bot for discord via cmd there is no error, but the bot does not run in discord

Here is the code: import discord import config class MyClient(discord.Client): async def on_ready(self): print( ... essage from {0.author}: {0.content}' .format(message)) client = MyClient() client.run(config.TOKEN)

How to add reactions to a bot message (the bot itself) discord py

How to add the reaction of bots to the last message of the bot itself check = await ctx.send("Сообщение") ross = bot.get_emoj ... nds.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji

How do I create a channel on a specific discord server?

Tell me how to create a text channel on a specific server using a command on another? That is, there is a server X where the command is entered !channelcreate (channel name) (server id Y) then a text channel is created on server Y.

How to check whether a user has a role for the discord bot?

How can I check if a discord user has a role? I want to make a special role so that the bot executes commands only for those ... mple, "Admin". And if there is no role, he wrote that they need such and such a role. I don't know much about Python, library