Skip to content

Commit

Permalink
chore: add support link to maintenance message
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Apr 14, 2024
1 parent 6d01d33 commit 45e7d2b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions apps/bot/src/commands/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class Join extends GeneralCommand {

if (!guild)
return {
content: 'There is a rare issue occuring with this server, try re-inviting this bot. If the issue persists, join the support server.',
content: 'This server is currently unavailable to me, try re-inviting this bot. If the issue persists, join the support server.',
ephemeral: true,
components: [
{
Expand Down Expand Up @@ -225,7 +225,20 @@ export default class Join extends GeneralCommand {
if (maintenence)
return {
content: `⚠️ __The bot is currently undergoing maintenance. Please try again later.__\n\n${maintenence.message}`,
ephemeral: true
ephemeral: true,
components: [
{
type: ComponentType.ACTION_ROW,
components: [
{
type: ComponentType.BUTTON,
style: ButtonStyle.LINK,
label: 'Join Support Server',
url: 'https://discord.gg/craig'
}
]
}
]
};
}

Expand Down

0 comments on commit 45e7d2b

Please sign in to comment.