@@ -26,17 +26,26 @@ class SyncButtonView(discord.ui.View):
2626 def __init__ (self , cog : 'Sync' ):
2727 super ().__init__ (timeout = None ) # Persistent view
2828 self .cog = cog
29+
30+ # Add the link button manually since it can't use the decorator
31+ link_button = discord .ui .Button (
32+ label = "🔗 Link your Discord to ozfortress" ,
33+ style = discord .ButtonStyle .link ,
34+ url = "https://docs.ozfortress.com/guides/discord_linking_for_users/"
35+ )
36+ self .add_item (link_button )
2937
3038 @discord .ui .button (
31- label = '🔗 Sync ozfortress Account ' ,
39+ label = '⚡ Sync with ozfortress ' ,
3240 style = discord .ButtonStyle .primary ,
33- custom_id = 'sync_button'
41+ custom_id = 'sync_button' ,
3442 )
3543 async def sync_button (self , interaction : discord .Interaction , button : discord .ui .Button ):
3644 """Handle sync button clicks"""
3745 logger .info (f"Sync button clicked by { interaction .user } (ID: { interaction .user .id } )" )
3846 await interaction .response .defer (ephemeral = True , thinking = True )
3947 await self .cog ._sync_user (interaction .user , interaction )
48+
4049
4150
4251@discord .app_commands .guild_only ()
0 commit comments