Update invite links to use dynamic Discord client ID and import necessary configuration constants. Refactor slash command synchronization logic for improved error handling and performance.
Some checks failed
CI / Bot (Python) (push) Failing after 12s
CI / Dashboard (Next.js) (push) Failing after 10s

This commit is contained in:
TheOnlyMace
2026-07-21 22:44:40 +02:00
parent fc77f0a3c2
commit 6b0091f7d5
3 changed files with 14 additions and 14 deletions

View File

@@ -86,7 +86,7 @@ class AvatarView(View):
await interaction.response.edit_message(embed=embed)
from utils.config import BotName
from utils.config import BotName, DISCORD_CLIENT_ID
class General(commands.Cog):
@@ -309,7 +309,7 @@ class General(commands.Cog):
invite_text = (
"```Empower your server with blazing-fast features and 24/7 support!```\n"
f"{AXIOM_LINKS} **Quick Actions**\n"
f">>> **[Invite {BotName}](https://discord.com/oauth2/authorize?client_id=1396114795102470196&permissions=8&integration_type=0&scope=bot+applications.commands)**\n"
f">>> **[Invite {BotName}](https://discord.com/oauth2/authorize?client_id={DISCORD_CLIENT_ID or (ctx.bot.user.id if ctx.bot.user else '')}&permissions=8&integration_type=0&scope=bot%20applications.commands)**\n"
"**[Support Server](https://discord.gg/hexahost)**"
)
await ctx.send(view=CV2(f"{AXIOM_CONNECTION} {BotName} Integration Hub!", invite_text))