Skip to content

I Promise I'm Not Hating #863

Description

@PAINFUEG0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions