@commands.command()
async def butn(self, ctx):
await ctx.send("Test", components=[
Button(
style = 1,
label = "Button",
emoji = "
)
])
def check(res):
return True
while True:
res = await self.client.wait_for("button_click", check=check)
print(res)
Это мой импорт:
import discord
from discord.ext import commands
from discord.ext.commands import has_permissions
from discord_components import Button
Подробнее здесь: https://stackoverflow.com/questions/708 ... the-button
Мобильная версия