summary refs log tree commit diff
diff options
context:
space:
mode:
authorxnacly <matteogropp@gmail.com>2021-02-09 19:06:26 +0100
committerxnacly <matteogropp@gmail.com>2021-02-09 19:06:26 +0100
commit1857e78089fd4fcf70292c9b515332ae14288a13 (patch)
tree3b1e9551ed347ee51c3483033432a6dcd4ab0ace
parent:sparkles: Event Model (diff)
downloadserver-1857e78089fd4fcf70292c9b515332ae14288a13.tar.xz
added guild schema
-rw-r--r--src/Schema/Guild.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Schema/Guild.ts b/src/Schema/Guild.ts
new file mode 100644

index 00000000..6c1ab00c --- /dev/null +++ b/src/Schema/Guild.ts
@@ -0,0 +1,35 @@ +export const Guild = { + name: String, // ! 2-100 chars + $region: String, // ? voice region ? + // $icon: String, // TODO: add icon data (base64 128x128) + + // * --- useless for us due to templates being a thing --- * // + // $verification_level: Number, // ! https://discord.com/developers/docs/resources/guild#guild-object-verification-level + // $default_message_notifications: Number, // ! https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level + // $explicit_content_filter: Number, + // $roles: array of role objects, + // $channels: array of partial channel objects, + // $afk_channel_id: snowflake, + // * --- useless for us --- * // + + // $afk_timeout: Number, + // $system_channel_id: snowflake, +}; + +export interface Guild { + name: string; // ! 2-100 chars + region?: string; // ? voice region ? + // icon?: string; // TODO: add icon data (base64 128x128) + + // * --- useless for us due to templates being a thing --- * // + // verification_level?: number; // ! https://discord.com/developers/docs/resources/guild#guild-object-verification-level + // default_message_notifications?: number; // ! https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level + // explicit_content_filter?: number; + // $roles: array of role objects, + // $channels: array of partial channel objects, + // $afk_channel_id: snowflake, + // * --- useless for us --- * // + + // afk_timeout?: number; + // system_channel_id?: snowflake, +}