From 12cca1b5469f76d7b54be1cf09fe3e242e8c7271 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 30 Jun 2024 21:53:21 +0200 Subject: [PATCH 01/30] Add migration for new user setting props --- .../mariadb/1719776735000-newUserSettings.ts | 23 +++++++++++++++++++ .../mysql/1719776735000-newUserSettings.ts | 23 +++++++++++++++++++ .../postgres/1719776735000-newUserSettings.ts | 23 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 src/util/migration/mariadb/1719776735000-newUserSettings.ts create mode 100644 src/util/migration/mysql/1719776735000-newUserSettings.ts create mode 100644 src/util/migration/postgres/1719776735000-newUserSettings.ts diff --git a/src/util/migration/mariadb/1719776735000-newUserSettings.ts b/src/util/migration/mariadb/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..f7c37ca92 --- /dev/null +++ b/src/util/migration/mariadb/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` ADD friend_discovery_flags integer NULL DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` ADD view_nsfw_guilds tinyint NULL DEFAULT 1;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN view_nsfw_guilds;", + ); + } +} diff --git a/src/util/migration/mysql/1719776735000-newUserSettings.ts b/src/util/migration/mysql/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..f7c37ca92 --- /dev/null +++ b/src/util/migration/mysql/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` ADD friend_discovery_flags integer NULL DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` ADD view_nsfw_guilds tinyint NULL DEFAULT 1;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN view_nsfw_guilds;", + ); + } +} diff --git a/src/util/migration/postgres/1719776735000-newUserSettings.ts b/src/util/migration/postgres/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..4d0224f0f --- /dev/null +++ b/src/util/migration/postgres/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE user_settings ADD COLUMN friend_discovery_flags integer DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE user_settings ADD COLUMN view_nsfw_guilds tinyint DEFAULT 1;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE user_settings DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE user_settings DROP COLUMN view_nsfw_guilds;", + ); + } +} From 9d27a5138fa0fa7ef44c9a357e243e773bf7d3e2 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 30 Jun 2024 21:54:03 +0200 Subject: [PATCH 02/30] Prettier -.- --- src/util/entities/UserSettings.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/entities/UserSettings.ts b/src/util/entities/UserSettings.ts index 0d4b6a7b7..d3efe79b2 100644 --- a/src/util/entities/UserSettings.ts +++ b/src/util/entities/UserSettings.ts @@ -122,7 +122,6 @@ export class UserSettings extends BaseClassWithoutId { @Column({ nullable: true }) view_nsfw_guilds: boolean = true; - } interface CustomStatus { From b7bf2a11ea7b1183c45d3def833310fa39fe74d6 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Mon, 1 Jul 2024 18:25:29 +0200 Subject: [PATCH 03/30] Fix Postgres column type (hopefully) --- src/util/migration/postgres/1719776735000-newUserSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/migration/postgres/1719776735000-newUserSettings.ts b/src/util/migration/postgres/1719776735000-newUserSettings.ts index 4d0224f0f..dbee0b0d5 100644 --- a/src/util/migration/postgres/1719776735000-newUserSettings.ts +++ b/src/util/migration/postgres/1719776735000-newUserSettings.ts @@ -8,7 +8,7 @@ export class NewUserSettings1719776735000 implements MigrationInterface { "ALTER TABLE user_settings ADD COLUMN friend_discovery_flags integer DEFAULT 0;", ); await queryRunner.query( - "ALTER TABLE user_settings ADD COLUMN view_nsfw_guilds tinyint DEFAULT 1;", + "ALTER TABLE user_settings ADD COLUMN view_nsfw_guilds boolean DEFAULT true;", ); } From ef13c8c814df0a1e0636cc0d39d46f16422b0e38 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 30 Jun 2024 20:13:13 +0200 Subject: [PATCH 04/30] Add "email.senderAddress" config --- src/util/config/types/EmailConfiguration.ts | 1 + src/util/util/email/index.ts | 4 +++- src/util/util/email/transports/SMTP.ts | 7 +++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/util/config/types/EmailConfiguration.ts b/src/util/config/types/EmailConfiguration.ts index ae9d53baf..62305d10b 100644 --- a/src/util/config/types/EmailConfiguration.ts +++ b/src/util/config/types/EmailConfiguration.ts @@ -25,6 +25,7 @@ import { SendGridConfiguration } from "./subconfigurations/email/SendGrid"; export class EmailConfiguration { provider: string | null = null; + senderAddress: string | null = null; smtp: SMTPConfiguration = new SMTPConfiguration(); mailgun: MailGunConfiguration = new MailGunConfiguration(); mailjet: MailJetConfiguration = new MailJetConfiguration(); diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index 619cc5c3f..d765f5ff5 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -187,7 +187,9 @@ export const Email: { const message = { from: - Config.get().general.correspondenceEmail || "noreply@localhost", + Config.get().email.senderAddress || + Config.get().general.correspondenceEmail || + "noreply@localhost", to: email, subject, html, diff --git a/src/util/util/email/transports/SMTP.ts b/src/util/util/email/transports/SMTP.ts index 5b43a8705..e3031943b 100644 --- a/src/util/util/email/transports/SMTP.ts +++ b/src/util/util/email/transports/SMTP.ts @@ -27,9 +27,12 @@ export default async function () { if (!host || !port || secure === null || !username || !password) return console.error("[Email] SMTP has not been configured correctly."); - if (!Config.get().general.correspondenceEmail) + if ( + !Config.get().email.senderAddress && + !Config.get().general.correspondenceEmail + ) return console.error( - "[Email] Correspondence email has not been configured! This is used as the sender email address.", + '[Email] You have to configure either "email_senderAddress" or "general_correspondenceEmail" for emails to work. The configured value is used as the sender address.', ); // construct the transporter From e116e936936025a27ec75d915b680f981ce564e9 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:22:19 +0200 Subject: [PATCH 05/30] Add .position to public endpoints --- src/api/routes/channels/#channel_id/index.ts | 6 ++++++ .../channels/#channel_id/permissions.ts | 11 ++++++++--- src/api/routes/guilds/#guild_id/channels.ts | 19 ++++++++++++++++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/api/routes/channels/#channel_id/index.ts b/src/api/routes/channels/#channel_id/index.ts index 99f9a6471..291b64727 100644 --- a/src/api/routes/channels/#channel_id/index.ts +++ b/src/api/routes/channels/#channel_id/index.ts @@ -50,7 +50,13 @@ router.get( const channel = await Channel.findOneOrFail({ where: { id: channel_id }, }); + if (!channel.guild_id) return res.send(channel); + channel.position = await Channel.calculatePosition( + channel_id, + channel.guild_id, + channel.guild, + ); return res.send(channel); }, ); diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts index d3edb0fa1..fe289f234 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -53,6 +53,11 @@ router.put( where: { id: channel_id }, }); if (!channel.guild_id) throw new HTTPError("Channel not found", 404); + channel.position = await Channel.calculatePosition( + channel_id, + channel.guild_id, + channel.guild, + ); if (body.type === 0) { if (!(await Role.count({ where: { id: overwrite_id } }))) diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 68208fee2..51c38a754 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -41,6 +41,14 @@ router.get( const { guild_id } = req.params; const channels = await Channel.find({ where: { guild_id } }); + for await (const channel of channels) { + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + channel.guild, + ); + } + res.json(channels); }, ); @@ -71,6 +79,11 @@ router.post( { ...body, guild_id }, req.user_id, ); + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + channel.guild, + ); res.status(201).json(channel); }, From 6ca12cb7fb93498f1243f4a9ac5dd63782131568 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:47:20 +0200 Subject: [PATCH 06/30] Sort /channels for gateway consistency --- src/api/routes/guilds/#guild_id/channels.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 51c38a754..3488b64dd 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -48,6 +48,7 @@ router.get( channel.guild, ); } + channels.sort((a, b) => a.position - b.position); res.json(channels); }, From 5f9c6b01a79ffff7ee9410d3a8649796db1e4875 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 29 Jun 2024 19:40:08 +0200 Subject: [PATCH 07/30] Send position property on guild join --- src/util/entities/Member.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index 659428168..3ef778ace 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -31,7 +31,7 @@ import { PrimaryGeneratedColumn, RelationId, } from "typeorm"; -import { Ban, PublicGuildRelations } from "."; +import { Ban, Channel, PublicGuildRelations } from "."; import { ReadyGuildDTO } from "../dtos"; import { GuildCreateEvent, @@ -330,6 +330,13 @@ export class Member extends BaseClassWithoutId { relationLoadStrategy: "query", }); + for await (const channel of guild.channels) { + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + ); + } + const memberCount = await Member.count({ where: { guild_id } }); const memberPreview = ( From 0ac8888d410a3d8cd172ffe4eb44ebeff1e416e2 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Tue, 25 Jun 2024 22:01:35 +0200 Subject: [PATCH 08/30] Don't embed links in <> --- src/api/util/handlers/Message.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 6172a3d0c..85db26b27 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -51,7 +51,7 @@ const allow_empty = false; // TODO: embed gifs/videos/images const LINK_REGEX = - /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/g; + /?/g; export async function handleMessage(opts: MessageOptions): Promise { const channel = await Channel.findOneOrFail({ @@ -213,6 +213,9 @@ export async function postHandleMessage(message: Message) { const cachePromises = []; for (const link of links) { + // Don't embed links in <> + if (link.startsWith("<") && link.endsWith(">")) continue; + const url = new URL(link); const cached = await EmbedCache.findOne({ where: { url: link } }); From c52d6c49a3dac5123f5ca8d157e4a951f8b4e972 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 5 Jul 2024 07:43:50 +0200 Subject: [PATCH 09/30] Add new message flags once again --- .../messages/#message_id/crosspost.ts | 7 ++-- .../guilds/#guild_id/messages/search.ts | 7 ++-- src/util/entities/Message.ts | 40 +++++++++++++++++-- .../1720157926878-messagePollObject.ts | 13 ++++++ .../mysql/1720157926878-messagePollObject.ts | 13 ++++++ .../1720157926878-messagePollObject.ts | 13 ++++++ src/util/schemas/MessageCreateSchema.ts | 27 ++++++++++--- .../responses/GuildMessagesSearchResponse.ts | 11 +++-- 8 files changed, 112 insertions(+), 19 deletions(-) create mode 100644 src/util/migration/mariadb/1720157926878-messagePollObject.ts create mode 100644 src/util/migration/mysql/1720157926878-messagePollObject.ts create mode 100644 src/util/migration/postgres/1720157926878-messagePollObject.ts diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts index 5ca645c00..6362941c6 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -56,6 +56,7 @@ router.post( edited_timestamp: null, flags: 1, components: [], + poll: {}, }).status(200); }, ); diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 637d1e438..94adf9c6a 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -162,6 +162,7 @@ router.get( edited_timestamp: x.edited_timestamp, flags: x.flags, components: x.components, + poll: x.poll, hit: true, }, ]); diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index 4a9cff4ab..a76ebb1f9 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -218,6 +218,9 @@ export class Message extends BaseClass { @Column({ type: "simple-json", nullable: true }) components?: MessageComponent[]; + @Column({ type: "simple-json", nullable: true }) + poll?: Poll[]; + toJSON(): Message { return { ...this, @@ -238,6 +241,7 @@ export class Message extends BaseClass { activity: this.activity ?? undefined, application: this.application ?? undefined, components: this.components ?? undefined, + poll: this.poll ?? undefined, content: this.content ?? "", }; } @@ -249,6 +253,7 @@ export interface MessageComponent { label?: string; emoji?: PartialEmoji; custom_id?: string; + sku_id?: string; url?: string; disabled?: boolean; components: MessageComponent[]; @@ -327,3 +332,32 @@ export interface AllowedMentions { users?: string[]; replied_user?: boolean; } + +export interface Poll { + question: PollMedia; + answers: PollAnswer[]; + expiry: Date; + allow_multiselect: boolean; + results?: PollResult; +} + +export interface PollMedia { + text?: string; + emoji?: PartialEmoji; +} + +export interface PollAnswer { + answer_id?: string; + poll_media: PollMedia; +} + +export interface PollResult { + is_finalized: boolean; + answer_counts: PollAnswerCount[]; +} + +export interface PollAnswerCount { + id: string; + count: number; + me_voted: boolean; +} diff --git a/src/util/migration/mariadb/1720157926878-messagePollObject.ts b/src/util/migration/mariadb/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..c08664264 --- /dev/null +++ b/src/util/migration/mariadb/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` ADD `poll` text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `poll`"); + } +} diff --git a/src/util/migration/mysql/1720157926878-messagePollObject.ts b/src/util/migration/mysql/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..c08664264 --- /dev/null +++ b/src/util/migration/mysql/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` ADD `poll` text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `poll`"); + } +} diff --git a/src/util/migration/postgres/1720157926878-messagePollObject.ts b/src/util/migration/postgres/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..7c3c95a0f --- /dev/null +++ b/src/util/migration/postgres/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages ADD poll text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages DROP COLUMN poll"); + } +} diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 57abf62f9..be1c31bec 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -1,22 +1,22 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -import { Embed } from "@spacebar/util"; +import { Embed, MessageComponent, PollAnswer, PollMedia } from "@spacebar/util"; type Attachment = { id: string; @@ -54,6 +54,21 @@ export interface MessageCreateSchema { **/ attachments?: Attachment[]; sticker_ids?: string[]; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - components?: any[]; + components?: MessageComponent[]; + // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled + //poll?: PollCreationSchema; + enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here + applied_tags?: string[]; // Not implemented yet, for webhooks in forums + thread_name?: string; // Not implemented yet, for webhooks + avatar_url?: string; // Not implemented yet, for webhooks +} + +// TypeScript complains once this is used above +// eslint-disable-next-line @typescript-eslint/no-unused-vars +interface PollCreationSchema { + question: PollMedia; + answers: PollAnswer[]; + duration?: number; + allow_multiselect?: boolean; + layout_type?: number; } diff --git a/src/util/schemas/responses/GuildMessagesSearchResponse.ts b/src/util/schemas/responses/GuildMessagesSearchResponse.ts index b42aafd3c..6121983e0 100644 --- a/src/util/schemas/responses/GuildMessagesSearchResponse.ts +++ b/src/util/schemas/responses/GuildMessagesSearchResponse.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,7 +19,9 @@ import { Attachment, Embed, + MessageComponent, MessageType, + Poll, PublicUser, Role, } from "../../entities"; @@ -40,7 +42,8 @@ export interface GuildMessagesSearchMessage { timestamp: string; edited_timestamp: string | null; flags: number; - components: unknown[]; + components: MessageComponent[]; + poll: Poll; hit: true; } From cd7641c2aebd245a59a189233fc5700a924639e0 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 6 Jul 2024 06:47:14 +0200 Subject: [PATCH 10/30] Fix loading connection settings --- src/connections/BattleNet/index.ts | 22 ++++++++++++---------- src/connections/Discord/index.ts | 13 ++++++++----- src/connections/EpicGames/index.ts | 20 +++++++++++--------- src/connections/Facebook/index.ts | 13 ++++++++----- src/connections/GitHub/index.ts | 13 ++++++++----- src/connections/Reddit/index.ts | 13 ++++++++----- src/connections/Spotify/index.ts | 14 +++++++++----- src/connections/Twitch/index.ts | 13 ++++++++----- src/connections/Twitter/index.ts | 13 ++++++++----- src/connections/Xbox/index.ts | 13 ++++++++----- src/connections/Youtube/index.ts | 13 ++++++++----- 11 files changed, 96 insertions(+), 64 deletions(-) diff --git a/src/connections/BattleNet/index.ts b/src/connections/BattleNet/index.ts index 4fdfccb16..8f44944cf 100644 --- a/src/connections/BattleNet/index.ts +++ b/src/connections/BattleNet/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -47,13 +47,15 @@ export default class BattleNetConnection extends Connection { settings: BattleNetSettings = new BattleNetSettings(); init(): void { - const settings = - ConnectionLoader.getConnectionConfig( - this.id, - this.settings, - ); - - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + this.settings = ConnectionLoader.getConnectionConfig( + this.id, + this.settings, + ); + + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 731086f1a..e5508f482 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -43,12 +43,15 @@ export default class DiscordConnection extends Connection { settings: DiscordSettings = new DiscordSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/EpicGames/index.ts b/src/connections/EpicGames/index.ts index e5b2d3367..cedfcd0a6 100644 --- a/src/connections/EpicGames/index.ts +++ b/src/connections/EpicGames/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -53,13 +53,15 @@ export default class EpicGamesConnection extends Connection { settings: EpicGamesSettings = new EpicGamesSettings(); init(): void { - const settings = - ConnectionLoader.getConnectionConfig( - this.id, - this.settings, - ); + this.settings = ConnectionLoader.getConnectionConfig( + this.id, + this.settings, + ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Facebook/index.ts b/src/connections/Facebook/index.ts index 2bf26f34f..bcb90b4c6 100644 --- a/src/connections/Facebook/index.ts +++ b/src/connections/Facebook/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -52,12 +52,15 @@ export default class FacebookConnection extends Connection { settings: FacebookSettings = new FacebookSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/GitHub/index.ts b/src/connections/GitHub/index.ts index 25e5f89f3..78bf510e7 100644 --- a/src/connections/GitHub/index.ts +++ b/src/connections/GitHub/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -42,12 +42,15 @@ export default class GitHubConnection extends Connection { settings: GitHubSettings = new GitHubSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Reddit/index.ts b/src/connections/Reddit/index.ts index 149cce02f..0db237312 100644 --- a/src/connections/Reddit/index.ts +++ b/src/connections/Reddit/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -54,12 +54,15 @@ export default class RedditConnection extends Connection { settings: RedditSettings = new RedditSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Spotify/index.ts b/src/connections/Spotify/index.ts index ece404d83..4eb126021 100644 --- a/src/connections/Spotify/index.ts +++ b/src/connections/Spotify/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -63,12 +63,16 @@ export default class SpotifyConnection extends RefreshableConnection { * So to prevent spamming the spotify api we disable the ability to refresh. */ this.refreshEnabled = false; - const settings = ConnectionLoader.getConnectionConfig( + + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Twitch/index.ts b/src/connections/Twitch/index.ts index 9a6cea358..953669a1d 100644 --- a/src/connections/Twitch/index.ts +++ b/src/connections/Twitch/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -55,12 +55,15 @@ export default class TwitchConnection extends RefreshableConnection { settings: TwitchSettings = new TwitchSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Twitter/index.ts b/src/connections/Twitter/index.ts index 62fd7da18..eba8ceb50 100644 --- a/src/connections/Twitter/index.ts +++ b/src/connections/Twitter/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -55,12 +55,15 @@ export default class TwitterConnection extends RefreshableConnection { settings: TwitterSettings = new TwitterSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Xbox/index.ts b/src/connections/Xbox/index.ts index 935ff7ab7..84066def1 100644 --- a/src/connections/Xbox/index.ts +++ b/src/connections/Xbox/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -62,12 +62,15 @@ export default class XboxConnection extends Connection { settings: XboxSettings = new XboxSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Youtube/index.ts b/src/connections/Youtube/index.ts index 844803cf0..38edbb0de 100644 --- a/src/connections/Youtube/index.ts +++ b/src/connections/Youtube/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -62,12 +62,15 @@ export default class YoutubeConnection extends Connection { settings: YoutubeSettings = new YoutubeSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } From ba1ec9cab4221c62e87b1f7555958747320e7a98 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 6 Jul 2024 15:57:56 +0200 Subject: [PATCH 11/30] Fix msg attachment proxy_url when using paths --- .../channels/#channel_id/messages/index.ts | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index a5bfcfd73..4d7e388ff 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -183,9 +183,17 @@ router.get( const uri = y.proxy_url.startsWith("http") ? y.proxy_url : `https://example.org${y.proxy_url}`; - y.proxy_url = `${endpoint == null ? "" : endpoint}${ - new URL(uri).pathname - }`; + + let pathname = new URL(uri).pathname; + while ( + pathname.split("/")[0] != "attachments" && + pathname.length > 10 + ) { + pathname = pathname.split("/").slice(1).join("/"); + } + if (!endpoint?.endsWith("/")) pathname = "/" + pathname; + + y.proxy_url = `${endpoint == null ? "" : endpoint}${pathname}`; }); /** From 8358755eeb8aea4bc4d151b778f818c5d6e9527f Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 6 Jul 2024 16:02:21 +0200 Subject: [PATCH 12/30] Increase minimum char count --- src/api/routes/channels/#channel_id/messages/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 4d7e388ff..645c6db23 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -187,7 +187,7 @@ router.get( let pathname = new URL(uri).pathname; while ( pathname.split("/")[0] != "attachments" && - pathname.length > 10 + pathname.length > 30 ) { pathname = pathname.split("/").slice(1).join("/"); } From bd66ee0349ec9133706f793dbfcd6e82489dae38 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:51:52 +0200 Subject: [PATCH 13/30] Use front end URI instead of API --- src/util/connections/Connection.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/connections/Connection.ts b/src/util/connections/Connection.ts index 5bdebd47a..638dde2c2 100644 --- a/src/util/connections/Connection.ts +++ b/src/util/connections/Connection.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -43,7 +43,7 @@ export abstract class Connection { */ getRedirectUri() { const endpointPublic = - Config.get().api.endpointPublic ?? "http://localhost:3001"; + Config.get().general.frontPage ?? "http://localhost:3001"; return `${endpointPublic}/connections/${this.id}/callback`; } From 4e825cc4d33b5d0f56b1907a6ac901eb9af14f15 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 8 Jul 2024 21:23:41 -0400 Subject: [PATCH 14/30] fix `verify_email` template --- assets/email_templates/verify_email.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/email_templates/verify_email.html b/assets/email_templates/verify_email.html index 109fc4aa8..cbd942809 100644 --- a/assets/email_templates/verify_email.html +++ b/assets/email_templates/verify_email.html @@ -69,7 +69,7 @@ > {emailVerificationUrl}{actionUrl} From 629451bbfd9698975bdb95dce4f3152bbdb3893c Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 8 Jul 2024 22:10:50 -0400 Subject: [PATCH 15/30] fix incorrect error field --- src/api/routes/auth/verify/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts index 49f742778..32c3f3058 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts @@ -85,7 +85,7 @@ router.post( user = userTokenData.user; } catch { throw FieldErrors({ - password: { + token: { message: req.t("auth:password_reset.INVALID_TOKEN"), code: "INVALID_TOKEN", }, From bc432a4325644eb1e5040b47ed05eda699bd404f Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 8 Jul 2024 22:30:41 -0400 Subject: [PATCH 16/30] add email verification page --- .../email_templates/new_login_location.html | 145 +++++++++-------- assets/email_templates/password_changed.html | 4 +- .../password_reset_request.html | 125 ++++++++------- assets/email_templates/phone_removed.html | 4 +- assets/email_templates/verify_email.html | 9 +- assets/public/verify.html | 147 ++++++++++++++++++ flake.lock | 118 +++++++------- src/api/Server.ts | 14 +- src/util/util/email/index.ts | 3 +- 9 files changed, 380 insertions(+), 189 deletions(-) create mode 100644 assets/public/verify.html diff --git a/assets/email_templates/new_login_location.html b/assets/email_templates/new_login_location.html index f1c5f8c5d..b8c4a4fb9 100644 --- a/assets/email_templates/new_login_location.html +++ b/assets/email_templates/new_login_location.html @@ -1,76 +1,87 @@ - + + + + + + + Verify {instanceName} Login from New Location - - - - - - Verify {instanceName} Login from New Location + + - .ExternalClass { - width: 100%; - } - - - - -
- Branding + Branding -
+
-

+

- Hey {userUsername}, -

-

- It looks like someone tried to log into your {instanceName} - account from a new location. If this is you, follow the link - below to authorize logging in from this location on your - account. If this isn't you, we suggest changing your - password as soon as possible. -

-

- IP Address: {ipAddress} -
- Location: {locationCity}, {locationRegion}, - {locationCountryName} -

-
-
+ Hey {userUsername}, +

+

+ It looks like someone tried to log into your {instanceName} + account from a new location. If this is you, follow the link + below to authorize logging in from this location on your + account. If this isn't you, we suggest changing your + password as soon as possible. +

+

+ IP Address: {ipAddress} +
+ Location: {locationCity}, {locationRegion}, + {locationCountryName} +

+
+ -
-
Verify Login +
+
+
-

- Alternatively, you can directly paste this link into - your browser: -

- {actionUrl} + " + > +

+ Alternatively, you can directly paste this link into + your browser: +

+ {actionUrl} +
-
- - + diff --git a/assets/email_templates/password_changed.html b/assets/email_templates/password_changed.html index d04262792..7d368a0a7 100644 --- a/assets/email_templates/password_changed.html +++ b/assets/email_templates/password_changed.html @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ -
+
Branding + + + + + + + Password Reset Request for {instanceName} - - - - - - Password Reset Request for {instanceName} + + - .ExternalClass { - width: 100%; - } - - - - -
- Branding + Branding -
+
-

+

- Hey {userUsername}, -

-

- Your {instanceName} password can be reset by clicking the - button below. If you did not request a new password, please - ignore this email. -

-
-
+ Hey {userUsername}, +

+

+ Your {instanceName} password can be reset by clicking the + button below. If you did not request a new password, please + ignore this email. +

+
+ -
-
-

- Alternatively, you can directly paste this link into - your browser: -

- {actionUrl} + " + >Reset Password +
+
+
+

+ Alternatively, you can directly paste this link into + your browser: +

