Skip to content

Commit b2b6054

Browse files
committed
revised view for sync button
1 parent bb517b3 commit b2b6054

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

modules/Drawbridge/commands/sync.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)