From bfc3f1f1862801c096645ed69e6047308d28f509 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Mon, 17 Jul 2023 23:21:19 +0200 Subject: [PATCH] use oauth url instead of app directory --- commands/message/core/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/message/core/stats.js b/commands/message/core/stats.js index 2c9d615..331d408 100644 --- a/commands/message/core/stats.js +++ b/commands/message/core/stats.js @@ -62,7 +62,7 @@ module.exports = { `${iconPill("connection", "Memory Usage")} ${highlight(` ${Math.round(formatted.usage / 1024 / 1024)}MB `)}`, `${iconPill("timer", "Uptime ")} ${highlight(` ${format(process.uptime())} `)}`, ``, - `${iconLinkPill('gitlab', OPEN_SOURCE_REPOSITORY_URL, 'Source Code')} ​ ​ ${iconLinkPill('link', `https://canary.discord.com/application-directory/${context.client.user.id}`, `Invite ${context.client.user.username}`)}` + `${iconLinkPill('gitlab', OPEN_SOURCE_REPOSITORY_URL, 'Source Code')} ​ ​ ${iconLinkPill('link', context.application.oauth2UrlFormat({ scope: 'bot applications.commands', permissions: 412317248576 }), `Invite ${context.client.user.username}`)}` ] return editOrReply(context, createEmbed("default", context, {