+ {actionUrl} +
-
- - + diff --git a/assets/email_templates/phone_removed.html b/assets/email_templates/phone_removed.html index 7cc552e95..bcbc8f187 100644 --- a/assets/email_templates/phone_removed.html +++ b/assets/email_templates/phone_removed.html @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ -
+
Branding + @@ -22,7 +22,7 @@ -
+ diff --git a/assets/public/verify.html b/assets/public/verify.html new file mode 100644 index 000000000..c70d77094 --- /dev/null +++ b/assets/public/verify.html @@ -0,0 +1,147 @@ + + + + + + + Spacebar Server + + + + + + + + + +
+ Spacebar Logo + +
+

Verifying your email

+

Please wait...

+
+
+ + + + diff --git a/flake.lock b/flake.lock index ae5e8b230..844f26fa6 100644 --- a/flake.lock +++ b/flake.lock @@ -1,61 +1,61 @@ { - "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1708118438, - "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1708118438, + "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 } diff --git a/src/api/Server.ts b/src/api/Server.ts index 472ab1d6f..40d2b6dcb 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -18,15 +18,15 @@ import { Config, + ConnectionConfig, + ConnectionLoader, Email, - initDatabase, - initEvent, JSONReplacer, - registerRoutes, Sentry, WebAuthn, - ConnectionConfig, - ConnectionLoader, + initDatabase, + initEvent, + registerRoutes, } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { Server, ServerOptions } from "lambert-server"; @@ -141,6 +141,10 @@ export class SpacebarServer extends Server { res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")), ); + app.get("/verify", (req, res) => + res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html")), + ); + this.app.use(ErrorHandler); Sentry.errorHandler(this.app); diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index d765f5ff5..e3382794b 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -141,8 +141,9 @@ export const Email: { */ generateLink: async function (type, id, email) { const token = (await generateToken(id, email)) as string; + // puyodead1: this is set to api endpoint because the verification page is on the server since no clients have one, and not all 3rd party clients will have one const instanceUrl = - Config.get().general.frontPage || "http://localhost:3001"; + Config.get().api.endpointPublic || "http://localhost:3001"; const link = `${instanceUrl}/${type}#token=${token}`; return link; }, From 35c9a09ea52099d8ee7eb79a4683f9301dedecd4 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:27:24 +1000 Subject: [PATCH 17/30] fix poll in msg create schema --- assets/openapi.json | 307 +- assets/schemas.json | 35037 ++++++++++++++++++---- src/api/util/handlers/Message.ts | 33 +- src/util/schemas/MessageCreateSchema.ts | 2 +- 4 files changed, 29868 insertions(+), 5511 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index f649c9b22..0a211d3c3 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -734,6 +734,114 @@ } } }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + } + }, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + } + } + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMedia" + } + }, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -1193,7 +1301,8 @@ "$ref": "#/components/schemas/Guild" }, "parent_id": { - "type": "string" + "type": "string", + "nullable": true }, "parent": { "$ref": "#/components/schemas/Channel" @@ -1802,6 +1911,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/components/schemas/FriendSourceFlags" }, @@ -1892,6 +2005,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "required": [ @@ -1908,6 +2025,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -1926,7 +2044,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -2240,6 +2359,12 @@ "$ref": "#/components/schemas/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Poll" + } + }, "id": { "type": "string" } @@ -2963,23 +3088,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -3018,40 +3126,71 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/components/schemas/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/components/schemas/PollResult" + } + }, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/PollAnswerCount" } } }, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -3444,7 +3583,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/Poll" }, "hit": { "type": "boolean", @@ -3466,6 +3610,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -5212,7 +5357,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } } }, @@ -5338,7 +5503,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } } }, @@ -5919,6 +6104,9 @@ "explicit_content_filter": { "type": "integer" }, + "friend_discovery_flags": { + "type": "integer" + }, "friend_source_flags": { "$ref": "#/components/schemas/FriendSourceFlags" }, @@ -5982,6 +6170,9 @@ }, "timezone_offset": { "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" } } }, @@ -7917,6 +8108,23 @@ "user" ] }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "delete_message_seconds": { + "type": "integer" + } + }, + "required": [ + "user_ids" + ] + }, "BulkDeleteSchema": { "type": "object", "properties": { @@ -13729,12 +13937,25 @@ }, "/guilds/{guild_id}/bulk-ban/": { "post": { - "x-permission-required": "BAN_MEMBERS", + "x-permission-required": [ + "BAN_MEMBERS", + "MANAGE_GUILD" + ], "security": [ { "bearer": [] } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkBanSchema" + } + } + } + }, "responses": { "200": { "description": "", diff --git a/assets/schemas.json b/assets/schemas.json index 7a57dfcf5..a77f86b67 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -849,6 +849,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -1322,7 +1435,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -1937,6 +2053,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -2027,6 +2147,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -2044,6 +2168,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -2062,7 +2187,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -2379,6 +2505,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -3116,24 +3248,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -3172,41 +3286,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -3607,7 +3754,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -3630,6 +3782,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -5069,6 +5222,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -5542,7 +5808,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -6157,6 +6426,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -6247,6 +6520,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -6264,6 +6541,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -6282,7 +6560,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -6599,6 +6878,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -7336,24 +7621,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -7392,41 +7659,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -7827,7 +8127,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -7850,6 +8155,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -9289,6 +9595,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -9762,7 +10181,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -10377,6 +10799,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -10467,6 +10893,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -10484,6 +10914,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -10502,7 +10933,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -10819,6 +11251,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -11556,24 +11994,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -11612,41 +12032,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -12047,7 +12500,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -12070,6 +12528,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -13504,6 +13963,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -13977,7 +14549,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -14592,6 +15167,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -14682,6 +15261,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -14699,6 +15282,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -14717,7 +15301,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -15034,6 +15619,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -15771,24 +16362,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -15827,41 +16400,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -16262,7 +16868,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -16285,6 +16896,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -17755,6 +18367,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -18228,7 +18953,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -18843,6 +19571,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -18933,6 +19665,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -18950,6 +19686,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -18968,7 +19705,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -19285,6 +20023,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -20022,24 +20766,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -20078,41 +20804,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -20513,7 +21272,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -20536,6 +21300,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -21975,6 +22740,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -22448,7 +23326,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -23063,6 +23944,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -23153,6 +24038,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -23170,6 +24059,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -23188,7 +24078,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -23505,6 +24396,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -24242,24 +25139,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -24298,41 +25177,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -24733,7 +25645,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -24756,6 +25673,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -26186,6 +27104,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -26659,7 +27690,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -27274,6 +28308,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -27364,6 +28402,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -27381,6 +28423,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -27399,7 +28442,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -27716,6 +28760,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -28453,24 +29503,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -28509,41 +29541,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -28944,7 +30009,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -28967,6 +30037,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -30400,6 +31471,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -30873,7 +32057,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -31488,6 +32675,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -31578,6 +32769,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -31595,6 +32790,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -31613,7 +32809,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -31930,6 +33127,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -32667,24 +33870,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -32723,41 +33908,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -33158,7 +34376,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -33181,6 +34404,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -34623,6 +35847,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -35096,7 +36433,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -35711,6 +37051,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -35801,6 +37145,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -35818,6 +37166,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -35836,7 +37185,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -36153,6 +37503,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -36890,24 +38246,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -36946,41 +38284,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -37381,7 +38752,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -37404,6 +38780,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -38834,6 +40211,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -39307,7 +40797,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -39922,6 +41415,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -40012,6 +41509,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -40029,6 +41530,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -40047,7 +41549,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -40364,6 +41867,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -41101,24 +42610,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -41157,41 +42648,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -41592,7 +43116,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -41615,6 +43144,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -43045,6 +44575,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -43518,7 +45161,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -44133,6 +45779,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -44223,6 +45873,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -44240,6 +45894,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -44258,7 +45913,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -44575,6 +46231,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -45312,24 +46974,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -45368,41 +47012,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -45803,7 +47480,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -45826,6 +47508,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -47275,6 +48958,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -47748,7 +49544,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -48363,6 +50162,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -48453,6 +50256,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -48470,6 +50277,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -48488,7 +50296,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -48805,6 +50614,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -49542,24 +51357,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -49598,41 +51395,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -50033,7 +51863,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -50056,6 +51891,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -51489,6 +53325,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -51962,7 +53911,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -52577,6 +54529,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -52667,6 +54623,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -52684,6 +54644,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -52702,7 +54663,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -53019,6 +54981,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -53756,24 +55724,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -53812,41 +55762,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -54247,7 +56230,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -54270,6 +56258,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -55763,6 +57752,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -56236,7 +58338,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -56851,6 +58956,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -56941,6 +59050,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -56958,6 +59071,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -56976,7 +59090,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -57293,6 +59408,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -58030,24 +60151,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -58086,41 +60189,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -58521,7 +60657,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -58544,6 +60685,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -59996,6 +62138,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -60469,7 +62724,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -61084,6 +63342,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -61174,6 +63436,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -61191,6 +63457,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -61209,7 +63476,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -61526,6 +63794,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -62263,24 +64537,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -62319,41 +64575,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -62754,7 +65043,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -62777,6 +65071,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -64370,6 +66665,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -64843,7 +67251,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -65458,6 +67869,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -65548,6 +67963,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -65565,6 +67984,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -65583,7 +68003,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -65900,6 +68321,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -66637,24 +69064,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -66693,41 +69102,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -67128,7 +69570,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -67151,6 +69598,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -68602,6 +71050,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -69075,7 +71636,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -69690,6 +72254,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -69780,6 +72348,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -69797,6 +72369,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -69815,7 +72388,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -70132,6 +72706,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -70869,24 +73449,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -70925,41 +73487,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -71360,7 +73955,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -71383,6 +73983,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -72844,6 +75445,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -73317,7 +76031,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -73932,6 +76649,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -74022,6 +76743,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -74039,6 +76764,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -74057,7 +76783,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -74374,6 +77101,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -75111,24 +77844,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -75167,41 +77882,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -75602,7 +78350,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -75625,6 +78378,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -77068,6 +79822,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -77541,7 +80408,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -78156,6 +81026,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -78246,6 +81120,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -78263,6 +81141,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -78281,7 +81160,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -78598,6 +81478,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -79335,24 +82221,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -79391,41 +82259,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -79826,7 +82727,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -79849,6 +82755,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -81298,6 +84205,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -81771,7 +84791,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -82386,6 +85409,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -82476,6 +85503,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -82493,6 +85524,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -82511,7 +85543,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -82828,6 +85861,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -83565,24 +86604,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -83621,41 +86642,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -84056,7 +87110,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -84079,6 +87138,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -85518,6 +88578,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -85991,7 +89164,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -86606,6 +89782,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -86696,6 +89876,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -86713,6 +89897,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -86731,7 +89916,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -87048,6 +90234,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -87785,24 +90977,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -87841,41 +91015,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -88276,7 +91483,4373 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageAcknowledgeSchema": { + "type": "object", + "properties": { + "manual": { + "type": "boolean" + }, + "mention_count": { + "type": "integer" + } + }, + "additionalProperties": false, + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -88299,6 +95872,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -89194,54 +96768,192 @@ "mfa", "sms", "ticket", - "token" + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageCreateSchema": { + "type": "object", + "properties": { + "type": { + "type": "integer" }, - "WebAuthnResponse": { + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "embed": { + "$ref": "#/definitions/Embed" + }, + "allowed_mentions": { "type": "object", "properties": { - "webauthn": { - "type": "string" + "parse": { + "type": "array", + "items": { + "type": "string" + } }, - "ticket": { + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { "type": "string" }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] + "channel_id": { + "type": "string" }, - "sms": { - "type": "boolean", - "enum": [ - false - ] + "guild_id": { + "type": "string" }, - "token": { - "type": "null" + "fail_if_not_exists": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" + "channel_id", + "message_id" ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageAcknowledgeSchema": { - "type": "object", - "properties": { - "manual": { + }, + "payload_json": { + "type": "string" + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { "type": "boolean" }, - "mention_count": { - "type": "integer" + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } }, "additionalProperties": false, @@ -89726,6 +97438,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -90199,7 +98024,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -90814,6 +98642,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -90904,6 +98736,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -90921,6 +98757,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -90939,7 +98776,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -91256,6 +99094,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -91993,24 +99837,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -92049,41 +99875,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -92484,7 +100343,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -92507,6 +100371,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -93442,135 +101307,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageCreateSchema": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "content": { - "type": "string" - }, - "mobile_network_type": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "tts": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "embed": { - "$ref": "#/definitions/Embed" - }, - "allowed_mentions": { - "type": "object", - "properties": { - "parse": { - "type": "array", - "items": { - "type": "string" - } - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "users": { - "type": "array", - "items": { - "type": "string" - } - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_id" - ] - }, - "payload_json": { - "type": "string" - }, - "file": { - "type": "object", - "properties": { - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename" - ] - }, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] - } - }, - "sticker_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "components": { - "type": "array", - "items": {} - } - }, - "additionalProperties": false, + "PollCreationSchema": { + "$ref": "#/definitions/PollCreationSchema", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -94052,6 +101790,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -94525,7 +102376,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -95140,6 +102994,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -95230,6 +103088,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -95247,6 +103109,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -95265,7 +103128,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -95582,6 +103446,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -96319,24 +104189,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -96375,41 +104227,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -96810,7 +104695,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -96833,6 +104723,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -97890,7 +105781,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } }, "additionalProperties": false, @@ -98375,6 +106286,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -98848,7 +106872,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -99463,6 +107490,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -99553,6 +107584,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -99570,6 +107605,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -99588,7 +107624,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -99905,6 +107942,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -100642,24 +108685,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -100698,41 +108723,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -101133,7 +109191,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -101156,6 +109219,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -102586,6 +110650,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -103059,7 +111236,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -103674,6 +111854,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -103764,6 +111948,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -103781,6 +111969,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -103799,7 +111988,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -104116,6 +112306,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -104853,24 +113049,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -104909,41 +113087,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -105344,7 +113555,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -105367,6 +113583,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -106805,6 +115022,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -107278,7 +115608,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -107893,6 +116226,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -107983,6 +116320,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -108000,6 +116341,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -108018,7 +116360,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -108335,6 +116678,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -109072,24 +117421,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -109128,41 +117459,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -109563,7 +117927,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -109586,6 +117955,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -111017,6 +119387,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -111490,7 +119973,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -112105,6 +120591,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -112195,6 +120685,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -112212,6 +120706,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -112230,7 +120725,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -112547,6 +121043,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -113284,24 +121786,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -113340,41 +121824,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -113775,7 +122292,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -113798,6 +122320,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -115229,6 +123752,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -115702,7 +124338,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -116317,6 +124956,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -116407,6 +125050,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -116424,6 +125071,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -116442,7 +125090,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -116759,6 +125408,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -117496,24 +126151,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -117552,41 +126189,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -117987,7 +126657,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -118010,6 +126685,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -119476,6 +128152,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -119949,7 +128738,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -120564,6 +129356,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -120654,6 +129450,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -120671,6 +129471,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -120689,7 +129490,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -121006,6 +129808,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -121743,24 +130551,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -121799,41 +130589,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -122234,7 +131057,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -122257,6 +131085,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -123688,6 +132517,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -124161,7 +133103,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -124776,6 +133721,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -124866,6 +133815,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -124883,6 +133836,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -124901,7 +133855,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -125218,6 +134173,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -125955,24 +134916,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -126011,41 +134954,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -126446,7 +135422,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -126469,6 +135450,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -127899,6 +136881,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -128372,7 +137467,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -128987,6 +138085,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -129077,6 +138179,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -129094,6 +138200,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -129112,7 +138219,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -129429,6 +138537,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -130166,24 +139280,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -130222,41 +139318,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -130657,7 +139786,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -130680,6 +139814,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -132125,6 +141260,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -132598,7 +141846,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -133213,6 +142464,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -133303,6 +142558,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -133320,6 +142579,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -133338,7 +142598,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -133655,6 +142916,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -134392,24 +143659,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -134448,41 +143697,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -134883,7 +144165,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -134906,6 +144193,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -136340,6 +145628,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -136813,7 +146214,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -137428,6 +146832,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -137518,6 +146926,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -137535,6 +146947,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -137553,7 +146966,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -137870,6 +147284,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -138607,24 +148027,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -138663,41 +148065,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -139098,7 +148533,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -139121,6 +148561,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -140629,6 +150070,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -141102,7 +150656,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -141717,6 +151274,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -141807,6 +151368,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -141824,6 +151389,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -141842,7 +151408,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -142159,6 +151726,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -142896,24 +152469,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -142952,41 +152507,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -143387,7 +152975,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -143410,6 +153003,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -144840,6 +154434,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -145313,7 +155020,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -145928,6 +155638,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -146018,6 +155732,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -146035,6 +155753,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -146053,7 +155772,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -146370,6 +156090,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -147107,24 +156833,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -147163,41 +156871,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -147598,7 +157339,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -147621,6 +157367,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -149051,6 +158798,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -149524,7 +159384,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -150139,6 +160002,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -150229,6 +160096,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -150246,6 +160117,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -150264,7 +160136,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -150581,6 +160454,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -151318,24 +161197,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -151374,41 +161235,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -151809,7 +161703,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -151832,6 +161731,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -153259,6 +163159,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -153732,7 +163745,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -154347,6 +164363,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -154437,6 +164457,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -154454,6 +164478,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -154472,7 +164497,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -154789,6 +164815,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -155526,24 +165558,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -155582,41 +165596,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -156017,7 +166064,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -156040,6 +166092,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -157473,6 +167526,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -157946,7 +168112,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -158561,6 +168730,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -158651,6 +168824,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -158668,6 +168845,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -158686,7 +168864,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -159003,6 +169182,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -159740,24 +169925,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -159796,41 +169963,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -160231,7 +170431,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -160254,6 +170459,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -161697,6 +171903,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -162170,7 +172489,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -162785,6 +173107,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -162875,6 +173201,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -162892,6 +173222,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -162910,7 +173241,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -163227,6 +173559,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -163964,24 +174302,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -164020,41 +174340,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -164455,7 +174808,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -164478,6 +174836,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -165905,6 +176264,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -166378,7 +176850,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -166993,6 +177468,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -167083,6 +177562,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -167100,6 +177583,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -167118,7 +177602,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -167435,6 +177920,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -168172,24 +178663,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -168228,41 +178701,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -168663,7 +179169,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -168686,6 +179197,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -170162,6 +180674,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -170635,7 +181260,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -171250,6 +181878,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -171340,6 +181972,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -171357,6 +181993,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -171375,7 +182012,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -171692,6 +182330,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -172429,24 +183073,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -172485,41 +183111,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -172920,7 +183579,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -172943,6 +183607,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -174405,6 +185070,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -174878,7 +185656,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -175493,6 +186274,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -175583,6 +186368,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -175600,6 +186389,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -175618,7 +186408,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -175935,6 +186726,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -176672,24 +187469,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -176728,41 +187507,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -177163,7 +187975,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -177186,6 +188003,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -178613,6 +189431,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -179086,7 +190017,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -179701,6 +190635,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -179791,6 +190729,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -179808,6 +190750,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -179826,7 +190769,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -180143,6 +191087,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -180880,24 +191830,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -180936,41 +191868,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -181371,7 +192336,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -181394,6 +192364,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -182846,6 +193817,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -183319,7 +194403,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -183934,6 +195021,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -184024,6 +195115,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -184041,6 +195136,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -184059,7 +195155,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -184376,6 +195473,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -185113,24 +196216,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -185169,41 +196254,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -185604,7 +196722,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -185627,6 +196750,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -186621,6 +197745,9 @@ "explicit_content_filter": { "type": "integer" }, + "friend_discovery_flags": { + "type": "integer" + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -186684,6 +197811,9 @@ }, "timezone_offset": { "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" } }, "additionalProperties": false, @@ -187168,6 +198298,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -187641,7 +198884,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -188256,6 +199502,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -188346,6 +199596,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -188363,6 +199617,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -188381,7 +199636,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -188698,6 +199954,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -189435,24 +200697,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -189491,41 +200735,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -189926,7 +201203,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -189949,6 +201231,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -191375,6 +202658,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -191848,7 +203244,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -192463,6 +203862,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -192553,6 +203956,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -192570,6 +203977,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -192588,7 +203996,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -192905,6 +204314,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -193642,24 +205057,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -193698,41 +205095,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -194133,7 +205563,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -194156,6 +205591,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -195621,6 +207057,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -196094,7 +207643,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -196709,6 +208261,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -196799,6 +208355,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -196816,6 +208376,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -196834,7 +208395,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -197151,6 +208713,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -197888,24 +209456,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -197944,41 +209494,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -198379,7 +209962,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -198402,6 +209990,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -199855,6 +211444,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -200328,7 +212030,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -200943,6 +212648,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -201033,6 +212742,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -201050,6 +212763,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -201068,7 +212782,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -201385,6 +213100,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -202122,24 +213843,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -202178,41 +213881,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -202613,7 +214349,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -202636,6 +214377,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -204141,6 +215883,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -204614,7 +216469,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -205229,6 +217087,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -205319,6 +217181,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -205336,6 +217202,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -205354,7 +217221,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -205671,6 +217539,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -206408,24 +218282,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -206464,41 +218320,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -206899,7 +218788,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -206922,6 +218816,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -208349,6 +220244,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -208822,7 +220830,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -209437,6 +221448,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -209527,6 +221542,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -209544,6 +221563,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -209562,7 +221582,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -209879,6 +221900,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -210616,24 +222643,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -210672,41 +222681,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -211107,7 +223149,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -211130,6 +223177,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -212565,6 +224613,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -213038,7 +225199,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -213653,6 +225817,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -213743,6 +225911,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -213760,6 +225932,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -213778,7 +225951,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -214095,6 +226269,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -214832,24 +227012,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -214888,41 +227050,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -215323,7 +227518,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -215346,6 +227546,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -216771,6 +228972,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -217244,7 +229558,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -217859,6 +230176,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -217949,6 +230270,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -217966,6 +230291,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -217984,7 +230310,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -218301,6 +230628,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -219038,24 +231371,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -219094,41 +231409,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -219529,7 +231877,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -219552,6 +231905,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -220983,6 +233337,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -221456,7 +233923,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -222071,6 +234541,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -222161,6 +234635,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -222178,6 +234656,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -222196,7 +234675,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -222513,6 +234993,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -223250,24 +235736,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -223306,41 +235774,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -223741,7 +236242,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -223764,6 +236270,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -225195,6 +237702,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -225668,7 +238288,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -226283,6 +238906,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -226373,6 +239000,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -226390,6 +239021,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -226408,7 +239040,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -226725,6 +239358,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -227462,24 +240101,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -227518,41 +240139,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -227953,7 +240607,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -227976,6 +240635,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -229407,6 +242067,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -229880,7 +242653,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -230495,6 +243271,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -230585,6 +243365,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -230602,6 +243386,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -230620,7 +243405,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -230937,6 +243723,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -231674,24 +244466,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -231730,41 +244504,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -232165,7 +244972,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -232188,6 +245000,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -233651,6 +246464,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -234124,7 +247050,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -234739,6 +247668,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -234829,6 +247762,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -234846,6 +247783,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -234864,7 +247802,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -235181,6 +248120,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -235918,24 +248863,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -235974,41 +248901,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -236409,7 +249369,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -236432,6 +249397,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -237867,6 +250833,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -238340,7 +251419,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -238955,6 +252037,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -239045,6 +252131,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -239062,6 +252152,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -239080,7 +252171,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -239397,6 +252489,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -240134,24 +253232,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -240190,41 +253270,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -240625,7 +253738,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -240648,6 +253766,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -242073,6 +255192,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -242546,7 +255778,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -243161,6 +256396,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -243251,6 +256490,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -243268,6 +256511,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -243286,7 +256530,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -243603,6 +256848,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -244340,24 +257591,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -244396,41 +257629,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -244831,7 +258097,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -244854,6 +258125,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -246285,6 +259557,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -246758,7 +260143,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -247373,6 +260761,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -247463,6 +260855,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -247480,6 +260876,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -247498,7 +260895,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -247815,6 +261213,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -248552,24 +261956,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -248608,41 +261994,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -249043,7 +262462,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -249066,6 +262490,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -250508,6 +263933,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -250981,7 +264519,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -251596,6 +265137,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -251686,6 +265231,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -251703,6 +265252,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -251721,7 +265271,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -252038,6 +265589,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -252775,24 +266332,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -252831,41 +266370,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -253266,7 +266838,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -253289,6 +266866,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -254745,6 +268323,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -255218,7 +268909,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -255833,6 +269527,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -255923,6 +269621,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -255940,6 +269642,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -255958,7 +269661,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -256275,6 +269979,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -257012,24 +270722,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -257068,41 +270760,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -257503,7 +271228,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -257526,6 +271256,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -258953,6 +272684,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -259426,7 +273270,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -260041,6 +273888,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -260131,6 +273982,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -260148,6 +274003,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -260166,7 +274022,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -260483,6 +274340,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -261220,24 +275083,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -261276,41 +275121,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -261711,7 +275589,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -261734,6 +275617,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -263164,6 +277048,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -263637,7 +277634,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -264252,6 +278252,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -264342,6 +278346,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -264359,6 +278367,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -264377,7 +278386,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -264694,6 +278704,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -265431,24 +279447,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -265487,41 +279485,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -265922,7 +279953,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -265945,6 +279981,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -267404,6 +281441,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -267877,7 +282027,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -268492,6 +282645,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -268582,6 +282739,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -268599,6 +282760,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -268617,7 +282779,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -268934,6 +283097,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -269671,24 +283840,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -269727,41 +283878,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -270162,7 +284346,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -270185,6 +284374,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -271612,6 +285802,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -272085,7 +286388,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -272700,6 +287006,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -272790,6 +287100,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -272807,6 +287121,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -272825,7 +287140,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -273142,6 +287458,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -273879,24 +288201,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -273935,41 +288239,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -274370,7 +288707,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -274393,6 +288735,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -275899,6 +290242,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -276372,7 +290828,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -276987,6 +291446,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -277077,6 +291540,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -277094,6 +291561,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -277112,7 +291580,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -277429,6 +291898,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -278166,24 +292641,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -278222,41 +292679,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -278657,7 +293147,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -278680,6 +293175,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -280114,6 +294610,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -280587,7 +295196,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -281202,6 +295814,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -281292,6 +295908,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -281309,6 +295929,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -281327,7 +295948,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -281644,6 +296266,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -282381,24 +297009,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -282437,41 +297047,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -282872,7 +297515,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -282895,6 +297543,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -284322,6 +298971,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -284795,7 +299557,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -285410,6 +300175,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -285500,6 +300269,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -285517,6 +300290,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -285535,7 +300309,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -285852,6 +300627,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -286589,24 +301370,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -286645,41 +301408,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -287080,7 +301876,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -287103,6 +301904,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -288530,6 +303332,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -289003,7 +303918,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -289618,6 +304536,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -289708,6 +304630,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -289725,6 +304651,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -289743,7 +304670,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -290060,6 +304988,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -290797,24 +305731,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -290853,41 +305769,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -291288,7 +306237,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -291311,6 +306265,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -292745,6 +307700,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -293218,7 +308286,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -293833,6 +308904,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -293923,6 +308998,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -293940,6 +309019,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -293958,7 +309038,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -294275,6 +309356,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -295012,24 +310099,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -295068,41 +310137,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -295503,7 +310605,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -295526,6 +310633,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -296957,6 +312065,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -297430,7 +312651,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -298045,6 +313269,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -298135,6 +313363,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -298152,6 +313384,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -298170,7 +313403,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -298487,6 +313721,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -299224,24 +314464,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -299280,41 +314502,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -299715,7 +314970,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -299738,6 +314998,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -301165,6 +316426,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -301638,7 +317012,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -302253,6 +317630,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -302343,6 +317724,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -302360,6 +317745,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -302378,7 +317764,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -302695,6 +318082,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -303432,24 +318825,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -303488,41 +318863,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -303923,7 +319331,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -303946,6 +319359,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -305448,6 +320862,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -305921,7 +321448,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -306536,6 +322066,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -306626,6 +322160,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -306643,6 +322181,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -306661,7 +322200,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -306978,6 +322518,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -307715,24 +323261,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -307771,41 +323299,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -308206,7 +323767,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -308229,6 +323795,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -309667,6 +325234,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -310140,7 +325820,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -310755,6 +326438,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -310845,6 +326532,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -310862,6 +326553,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -310880,7 +326572,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -311197,6 +326890,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -311934,24 +327633,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -311990,41 +327671,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -312425,7 +328139,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -312448,6 +328167,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -313887,6 +329607,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -314360,7 +330193,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -314975,6 +330811,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -315065,6 +330905,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -315082,6 +330926,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -315100,7 +330945,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -315417,6 +331263,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -316154,24 +332006,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -316210,41 +332044,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -316645,7 +332512,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -316668,6 +332540,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -318157,6 +334030,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -318630,7 +334616,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -319245,6 +335234,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -319335,6 +335328,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -319352,6 +335349,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -319370,7 +335368,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -319687,6 +335686,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -320424,24 +336429,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -320480,41 +336467,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -320915,7 +336935,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -320938,6 +336963,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -322386,6 +338412,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -322859,7 +338998,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -323474,6 +339616,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -323564,6 +339710,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -323581,6 +339731,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -323599,7 +339750,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -323916,6 +340068,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -324653,24 +340811,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -324709,41 +340849,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -325144,7 +341317,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -325167,6 +341345,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -326621,6 +342800,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -327094,7 +343386,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -327709,6 +344004,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -327799,6 +344098,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -327816,6 +344119,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -327834,7 +344138,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -328151,6 +344456,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -328888,24 +345199,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -328944,41 +345237,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -329379,7 +345705,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -329402,6 +345733,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -330850,6 +347182,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -331323,7 +347768,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -331938,6 +348386,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -332028,6 +348480,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -332045,6 +348501,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -332063,7 +348520,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -332380,6 +348838,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -333117,24 +349581,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -333173,41 +349619,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -333608,7 +350087,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -333631,6 +350115,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -335058,6 +351543,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -335531,7 +352129,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -336146,6 +352747,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -336236,6 +352841,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -336253,6 +352862,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -336271,7 +352881,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -336588,6 +353199,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -337325,24 +353942,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -337381,41 +353980,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -337816,7 +354448,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -337839,6 +354476,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -339294,6 +355932,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -339767,7 +356518,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -340382,6 +357136,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -340472,6 +357230,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -340489,6 +357251,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -340507,7 +357270,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -340824,6 +357588,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -341561,24 +358331,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -341617,41 +358369,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -342052,7 +358837,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -342075,6 +358865,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -343542,6 +360333,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -344015,7 +360919,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -344630,6 +361537,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -344720,6 +361631,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -344737,6 +361652,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -344755,7 +361671,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -345072,6 +361989,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -345809,24 +362732,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -345865,41 +362770,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -346300,7 +363238,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -346323,6 +363266,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -347744,6 +364688,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -348217,7 +365274,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -348832,6 +365892,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -348922,6 +365986,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -348939,6 +366007,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -348957,7 +366026,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -349274,6 +366344,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -350011,24 +367087,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -350067,41 +367125,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -350502,7 +367593,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -350525,6 +367621,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -351956,6 +369053,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -352429,7 +369639,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -353044,6 +370257,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -353134,6 +370351,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -353151,6 +370372,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -353169,7 +370391,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -353486,6 +370709,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -354223,24 +371452,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -354279,41 +371490,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -354714,7 +371958,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -354737,6 +371986,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -356164,6 +373414,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -356637,7 +374000,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -357252,6 +374618,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -357342,6 +374712,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -357359,6 +374733,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -357377,7 +374752,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -357694,6 +375070,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -358431,24 +375813,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -358487,41 +375851,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -358922,7 +376319,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -358945,6 +376347,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -360379,6 +377782,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -360852,7 +378368,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -361467,6 +378986,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -361557,6 +379080,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -361574,6 +379101,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -361592,7 +379120,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -361909,6 +379438,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -362646,24 +380181,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -362702,41 +380219,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -363137,7 +380687,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -363160,6 +380715,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -364798,6 +382354,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -365271,7 +382940,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -365886,6 +383558,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -365976,6 +383652,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -365993,6 +383673,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -366011,7 +383692,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -366328,6 +384010,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -367065,24 +384753,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -367121,41 +384791,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -367556,7 +385259,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -367579,6 +385287,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -368997,6 +386706,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -369470,7 +387292,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -370085,6 +387910,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -370175,6 +388004,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -370192,6 +388025,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -370210,7 +388044,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -370527,6 +388362,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -371264,24 +389105,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -371320,41 +389143,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -371755,7 +389611,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -371778,6 +389639,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -373290,6 +391152,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -373763,7 +391738,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -374378,6 +392356,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -374468,6 +392450,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -374485,6 +392471,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -374503,7 +392490,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -374820,6 +392808,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -375557,24 +393551,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -375613,41 +393589,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -376048,7 +394057,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -376071,6 +394085,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -377492,6 +395507,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -377965,7 +396093,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -378580,6 +396711,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -378670,6 +396805,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -378687,6 +396826,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -378705,7 +396845,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -379022,6 +397163,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -379759,24 +397906,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -379815,41 +397944,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -380250,7 +398412,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -380273,6 +398440,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -381694,6 +399862,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -382167,7 +400448,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -382782,6 +401066,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -382872,6 +401160,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -382889,6 +401181,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -382907,7 +401200,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -383224,6 +401518,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -383961,24 +402261,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -384017,41 +402299,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -384452,7 +402767,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -384475,6 +402795,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -385896,6 +404217,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -386369,7 +404803,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -386984,6 +405421,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -387074,6 +405515,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -387091,6 +405536,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -387109,7 +405555,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -387426,6 +405873,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -388163,24 +406616,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -388219,41 +406654,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -388654,7 +407122,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -388677,6 +407150,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -390192,6 +408666,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -390665,7 +409252,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -391280,6 +409870,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -391370,6 +409964,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -391387,6 +409985,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -391405,7 +410004,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -391722,6 +410322,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -392459,24 +411065,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -392515,41 +411103,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -392950,7 +411571,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -392973,6 +411599,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -394392,6 +413019,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -394865,7 +413605,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -395480,6 +414223,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -395570,6 +414317,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -395587,6 +414338,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -395605,7 +414357,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -395922,6 +414675,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -396659,24 +415418,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -396715,41 +415456,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -397150,7 +415924,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -397173,6 +415952,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -398592,6 +417372,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -399065,7 +417958,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -399680,6 +418576,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -399770,6 +418670,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -399787,6 +418691,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -399805,7 +418710,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -400122,6 +419028,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -400859,24 +419771,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -400915,41 +419809,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -401350,7 +420277,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -401373,6 +420305,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -402792,6 +421725,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -403265,7 +422311,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -403880,6 +422929,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -403970,6 +423023,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -403987,6 +423044,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -404005,7 +423063,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -404322,6 +423381,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -405059,24 +424124,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -405115,41 +424162,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -405550,7 +424630,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -405573,6 +424658,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -406994,6 +426080,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -407467,7 +426666,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -408082,6 +427284,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -408172,6 +427378,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -408189,6 +427399,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -408207,7 +427418,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -408524,6 +427736,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -409261,24 +428479,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -409317,41 +428517,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -409752,7 +428985,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -409775,6 +429013,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -411196,6 +430435,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -411669,7 +431021,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -412284,6 +431639,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -412374,6 +431733,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -412391,6 +431754,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -412409,7 +431773,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -412726,6 +432091,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -413463,24 +432834,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -413519,41 +432872,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -413954,7 +433340,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -413977,6 +433368,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -415398,6 +434790,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -415871,7 +435376,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -416486,6 +435994,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -416576,6 +436088,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -416593,6 +436109,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -416611,7 +436128,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -416928,6 +436446,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -417665,24 +437189,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -417721,41 +437227,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -418156,7 +437695,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -418179,6 +437723,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -419600,6 +439145,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -420073,7 +439731,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -420688,6 +440349,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -420778,6 +440443,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -420795,6 +440464,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -420813,7 +440483,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -421130,6 +440801,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -421867,24 +441544,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -421923,41 +441582,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -422358,7 +442050,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -422381,6 +442078,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -423802,6 +443500,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -424275,7 +444086,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -424890,6 +444704,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -424980,6 +444798,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -424997,6 +444819,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -425015,7 +444838,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -425332,6 +445156,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -426069,24 +445899,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -426125,41 +445937,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -426560,7 +446405,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -426583,6 +446433,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -428068,6 +447919,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -428541,7 +448505,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -429156,6 +449123,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -429246,6 +449217,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -429263,6 +449238,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -429281,7 +449257,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -429598,6 +449575,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -430335,24 +450318,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -430391,41 +450356,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -430826,7 +450824,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -430849,6 +450852,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -432270,6 +452274,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -432743,7 +452860,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -433358,6 +453478,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -433448,6 +453572,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -433465,6 +453593,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -433483,7 +453612,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -433800,6 +453930,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -434537,24 +454673,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -434593,41 +454711,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -435028,7 +455179,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -435051,6 +455207,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -436472,6 +456629,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -436945,7 +457215,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -437560,6 +457833,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -437650,6 +457927,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -437667,6 +457948,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -437685,7 +457967,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -438002,6 +458285,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -438739,24 +459028,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -438795,41 +459066,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -439230,7 +459534,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -439253,6 +459562,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -440674,6 +460984,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -441147,7 +461570,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -441762,6 +462188,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -441852,6 +462282,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -441869,6 +462303,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -441887,7 +462322,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -442204,6 +462640,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -442941,24 +463383,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -442997,41 +463421,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -443432,7 +463889,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -443455,6 +463917,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -444923,6 +465386,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -445396,7 +465972,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -446011,6 +466590,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -446101,6 +466684,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -446118,6 +466705,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -446136,7 +466724,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -446453,6 +467042,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -447190,24 +467785,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -447246,41 +467823,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -447681,7 +468291,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -447704,6 +468319,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -449361,6 +469977,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -449834,7 +470563,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -450449,6 +471181,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -450539,6 +471275,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -450556,6 +471296,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -450574,7 +471315,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -450891,6 +471633,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -451628,24 +472376,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -451684,41 +472414,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -452119,7 +472882,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -452142,6 +472910,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -453563,6 +474332,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -454036,7 +474918,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -454651,6 +475536,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -454741,6 +475630,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -454758,6 +475651,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -454776,7 +475670,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -455093,6 +475988,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -455830,24 +476731,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -455886,41 +476769,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -456321,7 +477237,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -456344,6 +477265,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -457765,6 +478687,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -458238,7 +479273,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -458853,6 +479891,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -458943,6 +479985,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -458960,6 +480006,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -458978,7 +480025,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -459295,6 +480343,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -460032,24 +481086,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -460088,41 +481124,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -460523,7 +481592,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -460546,6 +481620,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -461967,6 +483042,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -462440,7 +483628,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -463055,6 +484246,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -463145,6 +484340,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -463162,6 +484361,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -463180,7 +484380,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -463497,6 +484698,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -464234,24 +485441,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -464290,41 +485479,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -464725,7 +485947,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -464748,6 +485975,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -466169,6 +487397,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -466642,7 +487983,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -467257,6 +488601,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -467347,6 +488695,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -467364,6 +488716,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -467382,7 +488735,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -467699,6 +489053,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -468436,24 +489796,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -468492,41 +489834,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -468927,7 +490302,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -468950,6 +490330,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -470397,6 +491778,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -470870,7 +492364,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -471485,6 +492982,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -471575,6 +493076,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -471592,6 +493097,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -471610,7 +493116,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -471927,6 +493434,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -472664,24 +494177,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -472720,41 +494215,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -473155,7 +494683,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -473178,6 +494711,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -474599,6 +496133,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -475072,7 +496719,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -475687,6 +497337,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -475777,6 +497431,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -475794,6 +497452,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -475812,7 +497471,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -476129,6 +497789,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -476866,24 +498532,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -476922,41 +498570,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -477357,7 +499038,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -477380,6 +499066,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -478822,6 +500509,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -479295,7 +501095,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -479910,6 +501713,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -480000,6 +501807,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -480017,6 +501828,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -480035,7 +501847,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -480352,6 +502165,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -481089,24 +502908,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -481145,41 +502946,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -481580,7 +503414,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -481603,6 +503442,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -483038,6 +504878,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -483511,7 +505464,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -484126,6 +506082,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -484216,6 +506176,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -484233,6 +506197,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -484251,7 +506216,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -484568,6 +506534,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -485305,24 +507277,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -485361,41 +507315,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -485796,7 +507783,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -485819,6 +507811,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -487366,6 +509359,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -487839,7 +509945,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -488454,6 +510563,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -488544,6 +510657,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -488561,6 +510678,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -488579,7 +510697,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -488896,6 +511015,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -489633,24 +511758,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -489689,41 +511796,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -490124,7 +512264,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -490147,6 +512292,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -491592,6 +513738,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -492065,7 +514324,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -492680,6 +514942,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -492770,6 +515036,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -492787,6 +515057,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -492805,7 +515076,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -493122,6 +515394,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -493859,24 +516137,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -493915,41 +516175,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -494350,7 +516643,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -494373,6 +516671,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -495812,6 +518111,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -496285,7 +518697,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -496900,6 +519315,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -496990,6 +519409,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -497007,6 +519430,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -497025,7 +519449,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -497342,6 +519767,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -498079,24 +520510,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -498135,41 +520548,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -498570,7 +521016,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -498593,6 +521044,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -500024,6 +522476,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -500497,7 +523062,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -501112,6 +523680,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -501202,6 +523774,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -501219,6 +523795,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -501237,7 +523814,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -501554,6 +524132,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -502291,24 +524875,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -502347,41 +524913,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -502782,7 +525381,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -502805,6 +525409,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -504236,6 +526841,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -504709,7 +527427,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -505324,6 +528045,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -505414,6 +528139,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -505431,6 +528160,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -505449,7 +528179,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -505766,6 +528497,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -506503,24 +529240,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -506559,41 +529278,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -506994,7 +529746,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -507017,6 +529774,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -508435,6 +531193,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -508908,7 +531779,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -509523,6 +532397,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -509613,6 +532491,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -509630,6 +532512,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -509648,7 +532531,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -509965,6 +532849,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -510702,24 +533592,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -510758,41 +533630,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -511193,7 +534098,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -511216,6 +534126,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -512649,6 +535560,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -513122,7 +536146,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -513737,6 +536764,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -513827,6 +536858,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -513844,6 +536879,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -513862,7 +536898,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -514179,6 +537216,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -514916,24 +537959,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -514972,41 +537997,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -515407,7 +538465,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -515430,6 +538493,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -516860,6 +539924,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -517333,7 +540510,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -517948,6 +541128,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -518038,6 +541222,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -518055,6 +541243,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -518073,7 +541262,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -518390,6 +541580,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -519127,24 +542323,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -519183,41 +542361,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -519618,7 +542829,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -519641,6 +542857,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -521086,6 +544303,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -521559,7 +544889,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -522174,6 +545507,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -522264,6 +545601,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -522281,6 +545622,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -522299,7 +545641,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -522616,6 +545959,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -523353,24 +546702,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -523409,41 +546740,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -523844,7 +547208,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -523867,6 +547236,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -525316,6 +548686,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -525789,7 +549272,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -526404,6 +549890,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -526494,6 +549984,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -526511,6 +550005,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -526529,7 +550024,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -526846,6 +550342,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -527583,24 +551085,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -527639,41 +551123,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -528074,7 +551591,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -528097,6 +551619,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -529525,6 +553048,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -529998,7 +553634,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -530613,6 +554252,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -530703,6 +554346,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -530720,6 +554367,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -530738,7 +554386,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -531055,6 +554704,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -531792,24 +555447,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -531848,41 +555485,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -532283,7 +555953,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -532306,6 +555981,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -533733,6 +557409,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -534206,7 +557995,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -534821,6 +558613,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -534911,6 +558707,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -534928,6 +558728,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -534946,7 +558747,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -535263,6 +559065,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -536000,24 +559808,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -536056,41 +559846,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -536491,7 +560314,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -536514,6 +560342,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -537941,6 +561770,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -538414,7 +562356,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -539029,6 +562974,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -539119,6 +563068,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -539136,6 +563089,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -539154,7 +563108,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -539471,6 +563426,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -540208,24 +564169,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -540264,41 +564207,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -540699,7 +564675,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -540722,6 +564703,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -542155,6 +566137,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -542628,7 +566723,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -543243,6 +567341,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -543333,6 +567435,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -543350,6 +567456,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -543368,7 +567475,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -543685,6 +567793,12 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "type": "array", + "items": { + "$ref": "#/definitions/Poll" + } + }, "id": { "type": "string" } @@ -544422,24 +568536,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -544478,41 +568574,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -544913,7 +569042,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -544936,6 +569070,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 85db26b27..64bcdd567 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -16,36 +16,36 @@ along with this program. If not, see . */ +import * as Sentry from "@sentry/node"; +import { EmbedHandlers } from "@spacebar/api"; import { + Application, + Attachment, Channel, + Config, Embed, + EmbedCache, emitEvent, + EVERYONE_MENTION, + getPermission, + getRights, Guild, + HERE_MENTION, Message, MessageCreateEvent, + MessageCreateSchema, + MessageType, MessageUpdateEvent, - getPermission, - getRights, - //CHANNEL_MENTION, - USER_MENTION, - ROLE_MENTION, Role, - EVERYONE_MENTION, - HERE_MENTION, - MessageType, + ROLE_MENTION, + Sticker, User, - Application, + //CHANNEL_MENTION, + USER_MENTION, Webhook, - Attachment, - Config, - Sticker, - MessageCreateSchema, - EmbedCache, } from "@spacebar/util"; import { HTTPError } from "lambert-server"; import { In } from "typeorm"; -import { EmbedHandlers } from "@spacebar/api"; -import * as Sentry from "@sentry/node"; const allow_empty = false; // TODO: check webhook, application, system author, stickers // TODO: embed gifs/videos/images @@ -66,6 +66,7 @@ export async function handleMessage(opts: MessageOptions): Promise { : undefined; const message = Message.create({ ...opts, + poll: opts.poll ? [opts.poll] : undefined, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id, diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index be1c31bec..495e2ebd6 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -56,7 +56,7 @@ export interface MessageCreateSchema { sticker_ids?: string[]; components?: MessageComponent[]; // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled - //poll?: PollCreationSchema; + poll?: PollCreationSchema; enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here applied_tags?: string[]; // Not implemented yet, for webhooks in forums thread_name?: string; // Not implemented yet, for webhooks From 9b02e82614403d11b463217b2867b127ff3305f2 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:55:01 +0200 Subject: [PATCH 18/30] Make poll a single object instead of an array --- src/api/util/handlers/Message.ts | 8 ++++---- src/util/entities/Message.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 64bcdd567..325a7e1a4 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -66,7 +66,7 @@ export async function handleMessage(opts: MessageOptions): Promise { : undefined; const message = Message.create({ ...opts, - poll: opts.poll ? [opts.poll] : undefined, + poll: opts.poll, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id, diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index a76ebb1f9..d28c8c29a 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -219,7 +219,7 @@ export class Message extends BaseClass { components?: MessageComponent[]; @Column({ type: "simple-json", nullable: true }) - poll?: Poll[]; + poll?: Poll; toJSON(): Message { return { From 21579b11cd3ca2205cd7b2dce8c3734c101855b6 Mon Sep 17 00:00:00 2001 From: Cyber Date: Tue, 9 Jul 2024 16:02:11 +0200 Subject: [PATCH 19/30] fix: poll message is not an empty message --- src/api/util/handlers/Message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 325a7e1a4..ea673e50f 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -139,7 +139,8 @@ export async function handleMessage(opts: MessageOptions): Promise { !opts.content && !opts.embeds?.length && !opts.attachments?.length && - !opts.sticker_ids?.length + !opts.sticker_ids?.length && + !opts.poll ) { throw new HTTPError("Empty messages are not allowed", 50006); } From 7698a15f030732f4c855ec11a9c08538be037d78 Mon Sep 17 00:00:00 2001 From: Cyber Date: Tue, 9 Jul 2024 17:19:28 +0200 Subject: [PATCH 20/30] fix: check for message components --- src/api/util/handlers/Message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index ea673e50f..14efa95b0 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -140,7 +140,8 @@ export async function handleMessage(opts: MessageOptions): Promise { !opts.embeds?.length && !opts.attachments?.length && !opts.sticker_ids?.length && - !opts.poll + !opts.poll && + !opts.components?.length ) { throw new HTTPError("Empty messages are not allowed", 50006); } From 9f049cb9683e1854abe804a0afeae5e5dde677f4 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 10 Jul 2024 01:53:16 -0400 Subject: [PATCH 21/30] update default avatars --- .../public/0c8138dcc0dfe2689cdd73f7952c2475.png | Bin 4657 -> 0 bytes .../public/22341bdb500c7b63a93bbce957d1601e.png | Bin 0 -> 4550 bytes .../public/4a8562cf00887030c416d3ec2d46385a.png | Bin 0 -> 4361 bytes .../public/5ac2728593bb455250d11b848a0c36c6.png | Bin 4494 -> 0 bytes .../public/7213ab6677377974697dfdfbaf5f6a6f.png | Bin 0 -> 4199 bytes .../public/823a3de61c4dc2415cc4dbc38fca4299.png | Bin 4380 -> 0 bytes .../public/9b0bb198936784c45c72833cc426cc55.png | Bin 0 -> 4209 bytes .../public/9d6ddb4e4d899a533a8cc617011351c9.png | Bin 0 -> 4471 bytes .../public/addd2f3268df46459e1d6012ad8e75bd.png | Bin 4511 -> 0 bytes .../public/c4e0c8300fa491d94acfd2a1fb26cea8.png | Bin 4251 -> 0 bytes .../public/d9977836b82058bf2f74eebd50edc095.png | Bin 0 -> 4503 bytes .../public/e56a89224be0b2b1f7c04eca975be468.png | Bin 4158 -> 0 bytes src/cdn/routes/embed.ts | 12 ++++++------ 13 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png create mode 100644 assets/public/22341bdb500c7b63a93bbce957d1601e.png create mode 100644 assets/public/4a8562cf00887030c416d3ec2d46385a.png delete mode 100644 assets/public/5ac2728593bb455250d11b848a0c36c6.png create mode 100644 assets/public/7213ab6677377974697dfdfbaf5f6a6f.png delete mode 100644 assets/public/823a3de61c4dc2415cc4dbc38fca4299.png create mode 100644 assets/public/9b0bb198936784c45c72833cc426cc55.png create mode 100644 assets/public/9d6ddb4e4d899a533a8cc617011351c9.png delete mode 100644 assets/public/addd2f3268df46459e1d6012ad8e75bd.png delete mode 100644 assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png create mode 100644 assets/public/d9977836b82058bf2f74eebd50edc095.png delete mode 100644 assets/public/e56a89224be0b2b1f7c04eca975be468.png diff --git a/assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png b/assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png deleted file mode 100644 index 3e8eeae966239718d268a633fad988660477fbad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4657 zcmd^D`9GB1`@fmN(2!)AtV6P9FZ=e$u8^KA$(S+rElaj0(}=9ui&VBEWouB8ov|;; z8qb75Suz;1X8Yd0pXc*ee15oJXSvULpX+{~bG@(YK5>@jMyxEnEC2woni%U_0RSCX zr2}A$U~xO(tt(hC`x)B>0)XuKlZP&}P$w7w&dizU|Mhq1%azHcklS0~o$CXA?wJ=o zob4(_#g*9*=disQJl@27jI^*Wv#7aoUV#tgLwC2DmX?Fy=H0Lnrfb7*UZ&sBV_`$M z+hXMvDl5EuHyXQ@6_hv1eOxc?Ylp0EEJJL{<;QK?YMV5E@7EtitbOC3FVonW`uy$k zgJ}r8et~E;l_Azxkda`Ffdi?n2teeK0-(==1!6fn0Cvg8bVw@%M7Kcxe{6uMvmE7; zQD%8&1HD@F!^6`(s1|NbdSq=B=3J!>krkqQmpQZd0*-+!59nvgKl*Qt7$x~{A2AfF zTOdoCJp-gxUTrA>^m~TF&ZQVToRGX>joN1UgaKk@^RvKqWq_;szwK1zp?~4yYEn}g z9{M1FSN<0XbX}5Hq6KRggw?pk*R4Md!m=} zdr>51I54P+k?A`Rh}_%@cpdv(a>8ponhwe9hE$14Y40WI_b5DyyYcz=*Jeiuhotx` zgVf4O5RJY%>gejGKhI7b@WWtn8pT!Isz(Jtr^ zKOJrJ?1uyfp3`mG=>!I0!o*D_e~V=s@$f0ME6o2zaGDrwh2q2*Jh4ehyd~)kkpZW^{UA+o3a7|sdpex;XFP1n)1z7AA445u?yzFK} z7JW@7bjSlgj893;qfriZGAB#$fBPa4LeGu{x*~WdFE74S6k`2}vY$_M4yR>Zw|7+o zHzcX5;Jz&P$UtQ8<-HJ-`F>6FqJfqu^*d0(WICjgq!Dw*XmDOxvCEJfGfZ?-bh|JK zSwh))Kv1DiC6&H?mSC`T%5pa6;P~<*c9?VIcz*b$rK*?lM!*k*U`<7F@HyA9``sB~ zZ{+<&Cf;wd+Wk7}?e@2RQvG_EjOlfJKxvh3{?rycq1gLwmy5uk-*Yn_*HDcedm=|x z9N^$KtPv*m6+oP9{ zup4ip4=c3E^J?cHx>n(@UAgARCSl2}I(q`?BR3YW@e_S=(iH&F(QieQiAztfed-^U z5fD!=@|S-gu`EJJV;92F)kz+hviXO7Sh@Iz` z7Qw0SWg2(s^IH0kg*UvjHJ-D+lKxB@0}=QlL}@jewx}jVzsoS1d3daeF!z~a_^t%X ztQ6<=df7YsF!IglZa_cW{&?m2yBX(=OJ80HlU>yXAjpW$l@^&qGotN9C=$8+6X~1D z7wtmnZwc|v-goa`S@d2c{`An9Gx&%Yi%}t~4=*7A=G%Vxl?8g+yzF{tGe3>m^g5px zb_>OA=lgeFS2z{>C`FvoIZ(?L{QGEZ+Drk6ACeK!ipbuzm`?a4$Z`C3y){lpBWF_s zrI_0~@Atk;=@gv>y;K(wPUW3UINoS-T8=r+=`p|mF^o&fOv>klnyb84R8aTIr-2}K zK{^S;>djL^_-ScXk6oV^#FeDE>i6htDpu%Ju8mMDj>! zt3!Xt_%=3oJ?$O`lT*yo#)Vl^1i;|@7#^Io+TOI66EhG`R_sKIqp&6XrLp~17_M?CCj&e^+F*DTYD`b!k*f-}kjJ4LrR+1is|P18)W z9AOB8NJf`<1;+X8(S==UvKx-l5mLW{b@|Ogc1u=!sv3FCe`*_d0mO{=RH(oFL2y7H zRUQ6`$yf7s6-RPkX!G{+A=c_1FYYzddcHQ&1)q-w;vZkQ2n`f26$pjMU8pUf`r+F9 zL!COREp4o&T^b3^aiKa>3n9k??EvQ)lA@pNWx@g@%Frgb>4|{4soPA&(rN7W6FaMU z2v7O`j^Xw={^M(Q1;C({Q;aQYpVmj?Junw~QhDVCIbk$$2fO#7@IOO^;6fc<%&46v zUbya=uQCFBMz!l}5j8lD}!2H5`W5@;+z1M+p0V* z%U70Zo~35L`el-0sd2;tS`IK;ltCq$H0)4RNSTaxa5fd(;vjD#< zRC+6E?Mo*v-`FhCfNt6Gd(`RRDfj0RXNr~0s7c{~FQ_(Y|Sw<8PWGO64caku+? zWjAH4as%IH@!r$Zs5swQeRvfLu|yjx;_I~z1g9*voxVOco-72nHpg>cw$Tcg{Q)GH zE$Yu#uC)_r(A+4=tNgI78LngUc(#V@VNuz)us1Vuw{n{`*KU(RV%1u_VSFUAUn?TD z)<_tfpexVUnlZQ%s`AfDtOog?@2G6bhJyJ z+a78aluh!S1HqJ_PJKAI!n64a@OI<_kK!hU~gar8sKjw!e5%_w6D_e_1r71M6Ra|Lk2#+ zaz~$5B)^Y+_oQX7k zd_&dO>(*-QSv)`)fD*@c#HMM1tnxq_Oqjjzk)Oy^a@n9msPxZzBWpR?eU=>0FnIM< zdyzw{>1Q8uI=rqd6EB45Z%Y|O(4{nUaGQ&n&uJZt)k`d??B_0wZG7IX8e2nqV2h|X zWfd<%$VMS^d%L(w8%bU;V%NH$e=i1i;&<2HQQJVZz~V`o6D7Ark$#%n3iw}+=W$P8 zwF1V%6#viH7mDw;eLPh7DbaG}vh@1y<2$ppl1eV`e>0!=(7`JlC>oYUQE$exK#-4m z6{g>HegOU2{ctk0W@{M?%wo7~i&)S}wd>i)flcWRrh^y&wsN6tcWh*TU3a;`YKk0k z!9y#uECN*;cPFL6^tuzkIUm7ys<)hU_F6LKO9mNSN-|6-xv}faK_EqKqJ&e1QTO`I za;wtf#pZOM691}@a%zxvI|uilvqiMzD+67q!nXt*BR$lu;MASA zxhhh{@!vN@Gp;(s{u=UpcY3ux?Qv?0;W2kZ#q#- zZ>AH*in*VJ^*Fx|w0r&zQ}v!n4mv$+qVodO8TYV>#L)UZzGrI<%u@mHsX^ruca|2n zcPM)lzNCAM52ZlO{B3hXh$JxVd&NGe1S>e@uLk-J`CFtTBWf-|^8yBlZzGLX&$M{# zfcX#W5UN+}%=4^H>*HWezR;&a_&88XLO@Zh8Ne}dhwHLAu`K^$+O}`2Ne`;peTDw~}QU4MR~; z0hoiaYGxhQ1}PjDZw#GZ&32mg#rLbtm9+-XY;<@~-R~(!B8EfS^=cckM;aY&dtly0 zu@oq*BGz~cW{k4ZTsuLTO8F^9hf$c5r7FCbNhb2OJoVlii^_V_0goKtkoyHNrceK z>T<=)iu@%4IFIFbmGt!ux7F`5zzL$!@(OhY%z-_wPWT`V-|Sk>D*kQJsW=YySPy@1 zzR8FO8^?O!P%aRhd+ZCT|Aued!#`o}Z{1TGzO40girvowrV#j;)3l37&_xSZIZC}z z!ni~)!|J;)W4Goe@;@$)CUv7?#0a3nuLSg>W}cfYd2A-Fwptv>(TeIBV(IeasI9`s z>ZOT6>&)5=@pO62RZ)*fsi)T~*RD}}1m0fX z({RAyV`M&Qw||k5+Jo;}+c$Vfmp8!G_lVft#Kq@Crh$~{cTgxGmyO4x7_V}BkXJ)Y;%*l){T!N z0eQdxWY*~x|M_!5_s-*pVt)ji=7z<=ZV9(}_CY6v@#$CMm3;3-wNn~6)HorQq8k}( z{Ue|r`$+{cI;8rHKi81L$pok}<`J@5^`=HrloeG4*E$E=j22B-o5PeuahIjo;kpqO zQ4A!-Ji9RXn`olkJ(xxsQ-$2L9QaZfP9QPEV8UqFS-bNIma>np44$_YntVw5V>hvU zJpv2x8|wn}Umrz)U#hDdo188_C_wIx@g2JS|FOw}l*!thxi#nQ3e=^=_*rT&L%4Gr zuYBW&AnnGwT5?&@U@90m@z=|K*4fZixM3M0K+ni}@qjX1fC0RnZ5dzPf=AqDkIWL@ zEE+)T3mG)Sgxxz*h?QN;*(%E^J_v$W7YFxUvlz^|t}I?KUu?aFz{|w`1`&I*je2@S zTwK_zhhTOl_;C{{Mv4+5gD$g|;f5_SirEbItQGt}{3-*fEp)737jv5j$uUNlv~5CL z??Lfeu?1O%V?!w%JlfRru8(6jeyEo3?F+J3W+Fw@;ui#N>RQtEoN}e R7Q6!jObpER%k|I?{|^icQZfJl diff --git a/assets/public/22341bdb500c7b63a93bbce957d1601e.png b/assets/public/22341bdb500c7b63a93bbce957d1601e.png new file mode 100644 index 0000000000000000000000000000000000000000..c8bf93d0113089e65b822bb4e3117e3a2a4061f1 GIT binary patch literal 4550 zcmeHL_d8r&+dX3#y-X5Jgh56R(FIXPmqdanqelx7(S;$(AW=q_5Tcjp87)c>{UM%2 z?}-}GMzk=Zdyn_$@B0tlANIA+b(Vzvjdy0Opw^v1q^qw^4Rm*ocjAt5iB>dW}$4|Nn(niFQ64{PgS z7|WNTT%Ky1P*qjFp5L4*(W!PxX@`NqlG%TEw|WDV86B4Y`L-qXX5!nQ&`5QOQY0>N z)CPzoxBFlFKRJ*rLvmdSyx~vAC;wG%trYE`&K4tqSH zeDmqx@$5r;^@6yAt)hnRg@Phvwhuc^hxfv(IUr!W|6qm5#pj5`o*B4O`ST0kGv@#l z+Tc~uT?|FaP&VNu%!PA+lb|5DYRrvA7UF^VKBlp zI$E2XGPhiol*<{oExJG>tD_GI?04@3=(wkdnu&`10t27LNb=3bRaf8kSh2lXVWfDq z|4iXgH4B(q^^Kr}fU{0C{WHT3dZ^gTI|O`=QtOXP(Y1c}DrMZLJy9cJjVW0mrb&w5 z?I80bs=N7r!WzfPwVd>_l}E(^wLxN^7dV|sW8+uXUaz#-i#b&n3Sqh|!#9?U8svAH z-j(0#PATt|&&5L!9jsdEPLDl~`icpYFaPBV-qqvoOL|AJex$2X*FAN(`8EwiPrjWMT-Df-}v`Yl)Dei)Ly0+H1nKM~I$T%2 z*HqR1)}PMYQImb{vwh!K-OS{fE;Y=G(HbZj@4|7!u{~jU&B3@Lss`2(c6AlT{#&8Y zJ4?WTC&gj9@YscU4K66V#S2mS+COG-9noW7&Oz@|O_`475@%Uo0 zG1Tg%U@|)EXNI{%xF%2grHJ#J{!DJQE%C`(oIO#5#+-6HnN$zQ?!E?@oopK%w}3PG zz4y-LM7Vd<8~_tjiMR#?iiH{BT_JDW}>&^!~Z=y)Dgqq^D2xaUTt^Rc@O zspgBoMe~^aR6XiqFKZ8_^xACO`Wp0#CgOa~9vn`wPy=H+?OT*3(vtZ!xi} zjnG97UToE#&57*BBWuof4L#CL)b)?8?c~r~WL7-vx}34nT6Qk8mjb3+SQ*(%I?m!c zp-TNW_>Rw}^@~j&bK^efSa;0)#Ll%gjgG^}DvvnZ6T%+GBqK<&JiNkc;efIilhIakM&AHFM``y_N6h50h$FclX<$B{i1wFtd~kb&x^UBv29b z)_$dhuqKg+jB2((L2vB0c^@3D7_h=?wwQRigAz#G!oHsmwg&na&(A#V!`r5^%xr*u zT2iM)ukQ)yFa?+>a*>hrCTEOB5}87Lmi`ruDD zJc#9Iq#{EAKpSs>WMrp7*s(YO@a@bqd0?NqE5m?O{@w&(r#c=JI)zJC0YEt{difTF zmz1ZIIL!h2ysLA0_1CAb&2qh)YOUd%xJxgxh;VH<^0XJ&zRzXSU~xXgNeB2+MkRBm zQPlGqlMr{K7|@}-3>5pqV|EFu!>tfJLmN52E^YEn%Y)=l4NCM;v@SYHW1oN?f@oJa z7{#OUMpVj@dV9HgOALY2;``pZxBE%Y4@vA+SR0vCxQkC4dlzcj%>VoR+WP+b84i3c z`JKtm2j*TqBv`$|HO?NJk|i^iFTgDW?4%&xQ-)#}{xPT(U5M}7nzvpN_x4l7P0%7V z58MCv+eoB>5^sxlW^Y-^iW4MwK+;HHNVCbg(5&l^D44FKf3sqK_U=hJOFl)(xVlbk zNtcM=?!3fpGKuvkI_@bybw#!W%^&fq`Sl4`5V;Lg;m7yOdz;LAzl+{#iMr4KsBMT~ zpknE0_Rappaa@ zKZoyfDx{fui(s@2xc%ec^J%lN+McXI@4oO&2jR(j`>x>nyxsboBHPk+#Y zYt25@*?s=rO3=g}kU$Nee8(%YiH;iO*RFglbhdi3*gKa~yAq=tZ|R}Fv9-|iK&j~P zoof&@q0=R5D4>tygY>%!zpB6AmDu;iDR0LwpjQ^=8705bncav@@-r^}0u(opxtmwG zogc#t0)0m+E-zePdj&>fs}uugF5r-E1C{Y>qn3&#bAtSUprv`C06*XhI}<;1ns z0U>sZe{TWAh41TuN;{77GrgCE;UL=K$Fd-R15t^&~vh(H?9Mn)yvd z;^#i}T=?n{cikiu>!$LE$8=gus6`@iMm9jWGb9pFPamD}-K4EA>^Eo(s#2UNiq6$! zLsfD;CcrM!yVkvUH%x-GIeaWds$9NKWsO- z5I)VrK%CzO)_ohVb*f;;p>d#g2m{50tu);yC$~usXRv>-hS$cmgBkR*LPA}$FUij^ zK8G3(Dc)U(lQnA+vVjrqriOgxpxn8093(~hcyyYQ0HdJ?z$z zC%(HgF~Yf66Ni#rA)R-^AIGSJ`ze`#2XwAtH$HQeY7M@Oyf~g4DR$)GH$H)^l_Kp- z9Kx=?)zIyFJapM8J};`~bLM~JTmVXWhB9P`s?LWZeG=6>COGcgd9DcDWa1BJC9jhW z4$j1!p0J=%+w~)yW&d3v0C1~ozKDQxW=zEz$8J3+$EN}Tqb(Q`)s^d3Zb4cg4*W81 z#_{j^vLR-;KK}bT!JoV@k{bQOjk4}mO9|*jpI%#%^6FTlr~#l{xk`gXRp8aCaQ2c2 zm*N!y=x6#4w!a}k(|925Q$J5y_BD#n71W0SxYE}HCCCtO;@bDOAbD~gkYc&dv=uU^ zrX)mxB!44u+kV4%%=-}{3 z__h6~!5g=SBQz+HRR1!ksYa~=0Qz$gHSNBLz9P)&cP{E$RX!;Ygy&ZR(C1T+X#dVd zD7j@5^|hg8ajxCFqzW(rD+0HBHoV`O+T;lD-^(&mq@fr}8km?*YuqU98Kj5JlVv|g zwkJ0Q$7DJx>4RTQz!bZGXQM#%F4Y=hhRt6mW${fny9o}k)1jn`d~Ig4vhkn3O=u(j zb#_==O4)8SSSxK)OruTY5Z5FLNYQYB*BRof!%54+^RfI@7U+D~`fGKcL`+En zzo7B;*K{+#hp((ZQnB-mCVF_sLbem9th?_EVr+a)yzK=WS~=+}#z!LS&CbL5bzS}u z)D0tgsFFd&Xqe+vEtbysb>cH)K-DG5=8^ng>=>^fPtG3jH_seFn&*G`@gM+YbvBe( zuTh+o^CeG|WP;m(x{tcNFbsanVmO1hIeT_2#~%$gn4)4c8L1#bCJqwf~2M%5%!*G&`nH$rpLxj~U>O#shVNs&(jp0MUjI AegFUf literal 0 HcmV?d00001 diff --git a/assets/public/4a8562cf00887030c416d3ec2d46385a.png b/assets/public/4a8562cf00887030c416d3ec2d46385a.png new file mode 100644 index 0000000000000000000000000000000000000000..73426bcdeccfba19c366e3fbf848cae6e18b8560 GIT binary patch literal 4361 zcmeI0=Tp;7w8wuTG%1EAEr3XuB2AB%sh2Eu0l`cUDMWhB)d?ZM3B0>NW3>^#x zDN+;+NC`#hEg~5D<#~Vae{f%X=j_bx?9P18+4-E^R5Q3CGXpOJ007K)jPxu30CX_~ z0ra#N!7-%D>mpnVHnIx^fE&X92^3YK6#)P&ZFlr;Bck%RW*>$je(@8?-rLfcei2MR zl^y+EqwFOAua+`7-&+&f5{`SK-!n*BKqkI^wW#g0+_)h`6QYDyz|jrQ4)$M-WcJGk6ve~8_elMI^;T7FgS&0R6>H{6B3sXJft!C2{k_5OKwh3uwYXx1 zN&)8y#qjbtVp_g(C^;bkOTx~!;U~!>EU+V$B;{L?LL3$vC1UQF7<)^^zFw}rGd7tt zG^l6gNt$J%F10;1qbrR1TK6rdqWO|mukaq%g=F8~M(1kmzrX57JRBV#!YA0;N_W$&v<3gVvX*!T{d>a)pZrptUB&86 zDk!C=wQE^WQSrd#tdMeQF8#)@?=BQ)aZu4rKyP@rnLGMt9tRa5=U|i=$ByHVjld~o zOvG>osx_*V5{}Pjl6IW$!7-paB9uK+k{tqvdz~UZL_L=1P&_u5V<9>Ww8d9nI&K=T zlBBNs;S-RWl(j!$<*JL2yOOyIs?7W0&i~}k8?BNwm%_wn0*9A6<$y=r3VOPBz9F%- zvIW~8b>DX6-n`x*)q%+n2*8&<7MPI}2j8#>xizk5C^~Vmx~i6Ea&=GJ)7uaCFjg$E zuqc&Pn5}Wzk2dfF4RIvGeJxRdPf4uhiLRAZzf-bTU*Z^Swdwaic|W_$?_8Fy3+l5R zp|D=w_}yT9@>7Kli&-;(qhVc|k7-UaHyFXAPZDAt*%V?FXH@?3ac#HMF;7DiT4N*L zUE%PdOvoyltHMcEfj(MXkUM?ApKEbdXHp}hCA{0M!i=w+H+ritvg1|PQpaC!i^ABn zJXq%O4VK{kBQ5=2NXrFJba{n@i81a?rnhS_>+7$h2TfIA%u*X2Du?AaJ-@NktxKv~ zPax$3sxA8okT9C65WYT8G#>a<`U6Nby!?bFG-#+B%%~wDr8qL2Cq9@!BITqaw+AeE z$8?X{B6SsLi@B602zI^%bdwtyEZ`Vxr=}s`F8eNYIO5*Kfd5Hw=>vF|=&?T|AVSiZYlT1sisk~}tLhIE)hfn4SUDBEvYl;{r zK76o1gDrQ`Cl>X;E_d5E4rM|d{FMg1QL%~6e)~;dGWEYYwQZS6=jG1|O;4+_#dRk_ zc#%d|pjCdO zE-q5EtOj=ugLsXE;GZkuiZ<6?;_9O-BD+U^DoQ%D{Bg<`p5 z86jTA&2pZcs42r$<|wcCX%k;lb)|=vzq-b-4U7-s7@+H%NcqrYXvFc;Cp0T2p>F#O zK?8v&+QfZ+K6(wd6@ptxs1nDkd7$H0P`MUP{?B}O^bSiu+y|*8>@ES0go-W1RTZQxie7!Gp(4|7ygD1goJ_O>k-8C8r z=qxLAvAA7hnBlslB<@2bJ@F_pstd<=;bv<`ZttoJ7x43^54UC>C_71+Hrx&9esQ}L z(XyfF%mh&0bEj5IwhVzT$Sa3V)LG=<@Tq^$mj$YymXVl;dVG4&BCW9prUg`0IX$x` z#F~sPH{-<kqf0)9jqUBd`$x)?cCBo2gdl6cAZX^Wsvu$f0XV< z8Y~?Pn|I#_D=0ogK6dc)qwWzzMcpV!p}M%Sc8M|W=0Y!C{Fo>E_ym{?Gg@U1b334@ zrkqXIlz=gbT?#v_y;BuMAjnb0OO%>39esK=CgIvdg~9N4D$k)U;l_9hIaL)uHpxwB z+&G;)2n4=-F;CJN!#T6?W>Q^lqtV?{`iBw^=5krpF-UIZMp#YlT4w~A7%SZan^gn@ zyT5GI$g3_fl=Zheoh9PDeQ0e7>i6&UcGn5;_SOb=c5xNCm1yPmxt^=*()KgxmG8&w zY6ZY3Ps-w;ES~cF?p5cgo-E&Qj=8a^Qk`0AMoLx@4ImaIOU*hzZ~>g)kw*cVfhVcW zo_;`M>|9z0lCBd8WdL=Z&YlSNn`NBGMx_<^b?^54^q5jT6#N5)NKRmD$7qBneIRT-bv9*}evmMqpHY(-htU`ez z*|cNMs>8?A9pV{J=<3~+Zc>v8UP^7fS+He%7Ywp?*23m|iOBvGBq89H>Br(HSLn23 zxN)We$zR(2><-(^BJaH%ZxVla|EPI+1U9Sn90??NcyDMeo(!w6(_!Y2UFW_&{!H#f zuKueL%Mq>bdt-}3Mpm~`i01+om6 z+UBo&ai-@(6ZNQzV`@we0oV4dF?f;@(>K?oHELAV;tCr=9(Yss9&!3BE)R4d;f|pe z)?lGtjSkH=KGfCs=T)FG^FXNs-}2WP=Z$ybc;7Wn)Ui3&C2M@z2?*0be<;no?=^OGpi?%)Z&&i&K{sUXDYq{rQ8N6X(u) zrvR-id>aVkzt>dl;{8WZ2r!5e6bBq5YaRNbKK~J@zI0N{<{Ro^s5``<)V8*JC${W- zXg<_}MzI zC=Cfuf237~KJypCqJ8}o4FD9@g*Y8F_%U5J{NCwaY|KGjZ&wO_p?*GTi9c6iDs|vN zqD$|UE4OND{$9)%Oyb_KfBBM1l4M}GnIBut?p?5^*BWmy2QIk4D+oX-li=N- zucVIdW(nFe@2W*=rd;aoEBZWHQAX)#up`uI2}%G(vAjCDh9Hi_EZF7hLh9L+OWKBp z98l*4H(-Bjqs}vvEA-1WhygblYjP zGMX)ig$EVXmFY@mvrE(*Z~GENJGu+Oxa$gm0boR9rOzQ~kaxFa=SQP>g4PKcwcc-L z;12+<3#AeAk&nzr0^6Ln2@raS_60OT1AVMCdCEV_d=M}iV8;yUg#keE8`XrCuDQBs z1tahDm(A{j)&f*%5MVU?FY)Bn0d%>^Hpg*reVRPf_!B#k_wAP6b zP;4>#FcMnG64hfG#Ertokc;H7oy!h4Z+_Mg%^Aqc6V45Fm%0_WsPFp39ccBvk9OT| zKb_oFu*pF*bX-fZYjimD!3o%k6@Bl0H0R9cy<19*sap_{GabCnAua|F>wfN;Pqe$kaT$Ek=hZL#g8L(tQ4+*u zkQ=Z#A7*c6>27$tGud3YmRt2}GAq8e9=aD`Q^}P{b$%+DaRJhZZ3g$h+j6i|>7+`r zvmcOu$)r1;uCZ|()6L}j3JS7?v?6R7Ai@9F|KY)ATyAAxF!8!G&&A&ca7Q1mht+XS F_#fdIp#}f| literal 0 HcmV?d00001 diff --git a/assets/public/5ac2728593bb455250d11b848a0c36c6.png b/assets/public/5ac2728593bb455250d11b848a0c36c6.png deleted file mode 100644 index 9f137906bb118658aa801f164c17ba36018e8653..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4494 zcmeHL`8(9z`+tuaV`(fSGAO%DM1zWA7z{>b$&*U56m7F>-{|Si*SBjjZ@C1VEW4uZZj$aS zU-rBW=5}?DXISMu&yQ^;sg2qXy(|a%YnHOGvj$&#B@^OAlS}RfWR>o4!>^-I;|APS zR#?#H<*e@;*wPV79RB{WEG6#O6(A1g_WuSuJtQmdaoy0xhXlJ%;TRQEU`^00A<9j$ zd>*>ey%>o6Hlm#g0UPmz(0D@bLC&GX9VJ0j{^O#Ke*2t zV2};h>_sh;WtaStMq3$u$v(1tGbZh z?TQ@EBC5e}qGd16)5EAZs$TYq0TlOF=PSV5R3nPnOF529L{=U40#Gf>87XT*G~Joc z1x5Zi>n`xNLtSGB_%AVHU1$dmb_{17{FbpM6*snBXFDL+6^@>V$u|HOr+^Z@L?bxM zts*x5=*ubZ#~O}0GYfN<_tjLI_6gu9s*uI_6O?8nj{5B>!r_aNEuHiiVTbw$g>(+j zD&+XFWe8M>bf@^f`#Ue#({cdJY4(b_6p+^u_q7o3F+OEGV0XX^la=8}Y1ab8ExR<< zAH01V^GGdyt$bq$eQwYKCx1hC!VdwM*@an4*d?UKyic89j-0=V4B`=W1<+9$8wlmp zxA?H_MB9NqHTtgR)1ExqNGOiFH@#M@K;^SZ_33Xc*{Jm!5T)6qhP@z&Mv3^tpbJV` zJIn%?&!{=-71+y#NL*JfaBwOKCw^$Px}TuoB%q3HaXvb`V~!RQ6EKWNDGQt5(E_LE`T;34fP_VYm#%_PV?wnvq}5$uf; zrw{lyJJ=9kMLN$_C{4bVJj;gTsG`|4;ey%=z^ZS3vW!Fn(VPETA=(Y-sK-ke*vn8~ zRVkIJB&Ed$xm(;^Fq44d23jSJ;`$!GZYnam(k*B_8#1@_!gnA61E>7DJ%xTV9@p~g zNOZ;XRfAwF3sc7RhcVpw!X zz-!j=H;Lv_P*)*c9xE*S24Som)0at2nr+e#=fS9z9m`LIylcXV{D$)A=AdRfFH+u< zmMwn8q?39iS>#=JUXKyZ?{3+Gp z$z`Ycd66mPJ`jHFLu~lL?tG<{aU-?utOWHd0Ia+E z@TgntME&;RGZm_R3+`771~#+w=M z-$#_V0;iG&_~D_{F^(9!Cao}0G`muGCY^S7C`s4RL9VTV=oQK6h>b85f!dlR3QlDE zm!1Z8hA(8_{pnSr zeOITDr+_aDA3AeMeE|w28rT0su|u6VY0?Os046eJlp|eL%vDd+cfG+65;jKlET`6` zw3O2xm2hAsSx$7Ph(>G$#7_hi$PH)GC_&Q_Z**&w-(;I?nWi*bzIgiu0JeUZ!@d}- zlgm*Q#UGisjG4c)jm!HTv8?Z><&3umX-O=r-a;@gf~3yg%if^vL*S6w^|6;1ovVE6 z0iEEkc}`$S?LcnWXSsdOvtGm-O5%Y#ekn__CqK{b7V|=F-J_N?-5KLCIewCzH(&NU zTm?^)GbHlhS#86}Z;sy*$zoEsZ>5(jtp%7hp`+O!^L>Nr5dF?RyFKS;f1KzrSVh<+ zsGE|q89sU2q{;p|-d=Ls{QlNB2%6_LO|p6fyRs07pXxe(;}Wm7&92HPwF?cF%3djV zM<*+hWxvX?=4Y=0ieQ!4dSO0IB#M5Z>5HY5{khIz3qB8=oxOGwjezNN>52Y22q^s) zhfX1IcwQ&T30Zx9TEvAr&R3t-AfNi|YJ5{)+7oWU_l`wpD}^^bJs;Vr%a#5~8nl=qf~nYKQi3KVvVL=;PyoHmyqkn{_E%bqtuS@byH3ip z@w={x{~_~LzAn^M*_s8xf%DZabuGH=%X|omMw|THax}Sucf2H=-}-|$Der4s_^lJ# zjuDiN`{e^iekb(~Yq7E02#lyyo;+qu@REQ?V4Z__z4zAg7h7 ztP%~1XG44|r7wwERl$wFC>TGJlE?0ONo5}($%J0E?(U8LRUzqmI~?4-LkNn5wR^;0 zDgK{sC{!~A++{=e$2;B_mYw|z6v01vjs*^ZdB#HI^>ifjeyQ8!u^YdfAEyVYoYaR` zdLLmc9T}GWM_CJac*3tmZOJ&ax3}Z%&g;cnhRrP5wJ+_H_1h^Rjst>nF8=7$`kQ=-gl8s6=IYCMrP!^Z0OPCvgL&*#ImPm6Sv_Q}pq90e zu)JfbgmJGXJwL7i;HQqTOx=$g#(+J8VvxY?4A}$bfnOI^7AhSWs{}!KPRohPPSYRp zMi#@^O~vzuU*_8~FXZ_XXvx_94w}Eo54F z*_>0zowlSs&;nG@fwOf4pHS%n75g|wSi+)TQ3p%*wgpq(WnGRs0yX}F^!)fP@3(#t z`LoDHoA8`>0;iT%WUKVKNk`Vo?m^JV_}5?1wPYQ;bxAr&WAhj$3*@@KFN1wZBq9OS z2+3L^_S1l;iN{YtWwoVu*e-jmkV@Yb8pkbSu`&^YwkvV?n@|)2yJp`{I5#SllytH< zs_WVwRd%3($fLy)Y;rIHNA>frI`A>TM&3T;h+UAz{n1|1g*=NGLE2U&S4Vd}ksqEz z(9<1@$M>5*Pc1a{m>i3Nv2Ju203YE)N(?Po(O!QF*RMfAlGn#PNIl=wfF|c7W z=e!@EfsJK$40uM9=V+cOCXYbQNu=Ayvzq=UXgWES@fntB8uV9w|A(*?dImu;OQWgi z2DYoU%-Sp1m%|HqUCjT~`K*O)Ocq~pIqz_xQSxZ5@Z2B@a6AXFhMUM~Ru-PjtI9v@ z70NxJcI&APmS#H#v(%-?bq>r{8g%V$MSHF~NEEG8jZY2vO75ExI%#~@)CUzpW}Pb9 zx34BfO3U8cSu(70!`hIlXy2N8Yyy&c*oig)&oa9Q zc?Zhb1BbdsCTcKAfZepb>tz(}t$&rYzXlFA2qjMz1&U;_#|1a%AXW6NnfwoCagZFw zrEVS0-&}IlT^s6EU~c4AQrNoRbRcK{>%wF{GSUs0d-kdkGA;ZoDkxZ{bK*n;ny%C% z*#LCgf7U(L5I%eC)xb&4_z@%m2-iH;oiN&1IUzSDFy{Y>sdwjq7O){B#W3a6<#!C$ zMdw_T3tG@H1|w6oR=$#9n;qUP)y<}ja95JzGez+8sqO#>SY=qM!Y1MG+L?MsTTuWH z@G93h_>0hrG*d~hJYAp3-w5!(w1}N7&x#3pFU*-t3$b!R!EtD?I&zyVR-VmI4tm8( zEtX-$96&bZ$M7NVWX2BO5sxqxI>VKsD^bl56j6^kv8ZJKm1il9#f-)@KT!alQ+CLn z)w2Ba-k`7Oc%r^+sY-!339Mlbqn*$4S849m9Y@;V~ot4)`Jd&Acv_7u|q=DtC z0aB*6zwZ+Clmv%7(ae(Ley@&(V)fxV#}Qa<7`9JDr(5WeOyufq%vMQLqv61p;x+LT z)(o9DNs9_`9m(H9EF_RlI&caB?A`y*+B+`aB|}ruWzMmC-~$U_X=aTtGI5Ri4@3U` Ay8r+H diff --git a/assets/public/7213ab6677377974697dfdfbaf5f6a6f.png b/assets/public/7213ab6677377974697dfdfbaf5f6a6f.png new file mode 100644 index 0000000000000000000000000000000000000000..f1fa9f0bc6d78174ae6ec26f72f635133ec5f05d GIT binary patch literal 4199 zcmd^D`8U+<|9(%2QAxJ4WQ&wt)~F0U2-(M)HBWXDLX6C`NMuQhFf)>U-?zq4*0POd zn2Z>^Y%_KmW9B>0&)+}c^TT~!_c`}@LS?!P5W$a2OftSpfiu zxdj1WR%USuF7jj+_Q!?}ApoEt@!tYH&4+{mzK6 z+{COo!vZRWCo$UI=X!!(;H~bwwcz~B6~nD2{lP#UWIbZ=S@llS57Yy+-U#*78%F zN?XLa<<04o65!Lq>)QY@D-IwYumDO40Pva%_@;CM;5Pt(4lv-x4+73g{0|&{y0{PA zx9rK9H>SkNVl))sP!lr~8C1FVKD;-R=3>c1k|}!nm3v=lGCnI9|F^GInb7r-IQx^N zbTDCa!*+ak_I&}|e&p9qgw0!V&bqD}u?I=k9U^+AZw{ITf0J@{$@v%udF#+^Ndq)c;go94_+7vkzjdaS^}uVf0GY|at;5rw ztmX)qw%B{m{UF)}JDT`WeiY3QZ1EkpL9?^QGvG*{ks{(5P?2u%je>yW<%P1~?uGT# zTEU1X23;yq@KRSEP-D~@AWvFz=DWA}6_93rn_3AZQe z9>BN-wckN|6sa7?nA;RnnKTap#TYL%tgAAFjfG&S+_EM?n;B|QdJ{gXH625!0-@{ zv+;&6nUK>@UaIJ@y$htB$9IqZRd?-R3%(!XXJwWZ{&~$VibJ%&cv&O$dCN47{U7^F z_q^D*5E|%EQJnYD=#(jB8~n0udTdV1=dBUNV`c{6`leC%Gs;y2or+|nm zs1O7dkeo>P$V%?_K6Eo%@q5A8>mc!`LWWrTs*UWG)43?&i=3~+Z=qpccP6uYr4LHu zhPo{(`|E=OARnLXQ^GF#kH2cMMg(!+K7E}2;J!5HM-wt##|*nRBvq|t8>X7)?cWq z`$T)`vZVHm`uY>RL5NC{`V=Xrm~tVM)+)W2{GmhGoH$IyD5qqXZnFI=gI;hii}^8k znVaiy`YW=3FNj0*M=|APaRExd5lMD6X9`(<-Lm;NmZi+SSgw7|57kw(pX>7<^QEsd ztu==)uLm4irK?9N%T^YurP)wTFRd%Q&aZj1`?0*BKx4bc-qgw5~BNH}IM zEPAC~&+Uxx#HpAoH3-6T!)}ab62*JIuttzth#avSgG?^Ns)|oCsGa5$KjWA?H`4TP8^G(k0yfh4;J3an1R3Yg6zeNuL5d!aDi9U zqQnXZ8wt^5oyf+*oE{7w4%4c0<S6d= z)hfzIlfThIsm_!)bX;WVck}1z?s0NMgI)>wmHVo@dS+|d=;nnvq?)Lq&!KE{!_?pW z=AE0Lz)=!u-TF+C;!HQfS*nII9a9CPgUOF>ZPA{wf$SC6&TU2_4w z={ENF5Sek8i#szXAARDyZ@SbjBN=e|=HMPC$vUyVTrH`vsZn#SY?JCh*s}{HLT<>5M^E6M?)%1Wo8V7?{rlNhVn!@F+(Iw)O{jz7z+A)d zg{`W0nk+h2R9|&gKN?5HCEJ^z$5F9Ye+VuV2oHjJK^83ppVBOs&tX4>`;R|y>eR%b zn`67(FTVq-xcIxjUIm;$-uA)Qq$&yf3U1UX917^#huyuBsu!)6~Z+zq=^ZIK6 z<96B)>4iF@6zxGi#FE9n?=yIw*1_hWeW7e&Twv*w)-S%6 zd$&caWSZIUR#$A|+6>8?3!xYpRN&xAn_LA!m=3r_#I9Hg2P!g_a77RQ3OU6b6q^A% zo3Yh{(h|w5>K75~96^iG@;U1qiGO1x;CW>sv7TyM?z&wmB_;X3*rT@JO}U4N(xgV} z>Jj#XJ8HH|3_Ce`s1YzN{mUO15jO*pv{MNycRj729*e zNDoI{{jR5(gKLBk=c5^@!!X^ekekAP{L%)kpDgTe@iE$Rvynp!ZG2fuU;2cesaHZd zPhp}Yr8WHz&gn{#>IrKyn!Nsi%&3j zE`+#C;HJvpJn0<#z0cguzGQKx(i7=f5J>d`zY7O_4~n^QLP;XjV>4B|KANfyUFqLW zeO{}03Vw*S*fP;y+;U5|+mFoRc`kMG9aj91{hRM08&EP{6=)~%SlguDf`itHTsUW5 z?R0om>ePS}&_aIq2qY2{Q2M%FIHT}XY*mZgZINgfYuj+Qkq6Fnff%6f{M7`2zeVF! zGhpxZv&huF78|D%0@~CdI{qw5^x7P83!(g??va{WI{B&%opSgkp|F3-`YhdL?*jJ7 z`H3vBDj%Ys+;nLlF87^yDWx3XZ(Ti8Umcce;RsS{2(AwPDeU5WVD7EvIbBTP8DZD) z)}%|RU}8{A-FnVq9q}C_iu#_@KKypT7q$Gb2~8_i9t0jY;ZR(Zod45Z1@wa-`pei8X0)=bOtE|pkZim= zv)gt-^UGOSPu4PZRzV5=t+V2R1P}*y0{xNdP}GsDrSX4x%$-1(?{yR+-}vo+xF!pp zt=s_gW|eWBX`2$(eK^OJ(%YKiqQ~7wQ$rM!g#xh7c3+iW5Tn9%Hb+UWjF_MrZwAO2s#F_6%o}pw_#${qmC~v)V#el%xie z*s0%=N)nTWiupB?GKe%`Wr^`!&$G=&0b8C%rT;Bm0B3mK}q2 zx#@kIWYIBRTNtCuL~pY}#ShN3S60lAOm zB0-h17*Sjr}Oi^xx}3VXcgN-TxsW5T5<>=PjA{DhCs(auLC_B5G8* z5YW@y_N{mWk=lbiL0I7dkUG145LMDp{iVN2JbN9jT#Rhk+P zm6Jt+AH-q?gqCllj1lrq`VA;NkhY_3(>H0o_7V(FyVfb;PlQFuNjLheH5 zTIWfq7VO(}ApNa4aM2{Xu*mL_fK5bux5sB&;VF&cTJx$MoCI(&<5_-LdZ5S{{vd!Z zi64yjl8M}FxNdgB5dp|q+=33LK==uNy?$8`yYL6`k&ENkRT}@^XJ@83uA~S>iI8Vb zYn0w=LHep9w$DEno7jcUJ@-K|WMXOQ{{X&2un;RO#k`lK1HP|YZ!z{`zE%t7W}9Ez zzpfC&9Ph0>wYDrP@)Y|Ob)Fa3WY8tvw3rtLB3ai%94V1p2pdD!#p0uaJgvZ8zCQis zAlnNzeIuPrCkB_QjJtS-+i@rUJVL8U`fkSB+%^GY?4KyzJOFjSXJV$B9X3WSv7&o< zFrPuSBP)lPT#o@-UEZ9J_J*A-6_*!Z)oT(;hO&8E($0ea*Fxw257$+UliFhHY{mX8 SLCl{6z)0Urui}o|i~j>)J;D?K literal 0 HcmV?d00001 diff --git a/assets/public/823a3de61c4dc2415cc4dbc38fca4299.png b/assets/public/823a3de61c4dc2415cc4dbc38fca4299.png deleted file mode 100644 index 9b92bd2f36e3a6b9bc6dd2fd2e454480f8dbb180..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4380 zcmeHL_gmA+xBi4E!4L@|C95Uiw!+!DXmG0N@=o*1vu`IDc(wKS~UPV?j zNppmJDH&Viekrc(lyOm*iK>y{XI-_7f5NEWcKhKu8VJxS)0KB&gu?M_qEWO2+1YQ+ z1@A*wWL)R{TA}(98Sla%&y2)4u|`V&FGkhn>mpovdJwVUR&IWdJT=CzX&l=71X?wo zDm&H8i{Qj!U?g%Yr2RhdteX}w6~-(4@6gc5{|-%q#rcvi0T412d_Nj*KJ@E}+`;~im!WE2Au=X>{oLZVf#w{r1-(f*mKJa9eI zzi{&*(8@}r6GSot<4iQXD6_N*r;)_%q_gnebB8tAMQuViA26SnSb!H#6jp_X+DrTf zc2~IyCd@TvDb!_}($%Z8d8Y(8(cl>flff-yn0C#G zJ9KB;QJaR1emD}-XzA7XGpPy0r3Ba^IC&ERnLpZV{5MP+241^5FC-nEnlY1ID6O^n zb{dUU2h}OVh(F1!RFkvP3Mnotqlu_n0YPEQ8#w{H5Cj1I6yj%6;V6(t%ZmcYK3!cz zaWIoqunMDx+b1nr%WedA= z+-@;1z2xlMR&~jcXaWvYWS)27<8XJwFRsGf1OXi%%jNGZPDc)N=}s5oL4fiREg>Y@bBGZ=?Fdg1`pLrrvC$;5ucSEt z%0OIf*WQm^k{MP1j64LhRe+Y~)ZTZ4skom|7dL$?kShEDKmfx}c6zyP3PFO_HV)B- z3CY=i)FiL~Fgh16N!zyCkJe_0Wtqv1j?q`)O2C_m_y7xe`&UBCr4296z~2r*!?%_M z*&r)#QD1ugdf5K@Sj4cntjl04N06z%n>;FgEb@t(#_}xfg?|wRrp2~W5&(t5mbDlj(kE}Wcn$)?l-YKjTCg?WwI$*TD{*=(yWBL90&NTJrkpr??&m z;uXhl`>edg{XPAOgLO0(6Czp9tWlz!LX}QVirl_KUyag&p;OuS@G0r;plrNR;#-}M z-z7&elAw}!4B5#){?~}9SGeg!aA;~|8TL=fym4kwH0bk%st@GJl^?Mp#`&7_ z4<`~D{Y+YDK__47+#3o&rH8CLh4u0rJv3Bv0es_@Wb#pk-4seD#%pAYRA}k;!(*tY z`jK^X_8J&p%i2FsMWXs^SyRq{FLqv9SSK4lj?%7J`k`*>+_$KGv@M0Rt4FP@SPRwF z)qj6_oFW8HUpP3_39r#g1VeVr0z(2_Me98k^&JbQ)rHTW8_@_!@{8OM1gCf9=6Z&2 z`|t@VhT6fIQsXyh!^yZ{TD!9oU4%M(8B$lrGsK)H0&W*5cgo+J&6cJq_y@>UQYi`! zE-sXBx+aC9V@-qiH7m`nT#MT*h6aW_y8t)*pqWtN`mK_hUW2EF)6M^IFXDrb$8`J0 zXpt=2fF*_7ceYkhjxcmK+hUuVRGG9yTyoUrUxZ1`wfkTK(^~lQ<@Si7jlj?_otHTj z%*GE_0^J3uK|lSN(A&$ODjcAzTWAIF4!BGyh1Ch6K~$}0CxH3U1Qp1d z{qJzF;N>IlnEx@%rcJr&a}R~G-?9P)qMl0s zz{cPxL%#8Z;HfB-GH?#Tsq1H|^M3g{I8SYHc3;8ABksf9ge_kgiZT#`msE->NX&7RCN>2eWN);I zQ0`znP3C8qug8zi;y}Ezg5ch4gKDqG!pVZTCHEQW8A#hvZ}$fCvc9^pFE3c!T%OZ2 zL=lc+QFOI8jWnV-Dl2)I^ObMvf9EOVTAD$czLGKEbc|9EqmFl3*p`O~q){3s@%vTR ztyG>Kn5uH3(=V4vP6xO0CJS}(CdN_SXUdt8@Wb8977l0I@Glylfp}f0S6sdy*)N`P z`Yw7s^_=Lg53N>$MA+@wZUMy1*Zzr_glIb?w^VL;mbz&** zk?-v)SHSl>H)@Dfn>Y6gsgqp`Z$e>HoG5iz2K8E>i z{$V=vbZV)&1-@e==uf>m&KQ1nTnw47LlhkOfZY3^#V;NoQ+yn7NlE-j=9Ofz&Cxi} z=QGrTB$tuyaCuwak=?uN^lC3$?|c5h@XlB#DNgY|g?o=&NC)9;`X@dAZGt}j@GjKa zTBe23)^(rYK0!||-gu?e)2VWPvwDsmu6=+}<>wBVPH`JH3^9OeAx&JJ(;Y{%Yj z*W)ahdX-R9gIF9&D=re(;t2;DkUvXHF5-fw>l$8p7%2gFT~^?*qhK%o4>n!q_QIq$ z#51Gb%)|SCE$Yk<3FPp`buo+!J;>Bx=fu<5z%Q)LWu_4aO>Tjsxpv~74yuTUE0e(SYPO9YV@1Fd|Mg>t23Qk@ri5rRzV z_%E5YkIPZL^#ZxMUM+`DuKLet7O{E&%v=*TVBUA{qa>(SOvS>IuPax|#kN{paOGX| zjK}ttJK=Ci;s#$6Bc4rE;Llu4hLE%U) zhu#Z?VI}{#xn*vjpD^5|Y=X~-7-zVKI4+*`2-}rt#Cizc2UMTkI9+k~Y@30`M%KKv zsybzF2%dpyAySV$I{=Kc`%*;fy_*tjy0r~{+}vdoQp*cQGb%pxbrrN4hlgV2_T1z+ zvE2iV=iYs3YH_h`JG_ zJ=A02c7V)SS=;em4Tdf(@U%TykU`}r0si;uE6szDDVv+BgZTlCc29X+fMurReXp@qIpJpu?W9UR+8taCn{4 z`v|foqD{N(3dA80H1hOpN!xVyS63cX_jLe)&0h?`t3-OdO`fz;3*4v+Nx3z{=4SCe zO9bLGZ0E7rND5)hZ(q#P6EfTQXmt9F9-Hsv5=Ql5%U#tZ>4?^SkGTYmz7 z?VxCPPbXh%=|{4=SR1^mO^+c0F2X;M@egQRZkQ{n9MB7EPWWi24THI_uTs?D;kgz8JR^6MOI+H3gPsTup> zm)S+axAo$>F~f`aYh=S4*y8(Lv9JGf0iLu62*57+p~FOrZZDz(ruqpYh7l_C?izkR zV=rQ6ZYR~@<%PI?C Y85`u-fIly=zdHb912g?9UFVqp0N>i?kpKVy diff --git a/assets/public/9b0bb198936784c45c72833cc426cc55.png b/assets/public/9b0bb198936784c45c72833cc426cc55.png new file mode 100644 index 0000000000000000000000000000000000000000..367051ceb7bbfe748bf49f434ccee0b4832c52f7 GIT binary patch literal 4209 zcmeHLXIE3(7Cj+AsDcy;Eg&F8iu7Kkd!?v=pcDZwqF^XeLLd<2N)>}NQL1!8RTM-@ zr~)eWf}){=bObJ7C;{H~jrZ}rfABu+arW6~<&3@8nsd#W6K8E{%F4vY1VIq1xtY;b z2!eqr3}T=M7f1h64{%}hHFJ0XL2{zM2MklB7X(4q$Sd);D5Z?yJp5ETbjv4%rXXme9s&?0}zpAOhfBWX(jYbnuO2rv{9$aV6wEyrw ztD_@mZf*`ixdSmpMdxH>WLoF8Zbd}6Y!wc54SxH^YprAS#_aNCBQG!M*R{0+)ZlQE z5J5=qLr+hvNlI58l^Qnk^=pSmZT9|#s;cVX=;))aF5^V;gm4!9q)F_m?3=o}c5hY0 zky3eiIZ{BNb9~&9RwBWvtgNiGveMYu+1X4_OfVwG#+NgQ)Km`|}fF2FK0KhVtf z^zw@8z0I_|$icy3ZDT{5(Dm@`Ta~r-bz{%=F*kXnwSz+(x!$K^#`iDkc0)tM*!Xzo z%E~?3;sjZ3diKBS>Qs>|(GO0-LP9j+6B4$j+u)B0gc!fqV<{;qQPI)#ViFQAo>~?b z7MmFD$3OWuWm@?`QbcrhkK4%#nSGx3?p+KG)q4HGE zQE<>dwO&1jVWNmcVh#F&k`iYw?iVkyyxeb@gM^3a`}rwoYHB9s<_djTPft%5k&~0F zAU{?KL*%r1)Si`2)h`dIW#iz*UrvP?0P|79>mGX zd72#l#vSTUN=e}yT9*(LoBmRHGb1PG!}PRple3QzrG&@N&#$zstZlUXx@b%F+L|~0 zGz&{B?_@xWo+A@8^A&sh*yH2y$4{Po*l|k_o(w^#p~v+vUVJEisO2bcBmv%itDdYf z;o{^Z`0>-Hp^1sa{rwONir`&<3(vcEhp5m}<{38gZYaxO6%zQl-Jh+M@!~~$Ypedq z1u2l?-*t3waOhc;Y;T+KZAI6+ySp21<4oc7(_E^V>y8Q5?M0=f438c?T3TL?`%ZFo zlH=jy=TAG1pv6~I$bcx8R;f1!hbJ=PDU5x6eUj4BhCV(Q?Ck7p2wYsC=pR0qaB*>! zqUc)Nyfjo)im)tBZjj}Se}fHSQ;(OI_gyGOE;>3|UQ;tZJ6mv6G@IDeBmfHJ>Y&Xn z_f$8Nvk!^Cwj>3`fJ#|AJ3q;dIObJSQX+Qm^OXD@m#O9>qM~BED|sTJp~0(~DZ4@_ zF`|L{(lkz>>VA~YoZ;b#0Vs114@co}xQ|~?0qy|E&wWgjzO;zpjOl2DvhXnV$dxF& zHb6Q9Q&R*zJ^gf0W18d6RY%9iFJAE3SK9Sa1kdN3(&mNxKJ4r?8Wp9jEH0-1@#DwR z%1V2CJE%o~x&TPFfrm%2_#t!5=g*%@buu~3Sy~zMmlIh9Xv-@rS;3x{Ha21g7882H zADf7x$KOQ)aK?J;C1Zp)Z-dYs3?z@FqoeEj^r_nZB_V-GOiaAe_(m0+ zFD@=_?ECktI`LKVP`8-4xX8J4#=FQx55?z$!^01Qr*J$vIy&|@ZoD7-RbeOnA~Vyl zMfMr0!BMUXp&m_vtBc==I28Jg(#gpu2M1Vtne+$u3y4G}7u>Gx<*+>%PUhz@e>jM< zqwy`Rs9^CS9jRhNL!(+Y^n-#_b@!&DVkejl(md503smT*Gdz#@DKd8D-1X>*_Ssnx z5c#UEE@+mNkdR<#Xb6vwk5|sI=GW%lJ3->z-S#b#)6yOd=$#0Nii%>WdkWO>lau3{ z#>RB#rKJmIvyMYF1WutCw4-6_A_@vu>ZPHMviy9S{r&yD<&xZ*+S;gv1&`Auy)5)_ z(95>SKBO{~u^JLDDkdoAuP*Q#M>LVGkI*5g`$&AmoC99eZ5_HLFNWKLJ+Iz!0D*f8 zu{hAWuDl)58b;#3=Hp=ObcB~D2>2%76qmoRPOBbRb=#uqWj~Ifp+>-m^Bv`iXjuj4iirFZYe&;Fj))Ne*3JXcMD2NN`h*?RbW}J3V%Uk{86*;q@0{8 zEbZ055H!3{3nT5E*8sF>A&lgqWn_bRpr<=7P(EDvs7u0`S5gxib_ttJi~P?5t@uH4 z9v~CZ6oS@%{+tEfgy*}7Fgw2Y_QkNUFr(}5*4NfrHz+Pk&JQE?p=WYVniS52b}3m| zR!~1JEiIzym5bg`g3P;jaJHl+N&N7r-ogXJ?bp(9oXMNeYFsbwrt(qfA8* z1_MsUCMLT6-D@wPC!2V;jszw4y_3eG@aLU(fS&g0Qe(gwd{2&#k|L_g%l}AWJGpZ0 z+BG0`BLTViH97+kc%B<p$zOhkdV)1P50M9VO%heTzB1k;s%tm{9GDu5Hzu36m zE;?f=q6nRL_O2%8vFdA*SjYIK# zzK*T_8oDyq@pg6>t1?yMY{}?laT~IcIkw&>pIFNiy6lc-5T_Q#CniP%a$Le-z%wvrt%6wCv`Z{H2qw_1@d~W*Yg7(a_j{uNk_ zy^NW;`4t`d<2$m$zGii(PVJ}{Nf=vz=b=GV!ReRZSqtX{Y9`0VU#>Q5JG5t_W1 z?f2Ms3{n|?-+cc3`N!&KHQ&5Hk`(ATKiLa|cdO@z9vuW09a>pgv8{NNderi!rKRy* z4tW3R*#+qdy*z@C_YL;bkWN#EWeI0dQPIa=Q{TVy?T{*~s_g1ey1rzWQb1qEMB zrZ<(9F>-TrpFMFzqvgJn$tqeXAn;pVJT6NM>Gx+av{+^9lL>qH4ZYj5GW1cf-0%ab z9G%eUSFc{hY9j`2E4~D3eeT@3o{t|jDM5-#N?Sjkxwv_IvjA8d=-7+d0AC;}E87J+ zL}1{&(*=^Uh=ma(vh|_4G&z|gH8u6tpMTPQ`t->)ggv_L*6$)Z%3U8jj<&jV>EiwS zvXc=fxF*aNjhB~~>%K1#)8CK_iu(n!V@t?mJPq6244hI!_r#BGPKUl=C7QV{Ad<30B(TcCDB=%IX7Wm z{`)Be0e4l7ip=i>N-Kw2tfEtZCH<53M6Q2ss}yCR5FA- z1=~?jPUqfqs;jRz#x)lVdi(e!92^R< zpMf9@VCl+fvl0^%6B|OFh94{=H@ACaBy~l>>`s`jP;^X;E#W0thVU_LLPS(#KyhQ^ z&0U5|u`I3q{ihBN4r~YpnloFNnwpwCEXz3~@E2?xt>)q30oLR9!*r>@g%Z21O}rr} zucXBEv#m>jVy{rRJ_ZU33i92U)B%DbqDS2{H2T@YWnqMX)Zg74JUXP<5)AlOS64gM z)+$yMQaOd7>FJf~jg~`8H9}W@&k8UWV;Ur$d5lb+ s^AU`{r_E|6hJ@??fBcUej77jKQ%N*OncGD04FNJYwlu1`cW0$gKNQ-?)NyAW)WF1S{ zDqEt$Si&$E+t|&#)9>&5AG|+&Kj;48y1)0iuXC>JT=$)D$pS0LcZd%FAb8#sV+{a= za|r=FFwWrUSA3H*@cNkA`vY)F{%=8oU!sEm5Iue#V`vkcvoI1GY{SfLTkig7e$y}e zyc{oYYO2A-)F=p7kmnN;;hJYX`6@Y>Ed1}_fA6bD5qIC>s;**8RLUGo>p#B;YF4IJM*QCHsMjHn76GcPZ z#l>pZixCw;za5--^FIc}+Bwt{>|hCKLa8zh#zv<#bVI z)!Y&F`#9_5n2#_t<#U zbw=1&-;GQH#Pkv4+T}DfrH0@&Q)`zUD0~w`)=MnnT#2=m2BRg{$m*K z+%_>q+a=uU)3AB!3Ld$9w>wf92FVv*czk{^k!>_H*)8|B_S1OByT@fme8vy9?=9~$ zKGzz3je!kbz{BG@Ed&h25}h6S$g1d-zD29$ zXYq~0uzXp&{@6-{v#f+sQ|@5F*f+Y14Z)1=fO|eQgJgW}5)E59l`+{?6nL^^xxEsB z?pFhQKJ-tMx~$u=cBB04tyho-D}8cBFq#BE$%leua1aI ze*Q|b<==mO0-dyI2VU}=Tk%%P(1LF-Avb==SWWzL$c*Pe6D0{aTud|E%aFBj#aOnN z{p~|?zGr*3Kd(`VM3WwgE%SKRC0Y3%?i-bByBVw*qGVuhYdr4snVc{cBg;K89cp&L zod-7d=>*JeCTg4*sC=6E@+Ob@y}HuRZAx%?O`MksnX z6oY;IW!Uj@ugiyejlX>9s;|G)c*xc8kU<4fqu zTf(@`u3*08XPV!Dyg+-_8PS3#8%Uq!Opo6tTB$kxDOlR<7j3K8&jc^)$0(|S`ko8J zJ2_`@c{|`1MeP@kEl-tbP0GRIM4Y&BjRee2-asdGk^aaa+RJ`M=ZgVtLLTr6zmu zkR4)k7>Jq8x8$M+izn-5!n7twcPUNc(F&hPZA;Rye0co}?LyR--Y|(3?^?bBb{%}W z^?PJ`Z<4W+;~HvYaF$@r&Wuo2*PNei1#77%QDSb69Cds%9u<6M$bUd!Rx0}EE%~*z z2}5dncS-dT8eJ+1QCA6R=Veti-s|Z!S;}2{_@c4xPAS%Bi|Y?=8G8F8>$JtpDb&2# z+Mzt|`6em*B0P87tjT?)jL4H5zlef1ZXTGphF)OOg`8dyS985T>J{k1YRJ_X&a1`U z8CAP!K{BRw)TV9pCp8B7T8zc?i*A3NC=FkQj_l|LBbU6@KwR&IL{}TUKRiEucZT?2 zEb+c-8{t0gtN=&GF~cROmEAzt@qW!bI4wGoOZsz`%FHL%WJL7XH*U(K_9G~6u8}z_;|!F`@1@wWJ}1;*#sHPFj3P_ zBSZn<%pJ3w4q%k@ZgBLj)TDBOF#l_W@$p_rPn={^G1*!lcKqlHLL^R92KcL^_@7v8 z=f;@84Yq}ea;!pwUdY&is6Va!>FSv@@}=omUlJC8q5l@%w2bc;z78#d)V~3$g12CF zlk47xMIIKdhZ+2S@O1K?g!C`*q?{W+Y>iRM^DMSP>JXrPI+DTEoP)jjFW}s=3bMQL z!DdyrYg{3?1B}Dnenz<(puWUuhKu=G?42o{O_x5X+3=rkjU8Kvb8@tJjq>YCTyXui zXs_87gTrxA-tS!o@KyNgA?eghRSjm>p)SgG`+|cPF3`dPG$)9W16}NY zh4&~4QevSFq7jP+Vu_*q8V>fS-t8ykOTy#A+Sj*)3q6^PoLuoJnG`uzhfqMoJE&84 zT@Fn^Qu%py##wvZq0RZAVv6i#3a zC8WeXigYv4YD{Y9FMsL#ydm(E{llRh+1iFOtK+K{O-QJVjophNiBO&zyYhP@HGgj# z+-m=KXy?(j#=SBHkG!JDTw(Svrsme+D7mbdJ!+a@wxjc^r$!wM4UI4l`yJGZ-c{La zS<`B1`|af1FNOZW)T}qS0aW(g1yvg|KH*>U#A>g>cC&_lSUP3Ah)ftc`R4cV9>d){ zn>L5X9Z?6<0sGMNrr-B8LlZy2Sy>q5p1%Mk1>;1`aN}$W{@2uuKWBU)JxP26!(78t z{zCO;)8{F;5QjH0Y{#dRq!zuE{vg7;F0}pHk=o?S)dk%L;QVB-ie&FqjaU&5uG5*G)nrryJlj5^D{j_YcWRQyLp!91M^ zmCEL@0k>)+3|M<^l!0AR8+&}zT)aZo00X`}a9}Ee%e6^W8uLfXm>=p@m7-#Q>6HF+ zP?yVuo3hm0$ih|28mJE*4IO(R2lBU6Uef7P3TA_MlafL37@xscVj-UUc1Sd&@z|5N zcx@AukP+(gj#bW6Vo5;whj^YS+;dh+`9Dn40eQ;BiO-Kh%i8ZP;9rs~kJUbJ+QVR-U#;b_9~kC3O7hFmRFLA=gO$=*51ly1^PgF;3Ln zjI<)pri+9H>>(j%%Wx(_d5N z*IC#URKb?Yro}l4R=;Ibh|OLq!OcRCtKik5@g@gQ=VfdyEOAh!{`r1Zq&6>$LCpF7 zYQNXp7SRFuzbniZ#e&@*i(;wf3Npw|`vWtaI-&@aL57XS+ z>*tLA;B@%Yv_}8gE$jyHQE3M+@Q;&bX%P%w6p%MET7c)i(#}Ik$t7WF>GsahigVDi za~gu1DVbc-8Yax6Wp8xPa*l95(HT&;RHxgil2FbG=}iaJx!z2bld$;$;=fm-=R_Tk zAVI=(ef;VNa45E&IBKOIa{|K+Kr_eg^ts&QY1xb>uaR=Rz?FDjgZYKVVnnn$=Fb+I z(@N8iYiZF=4sk^v<{nj?AF0CG#a;}|=Fev~1VhBLO}}Twt0vdE0FV(Tb9#k1?u2)7 zW~6KdF+I&NStD=Qa$rw5UlJUXd5vhXea?aA3YXh(pf-cz-6TX)-~^Y*NcFz)z{7t# zrf*)C2oU-LWzi_;=1YyXV1~ILiH{Qu56eI5GAy+2o@eNyfb83%8 z4gx@PcrTRptXlU{O{-+>8}{c~TS7td5C8@{b#bXfKTGif)}|}jvLcA6*3mQbJLBdY zRhz7{S9dFi(~hUd3xS^S5BXImyzKO0A4|iV#4xy@#dv|KRyd$FY?myMh@sPOuRg{t z@IQO*Ipxm@L)@^jd>Y-mAn?cgHya;H5cm6NlwlJZ-j6(|rgsmbeUY=KJ@`dwj8v#Fro$%sX(M$>_82vSG**$^r_jFr=kx+uyw#IsHNteDB>^WiP`aSu9PL&wP6)0lM z6orkS2D=p~QR=!5CxMxS?O3#q?uaBfsUs%Rgu-4HQ5FT{SLSXGxQPfJM8l4XB}3%? gzy1#n<|84W57-Y4?tUHP{7C`lO)M~FMlLb`1Jsx1bpQYW literal 0 HcmV?d00001 diff --git a/assets/public/addd2f3268df46459e1d6012ad8e75bd.png b/assets/public/addd2f3268df46459e1d6012ad8e75bd.png deleted file mode 100644 index 62c599a7ac74890f7852146fbd8c1abbd008a277..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4511 zcmeHL`8$+<_rJ$jhGrOL8DyK0HCaQp8B4Y#q$D3gw(JsOER%hgq|65)ib{54iN?NE z_U%)4Vk8EI5ym{@dA{F&;<=t5&h_42_c`ajuXA4S*L5eFn;F8`_}KsefEgR?g>+^YTaT3?gO2f%U7QT{8GOp5t5a8*Ht_duQXt)m>?!8 zdO>Yn8CDG$fvx^i25Z4=KClk9o>^`j%;c3#k}Z%7&$r#Bh0i`r^F5A?J(zfJTTc#b za+OmML1vsL@QNU@2msmkKSQ=z5_l7GJolPiu}n#i$d|5oSHM|?KycXIr`0XG&IsV; z!r7iZ<_t$5A?{S&1`OE&z+okNQv&*NAQAp<_q*8GUU@*jV_Qrl<1g{=h5)jWf&O@+ zi(z5 zQi|n}ofcv81oD9W4CBy--TyDHKX`N;wQ=zznLItxp<|dmtC5)HKQrJC6oACH6W9xa zTle@+q6~1V)V1%>GhED;kI|lm?l%hq8EQ=>ysicA*i@tKHW3vBxTw7_=NelR)9!O8 z=)9VrrId(5^``aPBCsoFfE9xSRkoMH$>mz+@o69fFgr)*z-RYXps(T@W?7Xtb-$tV z4R@~+pgi&bvfC!g=sVHQwS2U9^x3aF43@Z=p6dKeeMEANQKS|4XF(042vS;Qh=#Uy zsa+Q@a3as3v<-QahTd4k!5!-{c=j8C1wQ`NeP2_K!!rX-5)(3ff+n4-1 zh>y5z6W=Ul;L#dS%-^ou%r5`PnSVwV3UuAPzozdjKEu;jwxzFRN)+fTQ*#6)pXJ*2 zAhk#r)VR4(+E+NBNG~sD%}Zzo^<+@NEfcex1k>H`My|1fc@P1!1Pu^G9^ld&$hI)* z&rSNC{SJjMxqYppmSUhNukhE7cE+&~8 zdQ8Jm=+B7NF!b1qXq*fw1V>to#c;{=UCPYBU-Dl4M$2%8wx^k`&cqu;+%(;W;1*GM z%)#teqpJ;4PyEHlApB_z#*K2|M%pr$M&j3cQ~+hieU=JBOvc`+k$Ga{-<1w0c_smt1TgxUiZB8~&0kB?K}*FUD(y3Yg5pDDw4b7U}LEvg<3#3?P7Nxg3L) zVr!#ju?z4z80?z@$Uj22lic7dW^p*_|+{khW~9N_W|{_`$`uAj0rk-rnG@3 zRP0ll zAT4QfUV3MiwZ6LQ`fAK=qS6T7zx&i9FC*~`yy}_6s!1r7t$$(|x72D};`j@^6}fw} zxTt0@oaG0rs=*<7GX#<*6o2nWqL=Hm0>GozCsrNc);6uxK}Pm5!X=^Qp-LlFZ+duM zI<2G_k@o`1w@l@lFWMsW_=2H0SQ=R3dF*Zt&|T2rDG(*QX`uQ$>3sDy&6MwTcVFft z7LtzNWXdkeQ3caL@K21Oq&kiHW9N|K_)c!Q^L*;tyxX$Ffi$4Ge+rdn!}jpBxkwS$ zbRKs8_$U$?zAeFf)i7vS%kO?;uj`9ff7=$$e&hTz-LS-olNX1~lc%E>2d!I`gY;D< z`IOii-JTm9jX zP3AF&13nFM$IP!$!avqKcXBNL^jtv_=SgMr&Pq|RqxDEpCC;dBDY#bZD`^VepVvt$DD}$2c+<4r#=a z4AF95Ww|47%L>e_(5%|5E+?w07x@Z;Q^{&Kx=r4kMG zc31hxdy~P(Au!#t4S3p6`GF-?62;i;Z$%rrtQ4ES zr-S~|uw!iRG!J$2Fg}1X!4baE6HL3(4m^dNiQC$n=&;*XZ`X=1qt%Y%{b2XyG^4+a zNo8maZtBwMWM9C;F^ym|Q*`25WPM%N|923hr-zfjOV0I+{Efs2cJAP-@tFjgb!mgY zj8$shPa%^$Dq5?FUhvIL;H`;CUGHxK$@#VFcMU`-!GkCbx7WK$$H4rC20(ky?=V!~ zVq)wBIGNPtMtun9jS8Gv`VIdqQ{79Y<|8#CgT4pvXywyCC;6wRBYQrf#iWl8HsIiy z9~ZGJyiRG!j)%^jLF0+%gsBB~a|Fk9XNv7Z7) zC)}{F(l6a8$~c@NJ+@PmUuRd8QZ_r@p#e&Mq&GIJx(hJMx{7M_lfFNA zL8og>ictUO{QCuA?YKqsas0;BPyApJ3zgIzije;Dh+)RtrrA9e5_hh@PDiV-mh_280Smkll&)A{A|jzkwICeg%HFnySQRr;OYu1*JK%qHlA2+{y0#=o6fOqqk-J0oprumt7{kf zc(rSV4sOi-qNOg|r6+X)5mI!d#9Cn@qK6RhW{XwhNGjm*4STeanRUzc)Tn0 zc-w$mPVMl47|)D`a81i#GlQd>m$&O8g&c3gQDgZk+-6HOqtiji1qyE;CkH0oG zn_vI|WAb0#zP&Ims9zZ_*WSNNm@MS%2H=3m`bIQy6FB;2XP&dSou;KL548UXqxY2I z{N`-D1C!ipMjQxkLOSGBei1_~5o*i1C|?rlU7^oI2gbC7oAi$+OZ%>z3xDCNKeH~ zs>3qRl#GR`0^riV4@x2F)CFP$wb&!6Dlt>&$`+okvtaX2y09heP&Cs%%n*L|2<|~O z%YG&_m1B|U0GOms$eXl1)V2zcY1Rrf*H|l{2-dXlWr;A0kW)Y@k1Rw@s}d^T2}I23 z?0b3?%=uQg2xh4*^L8U7LZYu3D(hB*yuRR=q7`GYjU8ZBD8h6_@XHsn)fPLYxSdMJ6R}ZBM)+o zfD!hM2uibERLDfkhHIAaOp;4?JY!z-GAOej)4ljta|E>cph02$o(z=D~ zqv%nV3qK6D)&{rj@H!+3eR1IIJtS(KkC2P asA!v19e0>|Nh$r03t)WNOut;$A?jZfA^@ZS diff --git a/assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png b/assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png deleted file mode 100644 index bd7afef2a8bc23feb6427fc452987c27cc73b64c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4251 zcmeHL`9GB1`#)ncwy{+*M5IU7YJ?)&2q9}Jl_g`JP?Iet%M21S8KL4qGn9BjCB+lQ zk}dlXF_opo9%CJb8S|OG-~ZzC`uuRc&iy*)y07bf&Us(&bDulK(cV&2SXLMSAZl%8 zejWe_?-2q7VZ6pIq{NTc2;H>05(>c4Lw^hsS!8kx00}#5bJGivc?+X~MES{>_T}+z zegEFpsET3c7iGyKDQ0|ayP$1aic%R@2Wsp}tg-~(S?^J^pw`V=%*{IocwCgSbIej- zJ8*h(uuwGEWnU06nD5bjQDG?<9I-!-npYXcber1hUR`UYU+-?aT9+2_M1PvQUAIyz zQ{ERno#XHKBsexKaFmd29&()lB0$%}riO&3Z7 z$&ZkoBV&o(NMLTGUlpNf00;fM55J=d&^`Z*ePJH(NrEW4e8BWVBvO2{7K}cMK~Zn- zSnKmC?zT~>+W7w$qQwYSNO>(_?lqeYQQWN|Dg%@%2Ga6W;t-%v`9kU;p!9$U8#J^8 z=1MZYlsPzfV0B8%>N$efKhTJ(zRs|?#q(VK>xgLcG)VS2E30Ok%L}CTw{1ag)rQg^ zRJcNIwKYv%gdf?1im_(UiUp&NKUfr>4AJEE{qY0^SVc2%kwJ*+#Xq9dYr+UnJqv+e zb@I!?Yy8cC7VxPP&3rG>q#@jf1Ly@~$HvWLL(VZ#O*wmO-p%E9NWmImqMO`O z8cs7#$R|J8xl=xLB1S7$V`xHGIeihm+pe7>ZntkR^BtT=f&xHPq&gex^>34o?6{5?Qo z($Y5&(mZ@SCrHEa$h_o)1sqJC|1K+FW^ndqS1CT#JY1*nq*FF#=;TA*B21pgx$?aI z!V!|&0``2PNh#%Oh7nr;0p64Y;+XrH_37h= z+wHJ&Z^LaU99(hUzOQum)iK{&3*x}qz+ywd`qut#Ef}H9Wh2n{!U^9q=uOp1_p9zP^aeplLI4I~>QUhSV#!oseo^zOPR4=* zGS9w0-!bQgcHgFAx+p(7vN&nrUy-Mt*L5cJ2u>mCRd5$>_QJD~tz#D*YiqI==qAUP z9F%F;uITlR(+D8)Ej}T<`Xc(qiPUlG>!%=lSN6Bug@KlL4pLfgsCgX$Cex|Y=XExO z+?f6{aDu3qW67!4#*%14&NN>bx%0-EZ!)mY<4&eHvnuRF_FyC4CI!D1p$0>#<|A~( z__J}y?l7ym#hv4Kt9&X47_5w{GpnF)$0m5UqhdMSk1TqQyB#FH!&_0}=*24tj*o_3 z=>(pXiMI*frAV~jC%yw_bLsNz-t2_sV;8ik(+#RQ!INY*Q@?F5N+fzvayJVZb4A3edjb!1f_b{`9?JY(2Y$!$dfsC~GO ztV2?XiA1AL8fn#a7rPb|l4w9jFLpYB1E-UT#|+k>|iLWMY5*1f5IepZkZ~~Jf0wNt+Dgi zA_T!$TKBwdOuJ@V)=~pPmheE2Ykajf8*|uVH3c!NHpX;Sp-QL6Fn#q~Mf3d^5j;Zs=^) zDF4GwlTxqIw0r9^cz`)TqU~ITXD-w{hbBNis&TI;zHdJGg{1PHm0Y9^CvtI8^Ty5{ z(H7$(DY9y^T&dI4&I0bF7YI2Mt~=#mjxm-wH1e42ST9DAUh%!_;va@I3{_i&>mJ_NOcq;?BWuJ#UN>SWt1iU04YRQN{J!eX zbzj|r*yp9@Z@k;|8{h3Bqw_?lpH&^b)3YTBMaP|kRSK*`Ej?zaquC-Ci8nO9jy)tJ zQQMP<`wc%WxDQ*v2pY79PrwgJZ!o!Jfx%d6vfai|+0mKcgH0r<=Lc2_=Ia(4G7wZ$IGG-^`QUZ6@v(zJ?wqsgXxp2M;JLi?8aMo)TPHH?ecxTcwAfRuk=N1D)%? zR?7_yVdUWbI6d-X8%`P|y$odCxT$r^gMYut4J>OhwZEc?Eg~t4@0s5j`TztcFA!E1 zs2%kW%Ju*L?TXf+#p<^G@_uF^<1^PBdbbFRi2d-B#?ufqw7WA;44{^Pj@6SqI;kr|Wv zgTD7uRLm~YG^69AX$uh4T9Fd}Nq$jSSCL)onx2~RsBJBRCjfS3uOk2AhaxA0hxJA_ zlP;D~i-ozB_EHk2w z?8nKOu`=EO<~X}gdY(~=_Q@5%y4$yJi-ZL^nn<7*$xq$N;}m&0(4Ti6B!xFz?%-Te zn4#{~4OMLXZE}a5UaSmnB$O;3^$LoRF&nz#qb7O#Hfb}-=oeV-nTZ>lIp%usnvNtSD(i6FpS@I>(*A`DbM%%anprGr85yY zM18MWuqt<$HJv)A=2x#kVZHmvd`ZJ02zeSo!H%O>T9(pw-+k4`y-pPo>Q%F4toQF+ zs{cej$*Ux(>Y9?EW9ZG#J4Q?Q7pX%hIj_lG7fC6Q*V9Um7mIS;FH}h(LvoV}NRg`d z*M=SO57I>c$XV=Y-)Obij0ytS5c!DX+tro(RNdzb-;^i!8yLdzBV8Ob!>%jrI{Gh< zO{Cq|C^MdvYij*t`aM9PNc?@tm}AQqci%ErVsv>+trsjgSB-bFVAxW{tZfJs-9fXo zxf~iJbm-*mrM4}`R;*ek)0nQiE>9MTWJ34hwBp(joKIzWiSo2Jiwi#WIvtzj!+5AUi>5uvBhQTpdOjYsI@3ge#q% zz8Sv+{5N6pP!zb`x74RV>OZyj(6?9rdXXgHgqzkjPgl0h0;;Z?_;lTN$*rCi#*!Vd3#RvbBD(*^`3`-+zORNs_A_RfDhLPwi66{s&R=C$c+RT4y<^!)-3cR86GIuhC zN1cSrQxN^0W9`M0S|FzT85Qagu6s(wJ1jPfVo*RCpISF^m*pKmh|%q`sx&yeQn>u7 zWR1xMtF%>Rc^7?{A_I=LWl$WT2_;Vo!j zH7!WWJWy&aaQ1s)ZdVyBGtN+s$aDjDZ1 z8RsaKLz8V8MREr=-=0Mf;4;1veb>xC3G?m?O@YDz=gsV7W@_TD?avmBzMOQt8Mv9A zfgaYPbt;OAX5j8Wd!Y39SxM?crC2kw2)J!Ksu~ytM!wFx2yf&^_=4gH@+by;K^2Qs zk7pz%7;4cx87PNZ*%!W)DcuX+--%-|O50Kh_M1poj5 diff --git a/assets/public/d9977836b82058bf2f74eebd50edc095.png b/assets/public/d9977836b82058bf2f74eebd50edc095.png new file mode 100644 index 0000000000000000000000000000000000000000..bb73cd99d47ec27d6a9f32b57a104ae711bf8b37 GIT binary patch literal 4503 zcmeHK`8(9_*T2UISzA6ua;*_R>9VC+%ZL$Xg%A|lIYh!Gkg zlYB)X6j>&+#MtL~_x$`k|H1c%`?}xfzV7$yI@h_+Ij`4Au`t7Ou?w>U0Jw~eFjfG- zpidZJV}Ulupl9yTb~M1qE*JoLslN*r_7oio0K(W9qkA>1aCtHkm$O+!S)&F&9=MhD z==}pAc{DG9eBxiBk5cwed}ty4&lBCskoHrsIGJfW3Fpbw<^-9}|6Tug44PJ8>zT@PqUxKg~E(RL(r2^H!oFhrSUqOu)|;n|4~% zos&0~Be!gOsj<%RD);W<;OrM8F^z;-*2rMRiPg7L;FCqf=rzGk3&ZgMVv#4~OVQo- zbzE+RaB*RhA#>h0wioqkKYYdB_{kG5f@ls!Fm<1LYk!87bjOwdyu*Xls$^&L{DQ>y zNdgT|j`!SXuv?-Oj4w&N}8pF%HrcVb4$wT7PYoWuP%Z>PL z7)XL)*ZjqH5?~AQ)@W-wo1&+c_s|IyHQn^fLEAE~G5oPO@x7BtkJ{ZjYydtAcE3ft+zwL>EjMWlG zb2xp5)og|B{w&o$v`P_Z<9vziCQc7?>BoSnILv|J8&hHHHCl(JU3gtZx0S7|2L*60VkmlZU~l=PJfcprrEiwgQUI=dl@i z?-=M~VN4{heke@e+ML4r%-4R3NOMAob@ogRd}-vtt-ZBOx!wi-IG@#qTO4UFdKsXq{UNwBdaM&2*nU~J~`TyKDdF5k*OCBUn9dJ%c$=tNLDz#sOC0u1!oZA--SgMfPdbdHMta579;)Q*< zi$P9soc2DLHl2MGTbaGN#7(~E0jxsph?HP7`L-Y-d%);Ob>>ba;CV{r5Qto3XPK5p zo;sbZk+8>g%$AdE>|QMX(_~RuN(z@gEd<$k>)x6B)P2#EnK+pG*(ozvMOj1DQqE+4 zH%$-#_ZHEu{D{e$8G4r_o{7LgyO8vEvnfAL5cb70rBL&m9J4dT-Gd3wNmz-VfqGeT zC@#IMXd4JN)$V=JDHlA{Ln0uSH*7H-cWX4RoeAyCF5?j=;7RjHH-S6M7XY4@?cHcG zY+8sAXJ-?lsP9Iid^Ev9ellB9 z18R)t%Ltd^y~`wq6H^KoK}dEal9NCy-$Z|Jk7A8QpK-{z=vP%rWBJOaA!i>ok3o%otYYW9?HjWn)-E1737__CVX7O? z{boMpXd;HbG=1|p>o-e9V}=!lyUW+#l2oC5JNMIOo8B$(%lOMqG~VL4(x&%Tjw$DU z{#99eFemv+cZQdBq;s0nBp}L^y9^x@gL2>a5fa@S(*VX3p5>i(q5LVY0&TFw$)NLK#bA&9HNk3^F zQJr~HD=?|tq@2l_xvS3b!KfBX_(QjQ;|Lj9U^a;(zs9BOB2W8bORK@^g^w!Ww!l$- zesEhso~sygOIhU)?aZu*5)8`SO;Laer-(|<59lbt>SVoP`UB{^3lfVo9i;R_634oekb+y4aRlOT9IT!BJx>*-9@={-?i<*T+8SU$ z+v=N_szHU&mCC@G%aQw6$)S9v!>EQ^30voQg$@Z25CQ=dehqOs;u1e^E*BWr4YvqZ zS@P&i$0?l4f98M0!>KwX3J{14lp6mnW-?r%!p4S`5uSJ3p~G{>_cpp|HS5I%Qi=0v zh`U#*H_F|XhlTV8h4~Sn)-g??WtQdqozkQ7_D8)jA-m>^SNNR5y;oS4f}J=FY!9+` zLn5;kF8V43lyxORRkx4{%6xZ?_yyu(9K4jduUsKG@Lr!U7VxGLEaN-O&u;ELJ+~ z)c{&Fse|WQ2)r=qot){TC_j(Z6+})3g3!f^OaFML)&2PY${a{Nb)npjDY~Vt80Q2K z#Yk8Sy>4xwF!4KW{W7Gu{@RA%a61=DDXLL8^)8#v5=J>||2%<3aw~Z>B)v4@E&w{X z`FkX6=_SO}-sy>^A0&!}o+&uK7rKayUB~!PHXsy3GqBZh{^#_uKGS_C4YXW0GkMty z`{&_#5=A2YvY3XnS4?I;gha{R3rW{OjvjVvL4TQC1y*MY5HWWuSCo2*(3AnS?6?)B zoa6ieEKIBuRuH{J()BP?I$K`~hYp_V&l7cE2hkVhNdb5H#=qE*^s>U1zo-?he^H0G zde4)vAEB;bRf8RBcd3C;rCj~}4Di1nLqr6fgHqblD|ZimUxwWJ04biK-E0vE(n{iOroFLOSRCH1o$7th|7bmB0f0$c4zHa~cIc|> zvdGHcnFxY6!vn%fLx+8I*aHv0dj|iGv@iPM-n_P?3l@_>Az#d%jVNQqszt1Zge?>G za%dKIau}r{yOae9!_wRM2np(R%H2aIEESz&Q21;PQWu* z7;QaJiZi`vGoj1mu%Hn7qZ^FamjbAhBS9Ftdht8(q`w}qJ#m4rFiNSq&wg^)Lcxln ztq0K#PMiKLzdynw6(-0OIU%%K(hAyd2fOeY;L@cWWK+go`a-i1r)$ULu@?MAZWee3 zj3@y-zCVI0s7qK2xwUW<>WXkVEZws!=iV&kw-m&-S>kQ+voqWo+rz&zG`C)@bgt*# zb%>u!6*|B1mE112r)o=l*uRzYeF7#o;jUg|l={SOxS B-10NTG;XnUJA|4_QejRJ ziiucm74jW2Ld!YKafb1`Jbw3I@q7Fpk6n*l`yAfab-fSI*L5wy(cW50LQw($Aa%mV z@-zSl*hK(wQTXL{^`$TT+H%FlYEKg%Coo$fDHG9$MScf`GofKmY zEc2by^T@(&2C(O!_2S=NPi4`+J$OClP;&0SzqlHzDV}Rv@ERB@h!;L^^30+*%?rfa z!zSzlTVTcc*VbGV5`W#c{5t^~1{U^~|Gq-pNz#)oYdx9PPPInk@>X5SqMG5ULM8 zRR*Qn{xL0Xsc|arwA|v947W+u)-)N(t~@?vK2P+|x=W|iuMN=Ox#=a6x5|2g)RG{j zS(5ViOHPa0b)%-zbhqjli}htrU-v(w^X5WN=Ka{lxQJ!o-W{gEmBM1N7)8ao{}eSg z9utjzFDEYS>4HXbrH&mt_Ao2UjCUjJi>6N6UoYjOfrF6FALH8y7RNe`+-k|&GW6Wd zconvJ4_@X2cNE||8DKvC`t@Av>F3e;XE%ke8iHT0=jd)9mY1uv0*B|rLe2po8XfVP z!Pu2zBMiqKt#iulz&~}A4a40*sH>~f3ZYw;mX<6B?l*z^ z!EQCzx0qb+(UmYoZ5OpK|;i#Yksc^ z;=VpgMn+vRNllhJ;_$6Z_dol0ICRY&5RFc~#t={_6s&8f0qWA_%j8NL(GWcE8ynN6 z6B*OrgQM7$DXqhfuL$NYZEYBE+P2f^^XJc`tNjBPFn5>#j?#lBBq)vIlt!9hNeoxF zzA9Md(TYa>P+-qN6O+-FySwx{jY=5|YHqH2Ti3z?QM_D>Nlw+s$jFtc-h&PsM9kgW zk00+WeY;L;2HI*0hxNVly*LhHojBvzv8Z9g>y;eacb5zlZVPu;=7Aua=4?{^y zlPfj38-W|&f(6(lgzP^?C*R*%MF$23(p0t%)P`^O@$sQ~EFp0oE1b6*8KkX_s;y=B zZ8W%R{A&&tYcPHfv$GrHB)6NpcBZusmz0-t_%)GCb>L;!X{nY{-`ks&uir2>J>C56 z+k^b>HTOmG&IHStjPQ~Tl-JZu@LjK<(P#rh!=dr4dgeSVAao5qyzb^4>wRqOSL1ub@K`kvcbm+dZbJs4P z@Nm~(e_AlMBilbrESh=LMI@Xn_6V!1d=XG}V-oG_=Z7V-D;SKn;EiBUU`D7o-_+Zy zXl!h3PIT=wx<{q@goJd=PYUQ(xd`{}Q$?Tm;=tv&h@N1jlL5qfylapfsEA?|bo1Iu)eW#D?KAaF2ORj|2Ib`qZLN_ zW%s1*sJ}G|ucV#PN?KjoS6NvZ5#r|>9IUT`i-^xQ3DyZ~n0e!@+bkbtk$~VDww67a zG=st74mFAq&A;{b_a{+gc6pP@=lMIL0Q3v=gZaY7iHQx7al2|a=>$umSA>5|^h_LH zt#__d!>t*mRaNoh;{mMPM^Gnce$*b@pGm;lGChHU!AW@~C8at6mwNA>XF$M~4u8U; zwpQOsTvt~YGW#tl9IMR*t~;DR>MC3M>gzGc!0g(+3DwNAUM=re2cOt!sV*0kC4)XxMpHtmET*2-%-YQ|zkH85KQ` z_hW3CD5!gh+x73;=cmn(G(?c?Lo2JRrElKcX=ypJu(-&dUPqoQ|Ne1h1xC86_;T{Z zbrfDKn?`G1TQfiU^nS1k2b<`HaV8S2bA2Dzl}zWr@>3|qvHK1 zcTOIL+%7???-P#R&Ki%2IMGVF!c~EYANEI z!o1o__S>T%;q2lUAqo|(RvDD@NPH5C(cqveeAobs zO`4sZtvpl^h2|~#Qg>O56xHIGK--&b45w;fWON6rgPnte&-LqsMdytKj_FI*MJOSI zOZ`DH2uBTNX-;oNV7#RoMp>DF{Tek=_w!OvP?8d}XZTR|C z8e+TZMrgJdP~c7;;9KN&_&-vfo99KYdV#V0ZHdRtZ>=c2BK&oD`OO~D=*Wj0Q?1p- z?Ghr9%WMo1Z}I%}tHH&|?w-Cr%iNAZ3ge3*Sm=k)gq0iuHEv*aXAI&=@FpIcydlqC zIu*QTJ|)H@o9(uB`#!sL>1Yd`t0ED}$=qAUh=7M3?@V;y_3B5NXL?2!Rj$aK@A zTsKRy(}X35WO3RL`2ca?SmcyqpTCJNsD3-c??7EH=$?ekiKS0MY`!nlLLpTNF#kV% zKwNjH&?li9zqVEr!2qw#WSCil7Rj}Avc~CngzU5PML)S**-Sgp8v6VNW#MSVn15wZ zu2aENM{Uo*K*{Xv?6o9^94}x7CGKd&`Qv&Sn`qmgd2b@+Q~ss|W@(}t@ukj|#@S6H zBbrcECQ3hzVxo;9HsK9eW7E@mkc4n+_2t0ILO;C2F_qSBjq$>K8ot_oW9Q++hx^Fc zkrK$kYssAY5apiAB;WD`+q@V!&7z`x1f6Xx&Z%r45b+6nCfEfH_X7V6@BiP8d-b@c z;4~__%}7y7A@Mjo9{jp`==b#WGlC8R=nr-1!`$h*SmCIPPH7v39|zpp7hiZH$ypOt zHIqR_Q*>K5S5)n0h09?M4ef@<4ru*+5!$ZPoZl`Vb{nxAcZq%Xf(s;Zk(1;iS?~)< z)K+lRN%O=sw;T*_G+6f1%ELq-a84IF*=g@FI8KWTwdi{h5V^GbvT?R44%a+8Yk09j zantQ4HLJt|)=$dg2nxb Date: Wed, 10 Jul 2024 05:08:11 +0200 Subject: [PATCH 22/30] Add /policies/instance/connections --- .../routes/policies/instance/connections.ts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/api/routes/policies/instance/connections.ts diff --git a/src/api/routes/policies/instance/connections.ts b/src/api/routes/policies/instance/connections.ts new file mode 100644 index 000000000..dc5578533 --- /dev/null +++ b/src/api/routes/policies/instance/connections.ts @@ -0,0 +1,45 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { route } from "@spacebar/api"; +import { ConnectionConfig } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +const router = Router(); + +router.get( + "/", + route({ + responses: { + 200: { + body: "APILimitsConfiguration", + }, + }, + }), + async (req: Request, res: Response) => { + const config = ConnectionConfig.get(); + + Object.keys(config).forEach((key) => { + delete config[key].clientId; + delete config[key].clientSecret; + }); + + res.json(config); + }, +); + +export default router; From d56ba868519c673c59bb7074af0c595f4fe5cb47 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 13 Jul 2024 06:09:07 +0200 Subject: [PATCH 23/30] Update schema & add response type --- assets/openapi.json | 24 +- assets/schemas.json | 5422 ++++++++++++++--- .../routes/policies/instance/connections.ts | 2 +- src/util/schemas/responses/TypedResponses.ts | 10 +- 4 files changed, 4719 insertions(+), 739 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 0a211d3c3..a6f5d962c 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -2360,10 +2360,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Poll" - } + "$ref": "#/components/schemas/Poll" }, "id": { "type": "string" @@ -10326,6 +10323,25 @@ ] } }, + "/policies/instance/connections/": { + "get": { + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIConnectionsConfiguration" + } + } + } + } + }, + "tags": [ + "policies" + ] + } + }, "/ping/": { "get": { "responses": { diff --git a/assets/schemas.json b/assets/schemas.json index a77f86b67..c5a5bedd0 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -2506,10 +2506,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -6879,10 +6876,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -11252,10 +11246,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -15620,10 +15611,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -20024,10 +20012,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -24397,10 +24382,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -28761,10 +28743,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -33128,10 +33107,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -37504,10 +37480,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -41868,10 +41841,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -46232,10 +46202,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -50615,10 +50582,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -54982,10 +54946,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -59409,10 +59370,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -63795,10 +63753,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -68322,10 +68277,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -72707,10 +72659,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -77102,10 +77051,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -81479,10 +81425,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -85862,10 +85805,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -90235,10 +90175,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -94596,10 +94533,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -99095,10 +99029,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -103447,10 +103378,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -107943,10 +107871,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -112307,10 +112232,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -116679,10 +116601,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -121044,10 +120963,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -125409,10 +125325,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -129809,10 +129722,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -134174,10 +134084,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -138538,10 +138445,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -142917,10 +142821,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -147285,10 +147186,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -151727,10 +151625,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -156091,10 +155986,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -160455,10 +160347,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -164816,10 +164705,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -169183,10 +169069,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -173560,10 +173443,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -177921,10 +177801,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -182331,10 +182208,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -186727,10 +186601,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -191088,10 +190959,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -195474,10 +195342,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -199955,10 +199820,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -204315,10 +204177,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -208714,10 +208573,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -213101,10 +212957,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -217540,10 +217393,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -221901,10 +221751,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -226270,10 +226117,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -230629,10 +230473,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -234994,10 +234835,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -239359,10 +239197,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -243724,10 +243559,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -248121,10 +247953,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -252490,10 +252319,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -256849,10 +256675,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -261214,10 +261037,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -265590,10 +265410,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -269980,10 +269797,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -274341,10 +274155,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -278705,10 +278516,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -283098,10 +282906,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -287459,10 +287264,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -291899,10 +291701,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -296267,10 +296066,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -300628,10 +300424,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -304989,10 +304782,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -309357,10 +309147,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -313722,10 +313509,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -318083,10 +317867,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -322519,10 +322300,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -326891,10 +326669,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -331264,10 +331039,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -335687,10 +335459,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -340069,10 +339838,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -344457,10 +344223,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -348839,10 +348602,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -353200,10 +352960,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -357589,10 +357346,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -361990,10 +361744,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -366345,10 +366096,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -370710,10 +370458,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -375071,10 +374816,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -379439,10 +379181,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -384011,10 +383750,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -388363,10 +388099,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -392809,10 +392542,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -397164,10 +396894,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -401519,10 +401246,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -405874,10 +405598,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -410323,10 +410044,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -414676,10 +414394,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -419029,10 +418744,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -423382,10 +423094,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -427737,10 +427446,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -432092,10 +431798,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -436447,10 +436150,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -440802,10 +440502,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -445157,10 +444854,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -449576,10 +449270,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -453931,10 +453622,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -458286,10 +457974,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -462641,10 +462326,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -467043,10 +466725,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -471634,10 +471313,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -475989,10 +475665,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -480344,10 +480017,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -484699,10 +484369,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -489054,10 +488721,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -493435,10 +493099,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -497790,10 +497451,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -500002,32 +499660,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UpdatesResponse": { + "APIConnectionsConfiguration": { "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pub_date": { - "type": "string" - }, - "url": { - "type": "string" - }, - "notes": { - "type": [ - "null", - "string" - ] - } - }, "additionalProperties": false, - "required": [ - "name", - "notes", - "pub_date", - "url" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -502166,10 +501801,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -504378,24 +504010,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteResponse": { + "UpdatesResponse": { "type": "object", "properties": { - "note": { + "name": { "type": "string" }, - "note_user_id": { + "pub_date": { "type": "string" }, - "user_id": { + "url": { "type": "string" + }, + "notes": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "note", - "note_user_id", - "user_id" + "name", + "notes", + "pub_date", + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -506535,10 +506174,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -508747,136 +508383,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileResponse": { + "UserNoteResponse": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/PublicUser" - }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - }, - "premium_type": { - "type": "integer" - }, - "profile_themes_experiment_bucket": { - "type": "integer" - }, - "user_profile": { - "$ref": "#/definitions/UserProfile" + "note": { + "type": "string" }, - "guild_member": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "deaf", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ] + "note_user_id": { + "type": "string" }, - "guild_member_profile": { - "additionalProperties": false, - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "accent_color": { - "type": "null" - } - }, - "required": [ - "accent_color", - "banner", - "bio", - "guild_id" - ] + "user_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" + "note", + "note_user_id", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -511016,10 +510540,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -513228,35 +512749,137 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" + "UserProfileResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/PublicUser" + }, + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" + }, + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] } }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/definitions/UserProfile" + }, + "guild_member": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "deaf", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" + ] + }, + "guild_member_profile": { + "additionalProperties": false, + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "accent_color": { + "type": "null" + } + }, + "required": [ + "accent_color", + "banner", + "bio", + "guild_id" + ] + } }, + "additionalProperties": false, + "required": [ + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -515395,10 +515018,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -517607,29 +517227,35 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationshipsResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "nickname": { - "type": "null" + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } }, - "user": { - "$ref": "#/definitions/PublicUser" - } + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] }, - "additionalProperties": false, - "required": [ - "id", - "nickname", - "type", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -519768,10 +519394,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -521980,20 +521603,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnCreateResponse": { + "UserRelationshipsResponse": { "type": "object", "properties": { - "name": { - "type": "string" - }, "id": { "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/definitions/PublicUser" } }, "additionalProperties": false, "required": [ "id", - "name" + "nickname", + "type", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -524133,10 +523764,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -526345,20 +525973,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateResponse": { + "WebAuthnCreateResponse": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/User" + "name": { + "type": "string" }, - "hook": { - "$ref": "#/definitions/Webhook" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "hook", - "user" + "id", + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -528498,10 +528126,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -530710,8 +530335,21 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ActivitySchema": { - "$ref": "#/definitions/ActivitySchema", + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "hook": { + "$ref": "#/definitions/Webhook" + } + }, + "additionalProperties": false, + "required": [ + "hook", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -532850,11 +532488,4357 @@ } }, "poll": { + "$ref": "#/definitions/Poll" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ActivitySchema": { + "$ref": "#/definitions/ActivitySchema", + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { "type": "array", "items": { - "$ref": "#/definitions/Poll" + "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -537217,10 +541201,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -541581,10 +545562,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -545960,10 +549938,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -550343,10 +554318,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -554705,10 +558677,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -559066,10 +563035,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -563427,10 +567393,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" @@ -567794,10 +571757,7 @@ } }, "poll": { - "type": "array", - "items": { - "$ref": "#/definitions/Poll" - } + "$ref": "#/definitions/Poll" }, "id": { "type": "string" diff --git a/src/api/routes/policies/instance/connections.ts b/src/api/routes/policies/instance/connections.ts index dc5578533..37c20a379 100644 --- a/src/api/routes/policies/instance/connections.ts +++ b/src/api/routes/policies/instance/connections.ts @@ -26,7 +26,7 @@ router.get( route({ responses: { 200: { - body: "APILimitsConfiguration", + body: "APIConnectionsConfiguration", }, }, }), diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index fa169c253..140678443 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -104,3 +104,7 @@ export type APIGuildVoiceRegion = GuildVoiceRegion[]; export type APILimitsConfiguration = LimitsConfiguration; export type APIStickerPackArray = StickerPack[]; + +export type APIConnectionsConfiguration = Record; From bbaef373f95854ebde96296e764c5d7af9aa8e0a Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 13 Jul 2024 06:09:56 +0200 Subject: [PATCH 24/30] Run prettier .-. --- src/util/schemas/responses/TypedResponses.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index 140678443..8214ff7b2 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -105,6 +105,9 @@ export type APILimitsConfiguration = LimitsConfiguration; export type APIStickerPackArray = StickerPack[]; -export type APIConnectionsConfiguration = Record; +export type APIConnectionsConfiguration = Record< + string, + { + enabled: boolean; + } +>; From c4469a53e75c9e8d95fed46437646b8df4c71ae7 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 13 Jul 2024 06:45:06 +0200 Subject: [PATCH 25/30] Move route to api/connections --- assets/openapi.json | 46 +++++++++++-------- .../connections.ts => connections/index.ts} | 0 2 files changed, 27 insertions(+), 19 deletions(-) rename src/api/routes/{policies/instance/connections.ts => connections/index.ts} (100%) diff --git a/assets/openapi.json b/assets/openapi.json index a6f5d962c..2788cdb08 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -7848,6 +7848,9 @@ "$ref": "#/components/schemas/StickerPack" } }, + "APIConnectionsConfiguration": { + "type": "object" + }, "UpdatesResponse": { "type": "object", "properties": { @@ -10323,25 +10326,6 @@ ] } }, - "/policies/instance/connections/": { - "get": { - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIConnectionsConfiguration" - } - } - } - } - }, - "tags": [ - "policies" - ] - } - }, "/ping/": { "get": { "responses": { @@ -14559,6 +14543,30 @@ ] } }, + "/connections/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIConnectionsConfiguration" + } + } + } + } + }, + "tags": [ + "connections" + ] + } + }, "/connections/{connection_name}/callback/": { "post": { "security": [ diff --git a/src/api/routes/policies/instance/connections.ts b/src/api/routes/connections/index.ts similarity index 100% rename from src/api/routes/policies/instance/connections.ts rename to src/api/routes/connections/index.ts From 0096938d363fdb9c9b5dd929f6f07a7dc9a5c87b Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:58:04 +0200 Subject: [PATCH 26/30] Support proper "animated" property for emojis --- src/api/routes/guilds/#guild_id/emojis.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index ef28f989a..649a748e5 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -132,7 +132,7 @@ router.post( require_colons: body.require_colons ?? undefined, // schema allows nulls, db does not user: user, managed: false, - animated: false, // TODO: Add support animated emojis + animated: body.image.split(":")[1].split(";")[0] == "image/gif", available: true, roles: [], }).save(); From 2f679fda5dd66999fb4f0246a73bf662aa13fd2e Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Tue, 16 Jul 2024 17:44:39 +0200 Subject: [PATCH 27/30] Support apng & webm --- src/api/routes/guilds/#guild_id/emojis.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index 649a748e5..f3f0fd8bf 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.ts @@ -125,6 +125,7 @@ router.post( const user = await User.findOneOrFail({ where: { id: req.user_id } }); body.image = (await handleFile(`/emojis/${id}`, body.image)) as string; + const mimeType = body.image.split(":")[1].split(";")[0]; const emoji = await Emoji.create({ id: id, guild_id: guild_id, @@ -132,7 +133,10 @@ router.post( require_colons: body.require_colons ?? undefined, // schema allows nulls, db does not user: user, managed: false, - animated: body.image.split(":")[1].split(";")[0] == "image/gif", + animated: + mimeType == "image/gif" || + mimeType == "image/apng" || + mimeType == "video/webm", available: true, roles: [], }).save(); From 01ca7b77360c1ead0961815b2c73bbe091c3e06e Mon Sep 17 00:00:00 2001 From: Cyber Date: Wed, 10 Jul 2024 20:03:30 +0200 Subject: [PATCH 28/30] feat: badges --- src/api/routes/users/#id/profile.ts | 5 +++ src/util/dtos/UserDTO.ts | 2 ++ src/util/entities/Badge.ts | 35 +++++++++++++++++++ src/util/entities/User.ts | 4 +++ src/util/entities/index.ts | 1 + .../migration/mariadb/1720628601997-badges.ts | 21 +++++++++++ .../migration/mysql/1720628601997-badges.ts | 21 +++++++++++ .../postgres/1720628601997-badges.ts | 16 +++++++++ .../schemas/responses/UserProfileResponse.ts | 2 ++ 9 files changed, 107 insertions(+) create mode 100644 src/util/entities/Badge.ts create mode 100644 src/util/migration/mariadb/1720628601997-badges.ts create mode 100644 src/util/migration/mysql/1720628601997-badges.ts create mode 100644 src/util/migration/postgres/1720628601997-badges.ts diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index eecec0f35..db0922d68 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -18,6 +18,7 @@ import { route } from "@spacebar/api"; import { + Badge, Member, PrivateUserProjection, User, @@ -98,6 +99,9 @@ router.get( bio: guild_member?.bio || "", guild_id, }; + + const badges = await Badge.find(); + res.json({ connected_accounts: user.connected_accounts.filter( (x) => x.visibility != 0, @@ -111,6 +115,7 @@ router.get( user_profile: userProfile, guild_member: guild_member?.toPublicMember(), guild_member_profile: guild_id && guildMemberProfile, + badges: badges.filter((x) => user.badge_ids?.includes(x.id)), }); }, ); diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index a24c8d960..17e4435f0 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -24,6 +24,7 @@ export class MinimalPublicUserDTO { id: string; public_flags: number; username: string; + badge_ids?: string[] | null; constructor(user: User) { this.avatar = user.avatar; @@ -31,5 +32,6 @@ export class MinimalPublicUserDTO { this.id = user.id; this.public_flags = user.public_flags; this.username = user.username; + this.badge_ids = user.badge_ids; } } diff --git a/src/util/entities/Badge.ts b/src/util/entities/Badge.ts new file mode 100644 index 000000000..9535e207b --- /dev/null +++ b/src/util/entities/Badge.ts @@ -0,0 +1,35 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Column, Entity } from "typeorm"; +import { BaseClassWithoutId } from "./BaseClass"; + +@Entity("badges") +export class Badge extends BaseClassWithoutId { + @Column({ primary: true }) + id: string; + + @Column() + description: string; + + @Column() + icon: string; + + @Column({ nullable: true }) + link?: string; +} diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c6582b00a..c929039ef 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -49,6 +49,7 @@ export enum PublicUserEnum { premium_type, theme_colors, pronouns, + badge_ids, } export type PublicUserKeys = keyof typeof PublicUserEnum; @@ -231,6 +232,9 @@ export class User extends BaseClass { @OneToMany(() => SecurityKey, (key: SecurityKey) => key.user) security_keys: SecurityKey[]; + @Column({ type: "simple-array", nullable: true }) + badge_ids?: string[]; + // TODO: I don't like this method? validate() { if (this.discriminator) { diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts index aa943dca7..b2356aa79 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts @@ -20,6 +20,7 @@ export * from "./Application"; export * from "./Attachment"; export * from "./AuditLog"; export * from "./BackupCodes"; +export * from "./Badge"; export * from "./Ban"; export * from "./BaseClass"; export * from "./Categories"; diff --git a/src/util/migration/mariadb/1720628601997-badges.ts b/src/util/migration/mariadb/1720628601997-badges.ts new file mode 100644 index 000000000..af298e42e --- /dev/null +++ b/src/util/migration/mariadb/1720628601997-badges.ts @@ -0,0 +1,21 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE \`badges\` (\`id\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`icon\` varchar(255) NOT NULL, \`link\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`, + ); + await queryRunner.query( + `ALTER TABLE \`users\` ADD \`badge_ids\` text NULL`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE \`users\` DROP COLUMN \`badge_ids\``, + ); + await queryRunner.query(`DROP TABLE \`badges\``); + } +} diff --git a/src/util/migration/mysql/1720628601997-badges.ts b/src/util/migration/mysql/1720628601997-badges.ts new file mode 100644 index 000000000..af298e42e --- /dev/null +++ b/src/util/migration/mysql/1720628601997-badges.ts @@ -0,0 +1,21 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE \`badges\` (\`id\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`icon\` varchar(255) NOT NULL, \`link\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`, + ); + await queryRunner.query( + `ALTER TABLE \`users\` ADD \`badge_ids\` text NULL`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE \`users\` DROP COLUMN \`badge_ids\``, + ); + await queryRunner.query(`DROP TABLE \`badges\``); + } +} diff --git a/src/util/migration/postgres/1720628601997-badges.ts b/src/util/migration/postgres/1720628601997-badges.ts new file mode 100644 index 000000000..f7b9958bf --- /dev/null +++ b/src/util/migration/postgres/1720628601997-badges.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE "badges" ("id" character varying NOT NULL, "description" character varying NOT NULL, "icon" character varying NOT NULL, "link" character varying, CONSTRAINT "PK_8a651318b8de577e8e217676466" PRIMARY KEY ("id"))`, + ); + await queryRunner.query(`ALTER TABLE "users" ADD "badge_ids" text`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "badge_ids"`); + } +} diff --git a/src/util/schemas/responses/UserProfileResponse.ts b/src/util/schemas/responses/UserProfileResponse.ts index 26e7e3bc3..7b63542e2 100644 --- a/src/util/schemas/responses/UserProfileResponse.ts +++ b/src/util/schemas/responses/UserProfileResponse.ts @@ -17,6 +17,7 @@ */ import { + Badge, Member, PublicConnectedAccount, PublicMember, @@ -52,4 +53,5 @@ export interface UserProfileResponse { user_profile: UserProfile; guild_member?: PublicMember; guild_member_profile?: PublicMemberProfile; + badges: Badge[]; } From df9153f5ba31af005607cd62db67dd4438a9ca7d Mon Sep 17 00:00:00 2001 From: Cyber Date: Wed, 10 Jul 2024 21:14:59 +0200 Subject: [PATCH 29/30] feat: badge-icons cdn route --- src/cdn/routes/badge-icons.ts | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/cdn/routes/badge-icons.ts diff --git a/src/cdn/routes/badge-icons.ts b/src/cdn/routes/badge-icons.ts new file mode 100644 index 000000000..04e96f2fa --- /dev/null +++ b/src/cdn/routes/badge-icons.ts @@ -0,0 +1,40 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Router, Response, Request } from "express"; +import { storage } from "../util/Storage"; +import FileType from "file-type"; +import { HTTPError } from "lambert-server"; + +const router = Router(); + +router.get("/:badge_id", async (req: Request, res: Response) => { + const { badge_id } = req.params; + const path = `badge-icons/${badge_id}`; + + const file = await storage.get(path); + if (!file) throw new HTTPError("not found", 404); + const type = await FileType.fromBuffer(file); + + res.set("Content-Type", type?.mime); + res.set("Cache-Control", "public, max-age=31536000, must-revalidate"); + + return res.send(file); +}); + +export default router; From d3ece937e6e6e476610fc1d7eae085727d01ec95 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 17 Jul 2024 12:31:09 +0200 Subject: [PATCH 30/30] Make channel ID optional when replying --- assets/schemas.json | 6309 ++++++++++++++++- .../#channel_id/messages/#message_id/index.ts | 9 +- src/api/util/handlers/Message.ts | 8 + src/util/schemas/MessageCreateSchema.ts | 2 +- 4 files changed, 6320 insertions(+), 8 deletions(-) diff --git a/assets/schemas.json b/assets/schemas.json index c5a5bedd0..00f86b360 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1771,6 +1771,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -3830,6 +3836,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -4295,6 +4307,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -4632,6 +4657,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -6141,6 +6189,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -8200,6 +8254,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -8665,6 +8725,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -9002,6 +9075,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -10511,6 +10607,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -12570,6 +12672,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -13035,6 +13143,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -13372,6 +13493,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -14876,6 +15020,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -16935,6 +17085,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -17400,6 +17556,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -17737,6 +17906,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -19277,6 +19469,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -21336,6 +21534,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -21801,6 +22005,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -22138,6 +22355,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -23647,6 +23887,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -25706,6 +25952,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -26171,6 +26423,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -26508,6 +26773,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -28008,6 +28296,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -30067,6 +30361,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -30532,6 +30832,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -30869,6 +31182,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -32372,6 +32708,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -34431,6 +34773,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -34896,6 +35244,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -35233,6 +35594,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -36745,6 +37129,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -38804,6 +39194,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -39269,6 +39665,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -39606,6 +40015,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -41106,6 +41538,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -43165,6 +43603,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -43630,6 +44074,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -43967,6 +44424,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -45467,6 +45947,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -47526,6 +48012,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -47991,6 +48483,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -48328,6 +48833,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -49847,6 +50375,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -51906,6 +52440,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -52371,6 +52911,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -52708,6 +53261,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -54211,6 +54787,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -56270,6 +56852,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -56735,6 +57323,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -57072,6 +57673,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -58635,6 +59259,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -60694,6 +61324,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -61159,6 +61795,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -61496,6 +62145,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -63018,6 +63690,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -65077,6 +65755,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -65542,6 +66226,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -65879,6 +66576,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -67542,6 +68262,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -69601,6 +70327,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -70066,6 +70798,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -70403,6 +71148,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -71924,6 +72692,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -73983,6 +74757,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -74448,6 +75228,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -74785,6 +75578,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -76316,6 +77132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -78375,6 +79197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -78840,6 +79668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -79177,6 +80018,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -80690,6 +81554,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -82749,6 +83619,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -83214,6 +84090,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -83551,6 +84440,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -85070,6 +85982,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -87129,6 +88047,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -87594,6 +88518,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -87931,6 +88868,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -89440,6 +90400,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -91499,6 +92465,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -91964,6 +92936,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -92301,6 +93286,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -93798,6 +94806,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -95857,6 +96871,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -96322,6 +97342,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -96659,6 +97692,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -96820,7 +97876,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -98294,6 +99349,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -100353,6 +101414,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -100818,6 +101885,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -101155,6 +102235,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -102643,6 +103746,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -104702,6 +105811,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -105167,6 +106282,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -105504,6 +106632,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -105674,7 +106825,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -107136,6 +108286,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -109195,6 +110351,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -109660,6 +110822,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -109997,6 +111172,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -111497,6 +112695,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -113556,6 +114760,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -114021,6 +115231,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -114358,6 +115581,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -115866,6 +117112,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -117925,6 +119177,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -118390,6 +119648,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -118727,6 +119998,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -120228,6 +121522,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -122287,6 +123587,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -122752,6 +124058,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -123089,6 +124408,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -124590,6 +125932,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -126649,6 +127997,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -127114,6 +128468,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -127451,6 +128818,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -128987,6 +130377,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -131046,6 +132442,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -131511,6 +132913,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -131848,6 +133263,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -133349,6 +134787,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -135408,6 +136852,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -135873,6 +137323,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -136210,6 +137673,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -137710,6 +139196,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -139769,6 +141261,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -140234,6 +141732,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -140571,6 +142082,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -142086,6 +143620,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -144145,6 +145685,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -144610,6 +146156,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -144947,6 +146506,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -146451,6 +148033,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -148510,6 +150098,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -148975,6 +150569,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -149312,6 +150919,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -150890,6 +152520,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -152949,6 +154585,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -153414,6 +155056,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -153751,6 +155406,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -155251,6 +156929,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -157310,6 +158994,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -157775,6 +159465,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -158112,6 +159815,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -159612,6 +161338,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -161671,6 +163403,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -162136,6 +163874,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -162473,6 +164224,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -163970,6 +165744,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -166029,6 +167809,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -166494,6 +168280,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -166831,6 +168630,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -168334,6 +170156,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -170393,6 +172221,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -170858,6 +172692,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -171195,6 +173042,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -172708,6 +174578,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -174767,6 +176643,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -175232,6 +177114,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -175569,6 +177464,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -177066,6 +178984,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -179125,6 +181049,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -179590,6 +181520,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -179927,6 +181870,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -181473,6 +183439,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -183532,6 +185504,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -183997,6 +185975,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -184334,6 +186325,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -185866,6 +187880,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -187925,6 +189945,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -188390,6 +190416,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -188727,6 +190766,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -190224,6 +192286,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -192283,6 +194351,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -192748,6 +194822,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -193085,6 +195172,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -194607,6 +196717,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -196666,6 +198782,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -197131,6 +199253,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -197468,6 +199603,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -199085,6 +201243,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -201144,6 +203308,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -201609,6 +203779,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -201946,6 +204129,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -203442,6 +205648,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -205501,6 +207713,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -205966,6 +208184,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -206303,6 +208534,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -207838,6 +210092,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -209897,6 +212157,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -210362,6 +212628,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -210699,6 +212978,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -212222,6 +214524,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -214281,6 +216589,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -214746,6 +217060,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -215083,6 +217410,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -216658,6 +219008,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -218717,6 +221073,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -219182,6 +221544,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -219519,6 +221894,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -221016,6 +223414,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -223075,6 +225479,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -223540,6 +225950,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -223877,6 +226300,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -225382,6 +227828,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -227441,6 +229893,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -227906,6 +230364,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -228243,6 +230714,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -229738,6 +232232,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -231797,6 +234297,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -232262,6 +234768,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -232599,6 +235118,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -234100,6 +236642,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -236159,6 +238707,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -236624,6 +239178,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -236961,6 +239528,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -238462,6 +241052,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -240521,6 +243117,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -240986,6 +243588,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -241323,6 +243938,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -242824,6 +245462,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -244883,6 +247527,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -245348,6 +247998,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -245685,6 +248348,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -247218,6 +249904,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -249277,6 +251969,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -249742,6 +252440,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -250079,6 +252790,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -251584,6 +254318,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -253643,6 +256383,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -254108,6 +256854,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -254445,6 +257204,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -255940,6 +258722,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -257999,6 +260787,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -258464,6 +261258,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -258801,6 +261608,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -260302,6 +263132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -262361,6 +265197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -262826,6 +265668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -263163,6 +266018,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -264675,6 +267553,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -266734,6 +269618,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -267199,6 +270089,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -267536,6 +270439,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -269062,6 +271988,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -271121,6 +274053,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -271586,6 +274524,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -271923,6 +274874,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -273420,6 +276394,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -275479,6 +278459,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -275944,6 +278930,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -276281,6 +279280,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -277781,6 +280803,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -279840,6 +282868,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -280305,6 +283339,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -280642,6 +283689,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -282171,6 +285241,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -284230,6 +287306,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -284695,6 +287777,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -285032,6 +288127,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -286529,6 +289647,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -288588,6 +291712,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -289053,6 +292183,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -289390,6 +292533,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -290966,6 +294132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -293025,6 +296197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -293490,6 +296668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -293827,6 +297018,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -295331,6 +298545,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -297390,6 +300610,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -297855,6 +301081,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -298192,6 +301431,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -299689,6 +302951,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -301748,6 +305016,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -302213,6 +305487,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -302550,6 +305837,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -304047,6 +307357,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -306106,6 +309422,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -306571,6 +309893,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -306908,6 +310243,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -308412,6 +311770,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -310471,6 +313835,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -310936,6 +314306,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -311273,6 +314656,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -312774,6 +316180,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -314833,6 +318245,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -315298,6 +318716,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -315635,6 +319066,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -317132,6 +320586,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -319191,6 +322651,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -319656,6 +323122,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -319993,6 +323472,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -321565,6 +325067,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -323624,6 +327132,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -324089,6 +327603,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -324426,6 +327953,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -325934,6 +329484,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -327993,6 +331549,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -328458,6 +332020,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -328795,6 +332370,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -330304,6 +333902,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -332363,6 +335967,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -332828,6 +336438,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -333165,6 +336788,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -334724,6 +338370,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -336783,6 +340435,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -337248,6 +340906,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -337585,6 +341256,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -339103,6 +342797,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -341162,6 +344862,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -341627,6 +345333,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -341964,6 +345683,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -343488,6 +347230,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -345547,6 +349295,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -346012,6 +349766,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -346349,6 +350116,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -347867,6 +351657,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -349926,6 +353722,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -350391,6 +354193,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -350728,6 +354543,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -352225,6 +356063,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -354284,6 +358128,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -354749,6 +358599,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -355086,6 +358949,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -356611,6 +360497,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -358670,6 +362562,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -359135,6 +363033,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -359472,6 +363383,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -361009,6 +364943,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -363068,6 +367008,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -363533,6 +367479,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -363870,6 +367829,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -365361,6 +369343,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -367420,6 +371408,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -367885,6 +371879,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -368222,6 +372229,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -369723,6 +373753,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -371782,6 +375818,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -372247,6 +376289,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -372584,6 +376639,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -374081,6 +378159,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -376140,6 +380224,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -376605,6 +380695,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -376942,6 +381045,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -378446,6 +382572,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -380505,6 +384637,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -380970,6 +385108,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -381307,6 +385458,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -383015,6 +387189,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -385074,6 +389254,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -385539,6 +389725,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -385876,6 +390075,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -387364,6 +391586,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -389423,6 +393651,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -389888,6 +394122,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -390225,6 +394472,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -390360,6 +394630,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -391807,6 +396083,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -393866,6 +398148,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -394331,6 +398619,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -394668,6 +398969,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -396159,6 +400483,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -398218,6 +402548,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -398683,6 +403019,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -399020,6 +403369,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -400511,6 +404883,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -402570,6 +406948,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -403035,6 +407419,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -403372,6 +407769,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -404863,6 +409283,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -406922,6 +411348,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -407387,6 +411819,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -407724,6 +412169,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -407862,6 +412330,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -409309,6 +413783,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -411368,6 +415848,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -411833,6 +416319,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -412170,6 +416669,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -413659,6 +418181,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -415718,6 +420246,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -416183,6 +420717,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -416520,6 +421067,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -418009,6 +422579,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -420068,6 +424644,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -420533,6 +425115,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -420870,6 +425465,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -422359,6 +426977,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -424418,6 +429042,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -424883,6 +429513,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -425220,6 +429863,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -426711,6 +431377,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -428770,6 +433442,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -429235,6 +433913,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -429572,6 +434263,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -431063,6 +435777,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -433122,6 +437842,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -433587,6 +438313,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -433924,6 +438663,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -435415,6 +440177,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -437474,6 +442242,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -437939,6 +442713,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -438276,6 +443063,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -439767,6 +444577,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -441826,6 +446642,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -442291,6 +447113,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -442628,6 +447463,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -444119,6 +448977,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -446178,6 +451042,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -446643,6 +451513,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -446980,6 +451863,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -448535,6 +453441,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -450594,6 +455506,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -451059,6 +455977,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -451396,6 +456327,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -452887,6 +457841,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -454946,6 +459906,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -455411,6 +460377,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -455748,6 +460727,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -457239,6 +462241,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -459298,6 +464306,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -459763,6 +464777,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -460100,6 +465127,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -461591,6 +466641,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -463650,6 +468706,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -464115,6 +469177,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -464452,6 +469527,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -465990,6 +471088,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -468049,6 +473153,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -468514,6 +473624,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -468851,6 +473974,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -470578,6 +475724,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -472637,6 +477789,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -473102,6 +478260,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -473439,6 +478610,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -474930,6 +480124,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -476989,6 +482189,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -477454,6 +482660,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -477791,6 +483010,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -479282,6 +484524,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -481341,6 +486589,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -481806,6 +487060,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -482143,6 +487410,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -483634,6 +488924,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -485693,6 +490989,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -486158,6 +491460,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -486495,6 +491810,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -487986,6 +493324,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -490045,6 +495389,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -490510,6 +495860,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -490847,6 +496210,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -492364,6 +497750,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -494423,6 +499815,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -494888,6 +500286,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -495225,6 +500636,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -496716,6 +502150,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -498775,6 +504215,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -499240,6 +504686,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -499577,6 +505036,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -501066,6 +506548,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -503125,6 +508613,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -503590,6 +509084,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -503927,6 +509434,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -505439,6 +510969,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -507498,6 +513034,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -507963,6 +513505,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -508300,6 +513855,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -509805,6 +515383,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -511864,6 +517448,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -512329,6 +517919,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -512666,6 +518269,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -512869,10 +518495,17 @@ "bio", "guild_id" ] + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/definitions/Badge" + } } }, "additionalProperties": false, "required": [ + "badges", "connected_accounts", "mutual_guilds", "premium_type", @@ -514283,6 +519916,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -516342,6 +521981,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -516807,6 +522452,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -517144,6 +522802,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -518659,6 +524340,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -520718,6 +526405,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -521183,6 +526876,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -521520,6 +527226,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -523029,6 +528758,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -525088,6 +530823,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -525553,6 +531294,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -525890,6 +531644,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -527391,6 +533168,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -529450,6 +535233,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -529915,6 +535704,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -530252,6 +536054,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -531753,6 +537578,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -533812,6 +539643,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -534277,6 +540114,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -534614,6 +540464,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -536102,6 +541975,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -538161,6 +544040,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -538626,6 +544511,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -538963,6 +544861,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -540466,6 +546387,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -542525,6 +548452,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -542990,6 +548923,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -543327,6 +549273,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -544827,6 +550796,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -546886,6 +552861,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -547351,6 +553332,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -547688,6 +553682,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -549203,6 +555220,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -551262,6 +557285,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -551727,6 +557756,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -552064,6 +558106,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -553583,6 +559648,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -555642,6 +561713,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -556107,6 +562184,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -556444,6 +562534,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -557942,6 +564055,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -560001,6 +566120,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -560466,6 +566591,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -560803,6 +566941,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -562300,6 +568461,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -564359,6 +570526,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -564824,6 +570997,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -565161,6 +571347,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -566658,6 +572867,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -568717,6 +574932,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -569182,6 +575403,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -569519,6 +575753,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -571022,6 +577279,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -573081,6 +579344,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -573546,6 +579815,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -573883,6 +580165,29 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts index c4d2e1e82..211cf9972 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -91,11 +91,10 @@ router.patch( } } else rights.hasThrow("SELF_EDIT_MESSAGES"); + // @ts-expect-error Something is wrong with message_reference here, TS complains since "channel_id" is optional in MessageCreateSchema const new_message = await handleMessage({ ...message, // TODO: should message_reference be overridable? - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore message_reference: message.message_reference, ...body, author_id: message.author_id, diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 14efa95b0..c36586682 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -117,6 +117,12 @@ export async function handleMessage(opts: MessageOptions): Promise { const guild = await Guild.findOneOrFail({ where: { id: channel.guild_id }, }); + + if (!opts.message_reference.guild_id) + opts.message_reference.guild_id = channel.guild_id; + if (!opts.message_reference.channel_id) + opts.message_reference.channel_id = opts.channel_id; + if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { if (opts.message_reference.guild_id !== channel.guild_id) throw new HTTPError( @@ -127,6 +133,8 @@ export async function handleMessage(opts: MessageOptions): Promise { "You can only reference messages from this channel", ); } + + message.message_reference = opts.message_reference; } /** Q: should be checked if the referenced message exists? ANSWER: NO otherwise backfilling won't work **/ diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 495e2ebd6..014f6c87d 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -42,7 +42,7 @@ export interface MessageCreateSchema { }; message_reference?: { message_id: string; - channel_id: string; + channel_id?: string; guild_id?: string; fail_if_not_exists?: boolean; };