mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
chore: add ApplicationCommandCreateSchema
This commit is contained in:
@@ -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
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
export * from "./ApplicationCommandCreateSchema";
|
||||
export * from "./ApplicationCommandSchema";
|
||||
|
||||
Reference in New Issue
Block a user