From 08e837bf5559e9680fc8cb99bd05b93f8eb2cac5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 12 Aug 2021 20:09:35 +0200 Subject: :sparkles: api --- api/src/schema/Widget.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 api/src/schema/Widget.ts (limited to 'api/src/schema/Widget.ts') diff --git a/api/src/schema/Widget.ts b/api/src/schema/Widget.ts new file mode 100644 index 00000000..d37a38de --- /dev/null +++ b/api/src/schema/Widget.ts @@ -0,0 +1,10 @@ +// https://discord.com/developers/docs/resources/guild#guild-widget-object +export const WidgetModifySchema = { + enabled: Boolean, // whether the widget is enabled + channel_id: String // the widget channel id +}; + +export interface WidgetModifySchema { + enabled: boolean; // whether the widget is enabled + channel_id: string; // the widget channel id +} -- cgit 1.5.1