ODSlashCommandUniversalCommand interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
A universal template for a slash command.
Why universal? Both existing slash commands & unregistered templates can be converted to this type.
Properties
contexts type ➜ readonly (discord-api-types.InteractionContextType[])
A list of contexts where you can use this command.
defaultMemberPermissions type ➜ bigint
A bitfield of the user permissions required to use this command.
description string ➜ string
The description of this command.
descriptionLocalizations type ➜ readonly (api.ODSlashCommandUniversalTranslation[])
All localized descriptions of this command.
dmPermission boolean ➜ boolean
Is this command available in DM?
guildId type ➜ null|string
The id of the guild this command is registered in.
integrationTypes type ➜ readonly (discord-api-types.ApplicationIntegrationType[])
A list of contexts where you can install this command.
name string ➜ string
The name of this command.
nameLocalizations type ➜ readonly (api.ODSlashCommandUniversalTranslation[])
All localized names of this command.
nsfw boolean ➜ boolean
Is this command for 18+ users only?
options type ➜ readonly (api.ODSlashCommandUniversalOption[])
A list of options for this command.
type type ➜ discord-api-types.ChatInput
The type of this command. (required => ChatInput)