Untitled

 avatar
unknown
python
10 months ago
1.0 kB
3
Indexable
@discord.ui.button(label="Sugestão",style=discord.ButtonStyle.blurple,emoji="💡")
async def botao(self,interaction:discord.Interaction,button:discord.ui.Button):
    self.value = True
    self.stop()
    botao = None
    mensagem = discord.Embed(
        color=26367,
        description=f'{Sugestão}'
    )
    logs_sugestao = id_logs_sugestao
    await interaction.response.send_modal(Sugestão())#
    await interaction.channel.send(mensagem)

@tree.command(guild=discord.Object(id=1254562365316399195),name='enviar_sugestão',description='envie uma sugestão ao servidor')
async def botao(interaction:discord.Interaction):
    await interaction.channel.send(view=View()) 

async def on_interaction(interaction:discord.Interaction):
        interaction.response.send_modal(Sugestão())

async def on_submit(self, interaction:discord.Interaction):
        await interaction.response.send_message(f"Sugestão enviada por {interaction.user.mention}:\n\n{self.sugestão.value}", ephemeral=True)
Editor is loading...
Leave a Comment