summary refs log tree commit diff
path: root/src/schema
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-22 18:43:08 +0200
committerGitHub <noreply@github.com>2021-06-22 18:43:08 +0200
commite52597798199d9de8a791723ef6ec37ce08703aa (patch)
tree0b4b14896629a76ee740efdb890d657d15f88b78 /src/schema
parentMerge pull request #158 from fosscord/l10n_master (diff)
parent:art: clean up code (diff)
downloadserver-e52597798199d9de8a791723ef6ec37ce08703aa.tar.xz
Merge pull request #157 from Umimaso/widget
feat: add widget endpoints, routing for unversioned api requests
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/Widget.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/schema/Widget.ts b/src/schema/Widget.ts
new file mode 100644

index 00000000..d37a38de --- /dev/null +++ b/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 +}