I Promise I'm Not Hating — I'm Trying to Understand This Architecture
|
export default class Invite extends Command { |
Brother what are you even inheriting from the parent ?
What's the purpose of the inheritance (pattern) that u have done for your commands ???
|
`https://discord.com/api/oauth2/authorize?client_id=${client.env.CLIENT_ID}&permissions=8&scope=bot%20applications.commands`, |
Also by the time commands are run client.user.id is available so doing stuff like client.env.CLIENT_ID doesn't make sense to me . . .
Please help me understand so that I can make the right choice while making my own bot.
I Promise I'm Not Hating — I'm Trying to Understand This Architecture
lavamusic/src/commands/info/Invite.ts
Line 6 in a99555f
Brother what are you even inheriting from the parent ?
What's the purpose of the inheritance (pattern) that u have done for your commands ???
lavamusic/src/commands/info/Invite.ts
Line 43 in a99555f
Also by the time commands are run client.user.id is available so doing stuff like client.env.CLIENT_ID doesn't make sense to me . . .
Please help me understand so that I can make the right choice while making my own bot.