chore: add ApplicationCommandCreateSchema

This commit is contained in:
CyberL1 2025-10-16 22:28:32 +02:00 committed by Rory&
parent fe53b86e6f
commit 492123ff23
2 changed files with 20 additions and 0 deletions

View 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;
}

View File

@ -15,4 +15,5 @@
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/>.
*/
export * from "./ApplicationCommandCreateSchema";
export * from "./ApplicationCommandSchema";