chore: add ApplicationCommandCreateSchema
This commit is contained in:
parent
fe53b86e6f
commit
492123ff23
19
src/schemas/api/bots/ApplicationCommandCreateSchema.ts
Normal file
19
src/schemas/api/bots/ApplicationCommandCreateSchema.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { ApplicationCommandHandlerType, ApplicationCommandOption, ApplicationCommandType, ApplicationIntegrationType, InteractionContextType } from "@spacebar/schemas";
|
||||||
|
|
||||||
|
export interface ApplicationCommandCreateSchema {
|
||||||
|
type?: ApplicationCommandType;
|
||||||
|
name: string;
|
||||||
|
name_localizations?: Record<string, string>;
|
||||||
|
description?: string;
|
||||||
|
description_localizations?: Record<string, string>;
|
||||||
|
options?: ApplicationCommandOption[];
|
||||||
|
default_member_permissions?: string;
|
||||||
|
/*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
dm_permission?: boolean;
|
||||||
|
nsfw?: boolean;
|
||||||
|
integration_types?: ApplicationIntegrationType[];
|
||||||
|
contexts?: InteractionContextType[];
|
||||||
|
handler?: ApplicationCommandHandlerType;
|
||||||
|
}
|
||||||
@ -15,4 +15,5 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
You should have received a copy of the GNU Affero General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
export * from "./ApplicationCommandCreateSchema";
|
||||||
export * from "./ApplicationCommandSchema";
|
export * from "./ApplicationCommandSchema";
|
||||||
|
|||||||
Reference in New Issue
Block a user