slash-create/docs-bot #555
sudojunior
started this conversation in
Show and tell
Replies: 1 comment
-
|
Since the introduction of guild and user installs long with the various contexts apps can run in with this new behaviour, discord defaults the context access to
Code permalink + imports above export default class BaseCommand extends SlashCommand {
constructor(creator: SlashCreator, info: SlashCommandOptions) {
super(creator, {
integrationTypes: [
ApplicationIntegrationType.GUILD_INSTALL,
ApplicationIntegrationType.USER_INSTALL,
],
contexts: [
InteractionContextType.BOT_DM,
InteractionContextType.GUILD,
InteractionContextType.PRIVATE_CHANNEL
],
...info
})
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While the main focus is to provide formattable access to the documentation and codebase for slash-create itself, I use it as a platform to experiment and having it double as a working example of slash-create in action.
/docs class/code entity/debug user/temporal *Beta Was this translation helpful? Give feedback.
All reactions