await message.add_reaction('✅')
message = await ctx.send(embed=embed)
await message.add_reaction('✅')
Как выдать временную роль?Штатными средствами библиотеки - никак. Можно выдать роль и снять роль, а реализация отложенного таска со снятием уже на вас.
Я не знаю как написать время в кодингДля этого используется datetime, возможно в Вашем случае стоит использовать библиотеку dateparser для парсинга даты из строки.
chat_verification = {message.chat.id}
check = cursor.execute(f"SELECT chat_id FROM chat_id_table WHERE chat_id ='{chat_verification}' AND verification = 1
chat_verification
?chat_msgs.append((nickname, data['msg']))
refresh_task.close()
online_users.remove(nickname)
toast("Вы вышли из чата!")
Dialogflow API has not been used in project 787000836274 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/dia... then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Before you begin
Select or create a Cloud Platform project.
Enable billing for your project.
Enable the Google Cloud Dialogflow API.
Set up authentication with a service account so you can access the API from your local workstation.
view = ExampleView()
embed = Embed(<заполнить>)
await ctx.send(embed=embed, view=view)
from discord.ext import tasks
@client.event
async def on_ready():
stats_count.start()
@tasks.loop(seconds=60.0)
async def stats_count():
guild = client.get_guild(YOUR_SERVER_ID)
category = discord.utils.get(guild.categories, name="Server Stats")
channel = category.voice_channels[1]
await channel.edit(name=f"All Members: {guild.member_count}")