Discord Pycord Dodaj przycisk URL w widoku podklasowym
class helpView(View):
def __init__(self):
super().__init__(timeout=None)
supportServerButton = discord.ui.Button(label='Support Server', style=discord.ButtonStyle.gray, url='https://discord.com')
self.add_item(supportServerButton)
@discord.ui.button(label='Commands', style=discord.ButtonStyle.green)
async def command_callback(self, button, interaction):
await interaction.response.edit_message(embed=commandEmbed, view=commandView())
Outrageous Octopus