Skip to content

Commit

Permalink
fix(info): use correct invite link
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Jun 19, 2022
1 parent 28021d2 commit d472e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion commands/bot/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
description: 'Display information about the bot',
async execute(client, message) {
const developers = (await Promise.all(client.config.developers.map(async id => (await client.users.fetch(id)).tag))).join('\n');
await client.application.fetch();
message.channel.send({
embeds: [{
title: 'Info',
Expand All @@ -28,7 +29,7 @@ module.exports = {
{
name: '💻 Technoloqy',
value: stripIndents`
<:gas:896370532751147028> [G.A.S Bot](${client.generateInvite(client.config.invite)}) \`v${botVersion}\`
<:gas:896370532751147028> [G.A.S Bot](${client.generateInvite(client.application.installParams ?? client.config.invite)}) \`v${botVersion}\`
<:djs:893948932651118653> [discord.js](https://discord.js.org/) \`v${version}\`
<:node:893952060205178941> [Node.js](https://nodejs.org/) \`${process.version}\`
`,
Expand Down
3 changes: 2 additions & 1 deletion interactions/commands/bot/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { version: botVersion } = require('../../../package.json');
module.exports = {
async execute(client, interaction) {
const developers = (await Promise.all(client.config.developers.map(async id => (await client.users.fetch(id)).tag))).join('\n');
await client.application.fetch();
interaction.reply({
embeds: [{
title: 'Info',
Expand All @@ -27,7 +28,7 @@ module.exports = {
{
name: '💻 Technoloqy',
value: stripIndents`
<:gas:896370532751147028> [G.A.S Bot](${client.generateInvite(client.config.invite)}) \`v${botVersion}\`
<:gas:896370532751147028> [G.A.S Bot](${client.generateInvite(client.application.installParams ?? client.config.invite)}) \`v${botVersion}\`
<:djs:893948932651118653> [discord.js](https://discord.js.org/) \`v${version}\`
<:node:893952060205178941> [Node.js](https://nodejs.org/) \`${process.version}\`
`,
Expand Down

0 comments on commit d472e4b

Please sign in to comment.