import discord
from discord import TextInput, ui, utils, Button, ButtonStyle
import random
import asyncio
from discord.ext import commands
bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())
paragraph = discord.TextStyle.paragraph
long = discord.TextStyle.short
short = discord.TextStyle.short
@bot.command()
async def button(interaction: discord.Interaction):
await interaction.channel.send(view=Button())
class Button(discord.ui.View):
def __init__(self) -> None:
super().__init__(timeout=None)
@discord.ui.button(label="Кнопка", style=discord.ButtonStyle.secondary)
async def q(self, interaction: discord.Interaction, button: discord.ui.Button):
await interaction.channel.send("В разработке")
bot.run("TOKEN")