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

user install works #135

Merged
merged 1 commit into from
Apr 11, 2024
Merged

user install works #135

merged 1 commit into from
Apr 11, 2024

Conversation

jacoobes
Copy link
Member

@jacoobes jacoobes commented Apr 11, 2024

Discord released the new Contexts api to use bots in other places than just guilds. THIS pr IS a soft launch of this feature, and users can experiment in the dev branch to come.

type ValidMemberPermissions = 
    | PermissionFlagBits  //discord.js enum
    | PermissionFlagBits[]  //array of discord.js enum
    | string //must be a stringified number
    | bigint

interface PublishConfig {
    guildIds?: string[];
    dmPermission?: boolean;
    defaultMemberPermissions: ValidMemberPermissions;
    integrationTypes: Array<'Guild' | 'User'>
    contexts: number[] //must be 1 of more in length
}
type ValidPublishOptions = 
    | PublishConfig
    | (absPath: string, module: CommandModule) => PublishConfig

Related discord documentation here

@jacoobes jacoobes changed the title user install work? user install works Apr 11, 2024
@jacoobes jacoobes marked this pull request as ready for review April 11, 2024 15:14
@jacoobes jacoobes requested a review from EvolutionX-10 as a code owner April 11, 2024 15:14
@jacoobes jacoobes merged commit d94d5de into main Apr 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant