so my bot runs on start and it prints the basic command but now i need it to send a button when I type !menu but it doesnt work and idk what to do, i followed the entire tutorial if u want i can link it idk how to fix it
from imaplib import Commands
import discord
import os
from discord.ext import commands
client = discord.Client(intents=discord.Intents.default())
Bot=commands.Bot(command_prefix='!', intents = discord.Intents.all())
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('start'):
await message.channel.send('Starting Systems...')
class Menu(discord.ui.View):
def init(self):
super().init()
self.value = None
@discord.ui.button(label="Send Message", style = discord.ButtonStyle.grey)
async def menu1(self, button: discord.ui.Button, interaction: discord.Interaction):
await interaction.response.send_message("Hello you Clicked me")
@Bot.command()
async def menu(ctx):
view = Menu()
await ctx.reply(view=view)
client.run('')

