Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update About.ts #520

Merged
merged 3 commits into from
Mar 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions src/commands/info/About.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from 'discord.js';

import { Command, Context, Lavamusic } from '../../structures/index.js';

export default class About extends Command {
Expand Down Expand Up @@ -30,13 +29,14 @@ export default class About extends Command {
options: [],
});
}

public async run(client: Lavamusic, ctx: Context): Promise<any> {
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel('Invite Lavamusic')
.setStyle(ButtonStyle.Link)
.setURL(
`https://discord.com/api/oauth2/authorize?client_id=875635121770889257&permissions=8&scope=bot%20applications.commands`
`https://discord.com/api/oauth2/authorize?client_id=${client.config.clientId}&permissions=8&scope=bot%20applications.commands`
),
new ButtonBuilder()
.setLabel('Support Server')
Expand Down Expand Up @@ -83,14 +83,5 @@ export default class About extends Command {
components: [row],
});
}
}

/**
* Project: lavamusic
* Author: Blacky
* Company: Coders
* Copyright (c) 2023. All rights reserved.
* This code is the property of Coder and may not be reproduced or
* modified without permission. For more information, contact us at
* https://discord.gg/ns8CTk9J3e
*/
}

Loading