ghostdevv / jellycommands

A command handler for Discord.js
https://jellycommands.dev
MIT License
21 stars 5 forks source link

Refactor command "context" system & Support User Apps #200

Open ghostdevv opened 6 months ago

ghostdevv commented 6 months ago
ghostdevv commented 6 months ago

Ideas for the nested object setting

context?: {
    /** @default true */
    global?: boolean;

    /** @default false */
    dm?: boolean;

    /** @default false */
    user?: boolean;

    /** @default [] */
    guilds?: string[] // todo should this be able to accept an async function? if so when should that run
}

Another idea from old issue:

environments: ['global', 'dm', 'user']

ghostdevv commented 6 months ago

worth considering the learning curve each approach adds

ghostdevv commented 3 days ago

To move forward I need to consider: