This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Flam3rboy bb0dec2a9f 🎨 clean up code
widget.json.ts: just return instead of long if statement + add ?. operators for error handling
widget.png.ts make path universal
widget.ts: remove unnecessary guild db query as getPermission already checks it
Widget.ts make parameters required
2021-06-22 18:41:21 +02:00

11 lines
350 B
TypeScript

// 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
}