From 19b82b40be6ba121a58d27cbc04f831219dd50ca Mon Sep 17 00:00:00 2001 From: insertish Date: Sat, 31 May 2025 14:17:47 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20docs=20from=20@=20revoltchat/r?= =?UTF-8?q?evolt.js@f0460e5870cd9dc3cff0ef1e2d6d0ea3a5385618=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/API.API.html | 30 ++--- classes/BannedUser.html | 4 +- classes/Bot.html | 36 +++--- classes/BotCollection.html | 42 +++---- classes/Channel.html | 116 +++++++++--------- classes/ChannelCollection.html | 40 +++--- classes/ChannelEditSystemMessage.html | 8 +- classes/ChannelInvite.html | 6 +- .../ChannelOwnershipChangeSystemMessage.html | 10 +- classes/ChannelRenamedSystemMessage.html | 8 +- classes/ChannelUnread.html | 10 +- classes/ChannelUnreadCollection.html | 38 +++--- classes/ChannelWebhook.html | 22 ++-- classes/ChannelWebhookCollection.html | 38 +++--- classes/ClassCollection.html | 32 ++--- classes/Client.html | 24 ++-- classes/Collection.html | 26 ++-- classes/Emoji.html | 22 ++-- classes/EmojiCollection.html | 38 +++--- classes/EventClient.html | 16 +-- classes/File.html | 26 ++-- classes/ImageEmbed.html | 8 +- classes/MFA.html | 14 +-- classes/MFATicket.html | 18 +-- classes/Message.html | 78 ++++++------ classes/MessageCollection.html | 38 +++--- classes/MessageEmbed.html | 6 +- classes/MessageWebhook.html | 6 +- classes/PublicBot.html | 8 +- classes/PublicChannelInvite.html | 6 +- classes/Server.html | 112 ++++++++--------- classes/ServerBan.html | 10 +- classes/ServerCollection.html | 40 +++--- classes/ServerInvite.html | 14 +-- classes/ServerMember.html | 50 ++++---- classes/ServerMemberCollection.html | 44 +++---- classes/ServerPublicInvite.html | 8 +- classes/Session.html | 18 +-- classes/SessionCollection.html | 38 +++--- classes/StoreCollection.html | 32 ++--- classes/SystemMessage.html | 6 +- classes/TextEmbed.html | 8 +- classes/TextSystemMessage.html | 6 +- classes/UnknownEmbed.html | 6 +- classes/UnknownInvite.html | 6 +- classes/UnknownPublicInvite.html | 6 +- classes/User.html | 64 +++++----- classes/UserCollection.html | 38 +++--- classes/UserModeratedSystemMessage.html | 10 +- classes/UserProfile.html | 8 +- classes/UserSystemMessage.html | 8 +- classes/VideoEmbed.html | 8 +- classes/WebsiteEmbed.html | 10 +- enums/BotFlags.html | 2 +- enums/ConnectionState.html | 4 +- enums/ServerFlags.html | 4 +- enums/UserBadges.html | 4 +- enums/UserFlags.html | 4 +- functions/API.getPathName.html | 2 +- interfaces/API.Options.html | 8 +- interfaces/API.RequestOptions.html | 8 +- types/API.AccountInfo.html | 2 +- types/API.AllMemberResponse.html | 2 +- types/API.Authifier_Error.html | 2 +- types/API.BanListResult.html | 2 +- types/API.BandcampType.html | 2 +- types/API.BannedUser.html | 2 +- types/API.Bot.html | 2 +- types/API.BotInformation.html | 2 +- types/API.BotWithUserResponse.html | 2 +- types/API.BuildInformation.html | 2 +- types/API.BulkMessageResponse.html | 2 +- types/API.CaptchaFeature.html | 2 +- types/API.Category.html | 2 +- types/API.Channel.html | 2 +- types/API.ChannelCompositeKey.html | 2 +- types/API.ChannelUnread.html | 2 +- types/API.ContentReportReason.html | 2 +- types/API.CreateServerLegacyResponse.html | 2 +- types/API.CreateWebhookBody.html | 2 +- types/API.DataAccountDeletion.html | 2 +- types/API.DataBanCreate.html | 2 +- types/API.DataChangeEmail.html | 2 +- types/API.DataChangePassword.html | 2 +- types/API.DataChangeUsername.html | 2 +- types/API.DataCreateAccount.html | 2 +- types/API.DataCreateBot.html | 2 +- types/API.DataCreateEmoji.html | 2 +- types/API.DataCreateGroup.html | 2 +- types/API.DataCreateRole.html | 2 +- types/API.DataCreateServer.html | 2 +- types/API.DataCreateServerChannel.html | 2 +- types/API.DataDefaultChannelPermissions.html | 2 +- types/API.DataEditBot.html | 2 +- types/API.DataEditChannel.html | 2 +- types/API.DataEditMessage.html | 2 +- types/API.DataEditRole.html | 2 +- types/API.DataEditServer.html | 2 +- types/API.DataEditSession.html | 2 +- types/API.DataEditUser.html | 2 +- types/API.DataEditWebhook.html | 2 +- types/API.DataHello.html | 2 +- types/API.DataLogin.html | 2 +- types/API.DataMemberEdit.html | 2 +- types/API.DataMessageSearch.html | 2 +- types/API.DataMessageSend.html | 2 +- types/API.DataOnboard.html | 2 +- types/API.DataPasswordReset.html | 2 +- types/API.DataPermissionsValue.html | 2 +- types/API.DataReportContent.html | 2 +- types/API.DataResendVerification.html | 2 +- types/API.DataSendFriendRequest.html | 2 +- types/API.DataSendPasswordReset.html | 2 +- types/API.DataSetRolePermissions.html | 2 +- types/API.DataSetServerRolePermission.html | 2 +- types/API.DataUserProfile.html | 2 +- types/API.Embed.html | 2 +- types/API.Emoji.html | 2 +- types/API.EmojiParent.html | 2 +- types/API.Error.html | 2 +- types/API.Feature.html | 2 +- types/API.FetchBotResponse.html | 2 +- types/API.FetchServerResponse.html | 2 +- types/API.FieldsBot.html | 2 +- types/API.FieldsChannel.html | 2 +- types/API.FieldsMember.html | 2 +- types/API.FieldsRole.html | 2 +- types/API.FieldsServer.html | 2 +- types/API.FieldsUser.html | 2 +- types/API.FieldsWebhook.html | 2 +- types/API.File.html | 2 +- types/API.FlagResponse.html | 2 +- types/API.ISO8601_Timestamp.html | 2 +- types/API.Id.html | 2 +- types/API.Image.html | 2 +- types/API.ImageSize.html | 2 +- types/API.Interactions.html | 2 +- types/API.Invite.html | 2 +- types/API.InviteBotDestination.html | 2 +- types/API.InviteJoinResponse.html | 2 +- types/API.InviteResponse.html | 2 +- types/API.LegacyCreateVoiceUserResponse.html | 2 +- types/API.LegacyServerChannelType.html | 2 +- types/API.LightspeedType.html | 2 +- types/API.MFAMethod.html | 2 +- types/API.MFAResponse.html | 2 +- types/API.MFATicket.html | 2 +- types/API.Masquerade.html | 2 +- types/API.Member.html | 2 +- types/API.MemberCompositeKey.html | 2 +- types/API.MemberQueryResponse.html | 2 +- types/API.MemberResponse.html | 2 +- types/API.Message.html | 2 +- types/API.MessageSort.html | 2 +- types/API.MessageWebhook.html | 2 +- types/API.Metadata.html | 2 +- types/API.MultiFactorStatus.html | 2 +- types/API.MutualResponse.html | 2 +- types/API.NewRoleResponse.html | 2 +- types/API.OptionsBulkDelete.html | 2 +- types/API.OptionsFetchSettings.html | 2 +- types/API.Override.html | 2 +- types/API.OverrideField.html | 2 +- types/API.OwnedBotsResponse.html | 2 +- types/API.Presence.html | 2 +- types/API.PublicBot.html | 2 +- types/API.Relationship.html | 2 +- types/API.RelationshipStatus.html | 2 +- types/API.ReplyIntent.html | 2 +- types/API.ReportedContent.html | 2 +- types/API.ResponseLogin.html | 2 +- types/API.ResponseTotpSecret.html | 2 +- types/API.ResponseVerify.html | 2 +- types/API.ResponseWebhook.html | 2 +- types/API.RevoltConfig.html | 2 +- types/API.RevoltFeatures.html | 2 +- types/API.Role.html | 2 +- types/API.SendableEmbed.html | 2 +- types/API.Server.html | 2 +- types/API.ServerBan.html | 2 +- types/API.SessionInfo.html | 2 +- types/API.Special.html | 2 +- types/API.SystemMessage.html | 2 +- types/API.SystemMessageChannels.html | 2 +- types/API.TwitchType.html | 2 +- types/API.User.html | 2 +- types/API.UserProfile.html | 2 +- types/API.UserReportReason.html | 2 +- types/API.UserStatus.html | 2 +- types/API.Video.html | 2 +- types/API.VoiceFeature.html | 2 +- types/API.WebPushSubscription.html | 2 +- types/API.Webhook.html | 2 +- types/ClientOptions.html | 4 +- types/PrivateSession.html | 2 +- variables/ALLOW_IN_TIMEOUT.html | 2 +- variables/DEFAULT_PERMISSION.html | 2 +- .../DEFAULT_PERMISSION_DIRECT_MESSAGE.html | 2 +- .../DEFAULT_PERMISSION_SAVED_MESSAGES.html | 2 +- variables/DEFAULT_PERMISSION_SERVER.html | 2 +- variables/DEFAULT_PERMISSION_VIEW_ONLY.html | 2 +- variables/Permission.html | 2 +- variables/RE_CHANNELS.html | 2 +- variables/RE_MENTIONS.html | 2 +- variables/RE_SPOILER.html | 2 +- variables/U32_MAX.html | 2 +- variables/UserPermission.html | 2 +- 207 files changed, 827 insertions(+), 827 deletions(-) diff --git a/classes/API.API.html b/classes/API.API.html index 22e53067..a099d7f8 100644 --- a/classes/API.API.html +++ b/classes/API.API.html @@ -1,5 +1,5 @@ API | revolt.js

API Client

-

Constructors

Constructors

Accessors

Methods

delete @@ -8,53 +8,53 @@ post put req -

Constructors

  • Parameters

    • Optional__namedParameters: Partial<Options>

    Returns API.API

Accessors

  • get auth(): Record<string, string>

    Generate authentication options.

    -

    Returns Record<string, string>

  • get config(): RequestOptions

    Generate config to pass through to API.

    -

    Returns RequestOptions

Methods

  • Send HTTP DELETE request.

    +

Constructors

  • Parameters

    • Optional__namedParameters: Partial<Options>

    Returns API.API

Accessors

  • get auth(): Record<string, string>

    Generate authentication options.

    +

    Returns Record<string, string>

  • get config(): RequestOptions

    Generate config to pass through to API.

    +

    Returns RequestOptions

Methods

  • Send HTTP DELETE request.

    Type Parameters

    • Path extends
          | "/auth/mfa/totp"
          | `/bots/${string}`
          | `/channels/${string}`
          | "-/channels/{target}"
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/custom/emoji/${string}`
          | "-/custom/emoji/{emoji_id}"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
          | `/users/${string}/friend`
          | "-/users/{target}/friend"
          | `/users/${string}/block`
          | "-/users/{target}/block"
          | "-/bots/{target}"
          | `/channels/${string}/messages/${string}/pin`
          | "-/channels/{target}/messages/{msg}/pin"
          | `/channels/${string}/messages/bulk`
          | "-/channels/{target}/messages/bulk"
          | `/channels/${string}/recipients/${string}`
          | "-/channels/{target}/recipients/{member}"
          | `/channels/${string}/messages/${string}/reactions/${string}`
          | "-/channels/{target}/messages/{msg}/reactions/{emoji}"
          | `/channels/${string}/messages/${string}/reactions`
          | "-/channels/{target}/messages/{msg}/reactions"
          | `/servers/${string}`
          | "-/servers/{target}"
          | `/servers/${string}/members/${string}`
          | "-/servers/{target}/members/{member}"
          | `/servers/${string}/bans/${string}`
          | "-/servers/{server}/bans/{target}"
          | `/auth/session/${string}`
          | "-/auth/session/{id}"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/users/${string}/friend`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/users/${string}/block`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/block";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/bots/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/bots/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: `/channels/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: "-/channels/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/pin`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/pin";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: { ids: string[] };
              parts: 4;
              path: `/channels/${string}/messages/bulk`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { ids: string[] };
              parts: 4;
              path: "-/channels/{target}/messages/bulk";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/recipients/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/recipients/{member}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { remove_all?: null | boolean; user_id?: null | string };
              parts: 6;
              path: `/channels/${string}/messages/${string}/reactions/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { remove_all?: null | boolean; user_id?: null | string };
              parts: 6;
              path: "-/channels/{target}/messages/{msg}/reactions/{emoji}";
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/reactions`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/reactions";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: `/servers/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: "-/servers/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/members/{member}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/bans/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{server}/bans/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/custom/emoji/{emoji_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { revoke_self?: null | boolean };
              parts: 3;
              path: "/auth/session/all";
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/auth/session/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/auth/session/{id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/totp";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/webhooks/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    • path: Path

      Path

    • Optionalparams: any

      Body or Query Parameters

    • Optionalconfig: RequestOptions

      Axios configuration

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP DELETE request.

    +
  • Send HTTP DELETE request.

    Type Parameters

    • Path extends
          | "/auth/mfa/totp"
          | `/bots/${string}`
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/custom/emoji/${string}`
          | "-/custom/emoji/{emoji_id}"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
          | `/users/${string}/friend`
          | "-/users/{target}/friend"
          | `/users/${string}/block`
          | "-/users/{target}/block"
          | "-/bots/{target}"
          | `/channels/${string}/messages/${string}/pin`
          | "-/channels/{target}/messages/{msg}/pin"
          | `/channels/${string}/recipients/${string}`
          | "-/channels/{target}/recipients/{member}"
          | `/channels/${string}/messages/${string}/reactions`
          | "-/channels/{target}/messages/{msg}/reactions"
          | `/servers/${string}/members/${string}`
          | "-/servers/{target}/members/{member}"
          | `/servers/${string}/bans/${string}`
          | "-/servers/{server}/bans/{target}"
          | `/auth/session/${string}`
          | "-/auth/session/{id}"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/users/${string}/friend`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/users/${string}/block`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/block";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/bots/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/bots/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: `/channels/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: "-/channels/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/pin`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/pin";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | {
              method: "delete";
              params: { ids: string[] };
              parts: 4;
              path: `/channels/${string}/messages/bulk`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { ids: string[] };
              parts: 4;
              path: "-/channels/{target}/messages/bulk";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/recipients/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/recipients/{member}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { remove_all?: null | boolean; user_id?: null | string };
              parts: 6;
              path: `/channels/${string}/messages/${string}/reactions/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { remove_all?: null | boolean; user_id?: null | string };
              parts: 6;
              path: "-/channels/{target}/messages/{msg}/reactions/{emoji}";
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/reactions`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/reactions";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: `/servers/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: { leave_silently?: null | boolean };
              parts: 2;
              path: "-/servers/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/members/{member}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/bans/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{server}/bans/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/custom/emoji/{emoji_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: { revoke_self?: null | boolean };
              parts: 3;
              path: "/auth/session/all";
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/auth/session/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/auth/session/{id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/totp";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: `/webhooks/${string}`;
              response: undefined;
          } & { method: "delete" }
          | {
              method: "delete";
              params: undefined;
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: undefined;
          } & { method: "delete" }
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    • path: Path

      Path

    • Optionalparams: any

      Body or Query Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP GET request.

    +
  • Send HTTP GET request.

    Type Parameters

    • Path extends
          | "/auth/session/all"
          | "/"
          | `/users/${string}`
          | "-/users/{target}"
          | `/users/${string}/flags`
          | "-/users/{target}/flags"
          | `/users/${string}/default_avatar`
          | "-/users/{target}/default_avatar"
          | `/users/${string}/profile`
          | "-/users/{target}/profile"
          | `/users/${string}/dm`
          | "-/users/{target}/dm"
          | `/users/${string}/mutual`
          | "-/users/{target}/mutual"
          | `/bots/${string}/invite`
          | "-/bots/{target}/invite"
          | `/bots/${string}`
          | "-/bots/{bot}"
          | `/channels/${string}`
          | "-/channels/{target}"
          | `/channels/${string}/members`
          | "-/channels/{target}/members"
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/channels/${string}/webhooks`
          | "-/channels/{channel_id}/webhooks"
          | `/servers/${string}/bans`
          | "-/servers/{target}/bans"
          | `/servers/${string}/invites`
          | "-/servers/{target}/invites"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/servers/${string}/emojis`
          | "-/servers/{target}/emojis"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/custom/emoji/${string}`
          | "-/custom/emoji/{emoji_id}"
          | "/auth/account/"
          | "/auth/mfa/"
          | "/auth/mfa/methods"
          | "/onboard/hello"
          | "/sync/unreads"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
          | `/channels/${string}/messages`
          | "-/channels/{target}/messages"
          | `/servers/${string}`
          | "-/servers/{target}"
          | `/servers/${string}/members`
          | "-/servers/{target}/members"
          | `/servers/${string}/members/${string}`
          | "-/servers/{target}/members/{member}"
          | `/servers/${string}/members_experimental_query`
          | "-/servers/{target}/members_experimental_query"
    • Route extends (
          | {
              method: "get";
              params: undefined;
              parts: 1;
              path: "/";
              response: {
                  app: string;
                  build: {
                      commit_sha: string;
                      commit_timestamp: string;
                      origin_url: string;
                      semver: string;
                      timestamp: string;
                  };
                  features: {
                      autumn: { enabled: boolean; url: string };
                      captcha: { enabled: boolean; key: string };
                      email: boolean;
                      invite_only: boolean;
                      january: { enabled: boolean; url: string };
                      voso: { enabled: boolean; url: string; ws: string };
                  };
                  revolt: string;
                  vapid: string;
                  ws: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/users/@me";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/users/${string}`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/users/{target}";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/flags`;
              response: { flags: number };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/flags";
              response: { flags: number };
          } & { method: "get" }
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/default_avatar`;
              response: string;
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/default_avatar";
              response: string;
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/profile`;
              response: {
                  background?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  content?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/profile";
              response: {
                  background?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  content?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/users/dms";
              response: (
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
              )[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/dm`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/dm";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/mutual`;
              response: { servers: string[]; users: string[] };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/mutual";
              response: { servers: string[]; users: string[] };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/bots/${string}/invite`;
              response: {
                  _id: string;
                  avatar?: string;
                  description?: string;
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/bots/{target}/invite";
              response: {
                  _id: string;
                  avatar?: string;
                  description?: string;
                  username: string;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/bots/${string}`;
              response: {
                  bot: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  };
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/bots/{bot}";
              response: {
                  bot: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  };
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/bots/@me";
              response: {
                  bots: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/channels/${string}`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/channels/{target}";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/members`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/members";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              }[];
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  nearby?: null | string;
                  sort?: null | "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: `/channels/${string}/messages`;
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  nearby?: null | string;
                  sort?: null | "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: "-/channels/{target}/messages";
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: {
                  _id: string;
                  attachments?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: {
                  _id: string;
                  attachments?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/webhooks`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/channels/{channel_id}/webhooks";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              }[];
          } & { method: "get" }
          | never
          | {
              method: "get";
              params: { include_channels?: null | boolean };
              parts: 2;
              path: `/servers/${string}`;
              response:
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  }
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: { include_channels?: null | boolean };
              parts: 2;
              path: "-/servers/{target}";
              response:
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  }
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: { exclude_offline?: null | boolean };
              parts: 3;
              path: `/servers/${string}/members`;
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { exclude_offline?: null | boolean };
              parts: 3;
              path: "-/servers/{target}/members";
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { roles?: null | boolean };
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response:
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }
                  | {
                      member: {
                          _id: { server: string; user: string };
                          avatar?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          joined_at: string;
                          nickname?: null
                          | string;
                          roles?: string[];
                          timeout?: null | string;
                      };
                      roles: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: { roles?: null | boolean };
              parts: 4;
              path: "-/servers/{target}/members/{member}";
              response:
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }
                  | {
                      member: {
                          _id: { server: string; user: string };
                          avatar?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          joined_at: string;
                          nickname?: null
                          | string;
                          roles?: string[];
                          timeout?: null | string;
                      };
                      roles: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: { experimental_api: boolean; query: string };
              parts: 3;
              path: `/servers/${string}/members_experimental_query`;
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { experimental_api: boolean; query: string };
              parts: 3;
              path: "-/servers/{target}/members_experimental_query";
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/bans`;
              response: {
                  bans: {
                      _id: { server: string; user: string };
                      reason?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      discriminator: string;
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/bans";
              response: {
                  bans: {
                      _id: { server: string; user: string };
                      reason?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      discriminator: string;
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/invites`;
              response: (
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" }
              )[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/invites";
              response: (
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" }
              )[];
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: {
                  colour?: null | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: {
                  colour?: null | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/emojis`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/emojis";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response:
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      member_count: number;
                      server_banner?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_flags?: null
                      | number;
                      server_icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_id: string;
                      server_name: string;
                      type: "Server";
                      user_avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      user_name: string;
                  }
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      type: "Group";
                      user_avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      user_name: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response:
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      member_count: number;
                      server_banner?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_flags?: null
                      | number;
                      server_icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_id: string;
                      server_name: string;
                      type: "Server";
                      user_avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      user_name: string;
                  }
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      type: "Group";
                      user_avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      user_name: string;
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/custom/emoji/{emoji_id}";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/account/";
              response: { _id: string; email: string };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/session/all";
              response: { _id: string; name: string }[];
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/";
              response: {
                  email_mfa: boolean;
                  email_otp: boolean;
                  recovery_active: boolean;
                  security_key_mfa: boolean;
                  totp_mfa: boolean;
                  trusted_handover: boolean;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/methods";
              response: ("Password" | "Recovery" | "Totp")[];
          } & { method: "get" }
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/onboard/hello";
              response: { onboarding: boolean };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/sync/unreads";
              response: {
                  _id: { channel: string; user: string };
                  last_id?: null | string;
                  mentions?: string[];
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/webhooks/${string}`;
              response: {
                  avatar?: null | string;
                  channel_id: string;
                  id: string;
                  name: string;
                  permissions: number;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: {
                  avatar?: null | string;
                  channel_id: string;
                  id: string;
                  name: string;
                  permissions: number;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP GET request.

    +
  • Send HTTP GET request.

    Type Parameters

    • Path extends
          | "/auth/session/all"
          | "/"
          | `/users/${string}`
          | "-/users/{target}"
          | `/users/${string}/flags`
          | "-/users/{target}/flags"
          | `/users/${string}/default_avatar`
          | "-/users/{target}/default_avatar"
          | `/users/${string}/profile`
          | "-/users/{target}/profile"
          | `/users/${string}/dm`
          | "-/users/{target}/dm"
          | `/users/${string}/mutual`
          | "-/users/{target}/mutual"
          | `/bots/${string}/invite`
          | "-/bots/{target}/invite"
          | `/bots/${string}`
          | "-/bots/{bot}"
          | `/channels/${string}`
          | "-/channels/{target}"
          | `/channels/${string}/members`
          | "-/channels/{target}/members"
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/channels/${string}/webhooks`
          | "-/channels/{channel_id}/webhooks"
          | `/servers/${string}/bans`
          | "-/servers/{target}/bans"
          | `/servers/${string}/invites`
          | "-/servers/{target}/invites"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/servers/${string}/emojis`
          | "-/servers/{target}/emojis"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/custom/emoji/${string}`
          | "-/custom/emoji/{emoji_id}"
          | "/auth/account/"
          | "/auth/mfa/"
          | "/auth/mfa/methods"
          | "/onboard/hello"
          | "/sync/unreads"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
    • Route extends (
          | {
              method: "get";
              params: undefined;
              parts: 1;
              path: "/";
              response: {
                  app: string;
                  build: {
                      commit_sha: string;
                      commit_timestamp: string;
                      origin_url: string;
                      semver: string;
                      timestamp: string;
                  };
                  features: {
                      autumn: { enabled: boolean; url: string };
                      captcha: { enabled: boolean; key: string };
                      email: boolean;
                      invite_only: boolean;
                      january: { enabled: boolean; url: string };
                      voso: { enabled: boolean; url: string; ws: string };
                  };
                  revolt: string;
                  vapid: string;
                  ws: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/users/@me";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/users/${string}`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/users/{target}";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/flags`;
              response: { flags: number };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/flags";
              response: { flags: number };
          } & { method: "get" }
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/default_avatar`;
              response: string;
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/default_avatar";
              response: string;
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/profile`;
              response: {
                  background?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  content?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/profile";
              response: {
                  background?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  content?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/users/dms";
              response: (
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
              )[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/dm`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/dm";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/users/${string}/mutual`;
              response: { servers: string[]; users: string[] };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/mutual";
              response: { servers: string[]; users: string[] };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/bots/${string}/invite`;
              response: {
                  _id: string;
                  avatar?: string;
                  description?: string;
                  username: string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/bots/{target}/invite";
              response: {
                  _id: string;
                  avatar?: string;
                  description?: string;
                  username: string;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/bots/${string}`;
              response: {
                  bot: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  };
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/bots/{bot}";
              response: {
                  bot: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  };
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/bots/@me";
              response: {
                  bots: {
                      _id: string;
                      analytics?: boolean;
                      discoverable?: boolean;
                      flags?: number;
                      interactions_url?: string;
                      owner: string;
                      privacy_policy_url?: string;
                      public: boolean;
                      terms_of_service_url?: string;
                      token: string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/channels/${string}`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/channels/{target}";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/members`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/members";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              }[];
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  nearby?: null | string;
                  sort?: null | "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: `/channels/${string}/messages`;
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  nearby?: null | string;
                  sort?: null | "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: "-/channels/{target}/messages";
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: {
                  _id: string;
                  attachments?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: {
                  _id: string;
                  attachments?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/webhooks`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/channels/{channel_id}/webhooks";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              }[];
          } & { method: "get" }
          | never
          | {
              method: "get";
              params: { include_channels?: null | boolean };
              parts: 2;
              path: `/servers/${string}`;
              response:
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  }
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: { include_channels?: null | boolean };
              parts: 2;
              path: "-/servers/{target}";
              response:
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  }
                  | {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: { exclude_offline?: null | boolean };
              parts: 3;
              path: `/servers/${string}/members`;
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { exclude_offline?: null | boolean };
              parts: 3;
              path: "-/servers/{target}/members";
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { roles?: null | boolean };
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response:
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }
                  | {
                      member: {
                          _id: { server: string; user: string };
                          avatar?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          joined_at: string;
                          nickname?: null
                          | string;
                          roles?: string[];
                          timeout?: null | string;
                      };
                      roles: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: { roles?: null | boolean };
              parts: 4;
              path: "-/servers/{target}/members/{member}";
              response:
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }
                  | {
                      member: {
                          _id: { server: string; user: string };
                          avatar?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          joined_at: string;
                          nickname?: null
                          | string;
                          roles?: string[];
                          timeout?: null | string;
                      };
                      roles: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: { experimental_api: boolean; query: string };
              parts: 3;
              path: `/servers/${string}/members_experimental_query`;
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: { experimental_api: boolean; query: string };
              parts: 3;
              path: "-/servers/{target}/members_experimental_query";
              response: {
                  members: {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/bans`;
              response: {
                  bans: {
                      _id: { server: string; user: string };
                      reason?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      discriminator: string;
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/bans";
              response: {
                  bans: {
                      _id: { server: string; user: string };
                      reason?: null | string;
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: ... }
                              | { type: ... }
                              | { height: ...; type: ...; width: ... }
                              | { height: ...; type: ...; width: ... }
                              | { type: ... };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      discriminator: string;
                      username: string;
                  }[];
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/invites`;
              response: (
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" }
              )[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/invites";
              response: (
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" }
              )[];
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: {
                  colour?: null | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: {
                  colour?: null | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/emojis`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/emojis";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response:
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      member_count: number;
                      server_banner?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_flags?: null
                      | number;
                      server_icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_id: string;
                      server_name: string;
                      type: "Server";
                      user_avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      user_name: string;
                  }
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      type: "Group";
                      user_avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      user_name: string;
                  };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response:
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      member_count: number;
                      server_banner?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_flags?: null
                      | number;
                      server_icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      server_id: string;
                      server_name: string;
                      type: "Server";
                      user_avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      user_name: string;
                  }
                  | {
                      channel_description?: null
                      | string;
                      channel_id: string;
                      channel_name: string;
                      code: string;
                      type: "Group";
                      user_avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      user_name: string;
                  };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/custom/emoji/{emoji_id}";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/account/";
              response: { _id: string; email: string };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/session/all";
              response: { _id: string; name: string }[];
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/";
              response: {
                  email_mfa: boolean;
                  email_otp: boolean;
                  recovery_active: boolean;
                  security_key_mfa: boolean;
                  totp_mfa: boolean;
                  trusted_handover: boolean;
              };
          } & { method: "get" }
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/methods";
              response: ("Password" | "Recovery" | "Totp")[];
          } & { method: "get" }
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/onboard/hello";
              response: { onboarding: boolean };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "/sync/unreads";
              response: {
                  _id: { channel: string; user: string };
                  last_id?: null | string;
                  mentions?: string[];
              }[];
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: `/webhooks/${string}`;
              response: {
                  avatar?: null | string;
                  channel_id: string;
                  id: string;
                  name: string;
                  permissions: number;
              };
          } & { method: "get" }
          | {
              method: "get";
              params: undefined;
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: {
                  avatar?: null | string;
                  channel_id: string;
                  id: string;
                  name: string;
                  permissions: number;
              };
          } & { method: "get" }
          | never
          | never
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP PATCH request.

    +
  • Send HTTP PATCH request.

    Type Parameters

    • Path extends
          | "/auth/account/change/password"
          | "/auth/account/change/email"
          | "/auth/account/reset_password"
          | `/users/${string}`
          | "-/users/{target}"
          | `/bots/${string}`
          | `/channels/${string}`
          | "-/channels/{target}"
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
          | "-/bots/{target}"
          | `/servers/${string}`
          | "-/servers/{target}"
          | `/servers/${string}/members/${string}`
          | "-/servers/{server}/members/{member}"
          | `/auth/session/${string}`
          | "-/auth/session/{id}"
          | "/auth/mfa/recovery"
    • Route extends (
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null
                  | string;
                  badges?: null | number;
                  display_name?: null | string;
                  flags?: null | number;
                  profile?: null | { background?: null | string; content?: null | string };
                  remove?:
                      | null
                      | (
                          | "Avatar"
                          | "StatusText"
                          | "StatusPresence"
                          | "ProfileContent"
                          | "ProfileBackground"
                          | "DisplayName"
                          | "Internal"
                      )[];
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
              };
              parts: 2;
              path: `/users/${string}`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  badges?: null | number;
                  display_name?: null | string;
                  flags?: null | number;
                  profile?: null | { background?: null | string; content?: null | string };
                  remove?:
                      | null
                      | (
                          | "Avatar"
                          | "StatusText"
                          | "StatusPresence"
                          | "ProfileContent"
                          | "ProfileBackground"
                          | "DisplayName"
                          | "Internal"
                      )[];
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
              };
              parts: 2;
              path: "-/users/{target}";
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | never
          | never
          | {
              method: "patch";
              params: { password: string; username: string };
              parts: 3;
              path: "/users/@me/username";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  interactions_url?: null | string;
                  name?: null | string;
                  public?: null | boolean;
                  remove?: null | ("Token" | "InteractionsURL")[];
              };
              parts: 2;
              path: `/bots/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  interactions_url?: null | string;
                  name?: null | string;
                  public?: null | boolean;
                  remove?: null | ("Token" | "InteractionsURL")[];
              };
              parts: 2;
              path: "-/bots/{target}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  archived?: null | boolean;
                  description?: null | string;
                  icon?: null | string;
                  name?: null | string;
                  nsfw?: null | boolean;
                  owner?: null | string;
                  remove?: null | ("Description" | "Icon" | "DefaultPermissions")[];
              };
              parts: 2;
              path: `/channels/${string}`;
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  archived?: null | boolean;
                  description?: null | string;
                  icon?: null | string;
                  name?: null | string;
                  nsfw?: null | boolean;
                  owner?: null | string;
                  remove?: null | ("Description" | "Icon" | "DefaultPermissions")[];
              };
              parts: 2;
              path: "-/channels/{target}";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
              };
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
              };
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  banner?: null | string;
                  categories?: null | { channels: string[]; id: string; title: string }[];
                  description?: null | string;
                  discoverable?: null | boolean;
                  flags?: null | number;
                  icon?: null | string;
                  name?: null | string;
                  remove?:
                      | null
                      | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[];
                  system_messages?:
                      | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
              };
              parts: 2;
              path: `/servers/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  banner?: null | string;
                  categories?: null | { channels: string[]; id: string; title: string }[];
                  description?: null | string;
                  discoverable?: null | boolean;
                  flags?: null | number;
                  icon?: null | string;
                  name?: null | string;
                  remove?:
                      | null
                      | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[];
                  system_messages?:
                      | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
              };
              parts: 2;
              path: "-/servers/{target}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  nickname?: null | string;
                  remove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[];
                  roles?: null | string[];
                  timeout?: null | string;
              };
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response: {
                  _id: { server: string; user: string };
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  joined_at: string;
                  nickname?: null
                  | string;
                  roles?: string[];
                  timeout?: null | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  nickname?: null | string;
                  remove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[];
                  roles?: null | string[];
                  timeout?: null | string;
              };
              parts: 4;
              path: "-/servers/{server}/members/{member}";
              response: {
                  _id: { server: string; user: string };
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  joined_at: string;
                  nickname?: null
                  | string;
                  roles?: string[];
                  timeout?: null | string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  colour?: null | string;
                  hoist?: null | boolean;
                  name?: null | string;
                  rank?: null | number;
                  remove?: null | "Colour"[];
              };
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  colour?: null | string;
                  hoist?: null | boolean;
                  name?: null | string;
                  rank?: null | number;
                  remove?: null | "Colour"[];
              };
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: { current_password: string; password: string };
              parts: 4;
              path: "/auth/account/change/password";
              response: undefined;
          } & { method: "patch" }
          | {
              method: "patch";
              params: { current_password: string; email: string };
              parts: 4;
              path: "/auth/account/change/email";
              response: undefined;
          } & { method: "patch" }
          | never
          | never
          | never
          | {
              method: "patch";
              params: { password: string; remove_sessions?: boolean; token: string };
              parts: 3;
              path: "/auth/account/reset_password";
              response: undefined;
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: { friendly_name: string };
              parts: 3;
              path: `/auth/session/${string}`;
              response: { _id: string; name: string };
          } & { method: "patch" }
          | {
              method: "patch";
              params: { friendly_name: string };
              parts: 3;
              path: "-/auth/session/{id}";
              response: { _id: string; name: string };
          } & { method: "patch" }
          | never
          | never
          | never
          | {
              method: "patch";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/recovery";
              response: string[];
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 2;
              path: `/webhooks/${string}`;
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP PATCH request.

    +
  • Send HTTP PATCH request.

    Type Parameters

    • Path extends "/auth/mfa/recovery"
    • Route extends (
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null
                  | string;
                  badges?: null | number;
                  display_name?: null | string;
                  flags?: null | number;
                  profile?: null | { background?: null | string; content?: null | string };
                  remove?:
                      | null
                      | (
                          | "Avatar"
                          | "StatusText"
                          | "StatusPresence"
                          | "ProfileContent"
                          | "ProfileBackground"
                          | "DisplayName"
                          | "Internal"
                      )[];
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
              };
              parts: 2;
              path: `/users/${string}`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  badges?: null | number;
                  display_name?: null | string;
                  flags?: null | number;
                  profile?: null | { background?: null | string; content?: null | string };
                  remove?:
                      | null
                      | (
                          | "Avatar"
                          | "StatusText"
                          | "StatusPresence"
                          | "ProfileContent"
                          | "ProfileBackground"
                          | "DisplayName"
                          | "Internal"
                      )[];
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
              };
              parts: 2;
              path: "-/users/{target}";
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | never
          | never
          | {
              method: "patch";
              params: { password: string; username: string };
              parts: 3;
              path: "/users/@me/username";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  interactions_url?: null | string;
                  name?: null | string;
                  public?: null | boolean;
                  remove?: null | ("Token" | "InteractionsURL")[];
              };
              parts: 2;
              path: `/bots/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  interactions_url?: null | string;
                  name?: null | string;
                  public?: null | boolean;
                  remove?: null | ("Token" | "InteractionsURL")[];
              };
              parts: 2;
              path: "-/bots/{target}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  archived?: null | boolean;
                  description?: null | string;
                  icon?: null | string;
                  name?: null | string;
                  nsfw?: null | boolean;
                  owner?: null | string;
                  remove?: null | ("Description" | "Icon" | "DefaultPermissions")[];
              };
              parts: 2;
              path: `/channels/${string}`;
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  archived?: null | boolean;
                  description?: null | string;
                  icon?: null | string;
                  name?: null | string;
                  nsfw?: null | boolean;
                  owner?: null | string;
                  remove?: null | ("Description" | "Icon" | "DefaultPermissions")[];
              };
              parts: 2;
              path: "-/channels/{target}";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
              };
              parts: 4;
              path: `/channels/${string}/messages/${string}`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
              };
              parts: 4;
              path: "-/channels/{target}/messages/{msg}";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  banner?: null | string;
                  categories?: null | { channels: string[]; id: string; title: string }[];
                  description?: null | string;
                  discoverable?: null | boolean;
                  flags?: null | number;
                  icon?: null | string;
                  name?: null | string;
                  remove?:
                      | null
                      | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[];
                  system_messages?:
                      | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
              };
              parts: 2;
              path: `/servers/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  analytics?: null | boolean;
                  banner?: null | string;
                  categories?: null | { channels: string[]; id: string; title: string }[];
                  description?: null | string;
                  discoverable?: null | boolean;
                  flags?: null | number;
                  icon?: null | string;
                  name?: null | string;
                  remove?:
                      | null
                      | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[];
                  system_messages?:
                      | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
              };
              parts: 2;
              path: "-/servers/{target}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  nickname?: null | string;
                  remove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[];
                  roles?: null | string[];
                  timeout?: null | string;
              };
              parts: 4;
              path: `/servers/${string}/members/${string}`;
              response: {
                  _id: { server: string; user: string };
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  joined_at: string;
                  nickname?: null
                  | string;
                  roles?: string[];
                  timeout?: null | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  nickname?: null | string;
                  remove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[];
                  roles?: null | string[];
                  timeout?: null | string;
              };
              parts: 4;
              path: "-/servers/{server}/members/{member}";
              response: {
                  _id: { server: string; user: string };
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  joined_at: string;
                  nickname?: null
                  | string;
                  roles?: string[];
                  timeout?: null | string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  colour?: null | string;
                  hoist?: null | boolean;
                  name?: null | string;
                  rank?: null | number;
                  remove?: null | "Colour"[];
              };
              parts: 4;
              path: `/servers/${string}/roles/${string}`;
              response: {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  colour?: null | string;
                  hoist?: null | boolean;
                  name?: null | string;
                  rank?: null | number;
                  remove?: null | "Colour"[];
              };
              parts: 4;
              path: "-/servers/{target}/roles/{role_id}";
              response: {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: { current_password: string; password: string };
              parts: 4;
              path: "/auth/account/change/password";
              response: undefined;
          } & { method: "patch" }
          | {
              method: "patch";
              params: { current_password: string; email: string };
              parts: 4;
              path: "/auth/account/change/email";
              response: undefined;
          } & { method: "patch" }
          | never
          | never
          | never
          | {
              method: "patch";
              params: { password: string; remove_sessions?: boolean; token: string };
              parts: 3;
              path: "/auth/account/reset_password";
              response: undefined;
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: { friendly_name: string };
              parts: 3;
              path: `/auth/session/${string}`;
              response: { _id: string; name: string };
          } & { method: "patch" }
          | {
              method: "patch";
              params: { friendly_name: string };
              parts: 3;
              path: "-/auth/session/{id}";
              response: { _id: string; name: string };
          } & { method: "patch" }
          | never
          | never
          | never
          | {
              method: "patch";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/recovery";
              response: string[];
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | never
          | never
          | never
          | never
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 2;
              path: `/webhooks/${string}`;
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | {
              method: "patch";
              params: {
                  avatar?: null | string;
                  name?: null | string;
                  permissions?: null | number;
                  remove?: "Avatar"[];
              };
              parts: 2;
              path: "-/webhooks/{webhook_id}";
              response: {
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "patch" }
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP POST request.

    +
  • Send HTTP POST request.

    Type Parameters

    • Path extends
          | "/users/friend"
          | "/bots/create"
          | "/channels/create"
          | "/servers/create"
          | "/safety/report"
          | "/auth/account/create"
          | "/auth/account/reverify"
          | "/auth/account/delete"
          | "/auth/account/reset_password"
          | "/auth/session/login"
          | "/auth/mfa/totp"
          | "/onboard/complete"
          | "/push/subscribe"
          | "/sync/settings/fetch"
          | "/sync/settings/set"
          | `/bots/${string}/invite`
          | "-/bots/{target}/invite"
          | `/channels/${string}/webhooks`
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/channels/${string}/invites`
          | "-/channels/{target}/invites"
          | `/channels/${string}/messages`
          | "-/channels/{target}/messages"
          | `/channels/${string}/search`
          | "-/channels/{target}/search"
          | `/channels/${string}/messages/${string}/pin`
          | "-/channels/{target}/messages/{msg}/pin"
          | `/channels/${string}/join_call`
          | "-/channels/{target}/join_call"
          | "-/channels/{target}/webhooks"
          | `/servers/${string}/channels`
          | "-/servers/{server}/channels"
          | `/servers/${string}/roles`
          | "-/servers/{target}/roles"
          | "/auth/account/disable"
          | `/auth/account/verify/${string}`
          | "-/auth/account/verify/{code}"
          | "/auth/session/logout"
          | "/auth/mfa/recovery"
          | "/push/unsubscribe"
          | `/webhooks/${string}/${string}/github`
          | "-/webhooks/{webhook_id}/{token}/github"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { username: string };
              parts: 2;
              path: "/users/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { name: string };
              parts: 2;
              path: "/bots/create";
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: { server: string } | { group: string };
              parts: 3;
              path: `/bots/${string}/invite`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { server: string } | { group: string };
              parts: 3;
              path: "-/bots/{target}/invite";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/invites`;
              response:
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/invites";
              response:
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: `/channels/${string}/messages`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: "-/channels/{target}/messages";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  pinned?: null | boolean;
                  query?: null | string;
                  sort?: "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: `/channels/${string}/search`;
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  pinned?: null | boolean;
                  query?: null | string;
                  sort?: "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: "-/channels/{target}/search";
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/pin`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/pin";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  icon?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  users?: string[];
              };
              parts: 2;
              path: "/channels/create";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/join_call`;
              response: { token: string };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/join_call";
              response: { token: string };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { avatar?: null | string; name: string };
              parts: 3;
              path: `/channels/${string}/webhooks`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { avatar?: null | string; name: string };
              parts: 3;
              path: "-/channels/{target}/webhooks";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
              };
              parts: 2;
              path: "/servers/create";
              response: {
                  channels: (
                      | { _id: string; channel_type: "SavedMessages"; user: string }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                  )[];
                  server: {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  type?: "Text" | "Voice";
              };
              parts: 3;
              path: `/servers/${string}/channels`;
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  type?: "Text" | "Voice";
              };
              parts: 3;
              path: "-/servers/{server}/channels";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { name: string; rank?: null | number };
              parts: 3;
              path: `/servers/${string}/roles`;
              response: {
                  id: string;
                  role: {
                      colour?: null | string;
                      hoist?: boolean;
                      name: string;
                      permissions: { a: number; d: number };
                      rank?: number;
                  };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { name: string; rank?: null | number };
              parts: 3;
              path: "-/servers/{target}/roles";
              response: {
                  id: string;
                  role: {
                      colour?: null | string;
                      hoist?: boolean;
                      name: string;
                      permissions: { a: number; d: number };
                      rank?: number;
                  };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response:
                  | {
                      channels: (
                          | { _id: string; channel_type: "SavedMessages"; user: string }
                          | {
                              _id: string;
                              active: boolean;
                              channel_type: "DirectMessage";
                              last_message_id?: null | string;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "Group";
                              description?: null
                              | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              owner: string;
                              permissions?: null | number;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "TextChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                          | {
                              _id: string;
                              channel_type: "VoiceChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                      )[];
                      server: {
                          _id: string;
                          analytics?: boolean;
                          banner?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          categories?: null
                          | { channels: (...)[]; id: string; title: string }[];
                          channels: string[];
                          default_permissions: number;
                          description?: null | string;
                          discoverable?: boolean;
                          flags?: number;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          roles?: {
                              [key: string]: {
                                  colour?: (...)
                                  | (...)
                                  | (...);
                                  hoist?: (...) | (...) | (...);
                                  name: string;
                                  permissions: { a: ...; d: ... };
                                  rank?: (...) | (...);
                              };
                          };
                          system_messages?: | null
                          | {
                              user_banned?: null
                              | string;
                              user_joined?: null | string;
                              user_kicked?: null | string;
                              user_left?: null | string;
                          };
                      };
                      type: "Server";
                  }
                  | {
                      channel: | {
                          _id: string;
                          channel_type: "SavedMessages";
                          user: string;
                      }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null
                          | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      };
                      type: "Group";
                      users: {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: (...)
                              | (...)
                              | (...)
                              | (...);
                              filename: string;
                              message_id?: (...) | (...) | (...);
                              metadata: (...) | (...) | (...) | (...) | (...);
                              object_id?: (...) | (...) | (...);
                              reported?: (...) | (...) | (...) | (...);
                              server_id?: (...) | (...) | (...);
                              size: number;
                              tag: string;
                              user_id?: (...) | (...) | (...);
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: { _id: ...; status: ... }[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: | null
                          | {
                              presence?: (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              text?: (...) | (...) | (...);
                          };
                          username: string;
                      }[];
                  };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response:
                  | {
                      channels: (
                          | { _id: string; channel_type: "SavedMessages"; user: string }
                          | {
                              _id: string;
                              active: boolean;
                              channel_type: "DirectMessage";
                              last_message_id?: null | string;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "Group";
                              description?: null
                              | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              owner: string;
                              permissions?: null | number;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "TextChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                          | {
                              _id: string;
                              channel_type: "VoiceChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                      )[];
                      server: {
                          _id: string;
                          analytics?: boolean;
                          banner?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          categories?: null
                          | { channels: (...)[]; id: string; title: string }[];
                          channels: string[];
                          default_permissions: number;
                          description?: null | string;
                          discoverable?: boolean;
                          flags?: number;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          roles?: {
                              [key: string]: {
                                  colour?: (...)
                                  | (...)
                                  | (...);
                                  hoist?: (...) | (...) | (...);
                                  name: string;
                                  permissions: { a: ...; d: ... };
                                  rank?: (...) | (...);
                              };
                          };
                          system_messages?: | null
                          | {
                              user_banned?: null
                              | string;
                              user_joined?: null | string;
                              user_kicked?: null | string;
                              user_left?: null | string;
                          };
                      };
                      type: "Server";
                  }
                  | {
                      channel: | {
                          _id: string;
                          channel_type: "SavedMessages";
                          user: string;
                      }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null
                          | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      };
                      type: "Group";
                      users: {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: (...)
                              | (...)
                              | (...)
                              | (...);
                              filename: string;
                              message_id?: (...) | (...) | (...);
                              metadata: (...) | (...) | (...) | (...) | (...);
                              object_id?: (...) | (...) | (...);
                              reported?: (...) | (...) | (...) | (...);
                              server_id?: (...) | (...) | (...);
                              size: number;
                              tag: string;
                              user_id?: (...) | (...) | (...);
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: { _id: ...; status: ... }[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: | null
                          | {
                              presence?: (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              text?: (...) | (...) | (...);
                          };
                          username: string;
                      }[];
                  };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  additional_context?: string;
                  content:
                      | {
                          id: string;
                          report_reason: | "NoneSpecified"
                          | "Illegal"
                          | "IllegalGoods"
                          | "IllegalExtortion"
                          | "IllegalPornography"
                          | "IllegalHacking"
                          | "ExtremeViolence"
                          | "PromotesHarm"
                          | "UnsolicitedSpam"
                          | "Raid"
                          | "SpamAbuse"
                          | "ScamsFraud"
                          | "Malware"
                          | "Harassment";
                          type: "Message";
                      }
                      | {
                          id: string;
                          report_reason: | "NoneSpecified"
                          | "Illegal"
                          | "IllegalGoods"
                          | "IllegalExtortion"
                          | "IllegalPornography"
                          | "IllegalHacking"
                          | "ExtremeViolence"
                          | "PromotesHarm"
                          | "UnsolicitedSpam"
                          | "Raid"
                          | "SpamAbuse"
                          | "ScamsFraud"
                          | "Malware"
                          | "Harassment";
                          type: "Server";
                      }
                      | {
                          id: string;
                          message_id?: null
                          | string;
                          report_reason:
                              | "NoneSpecified"
                              | "UnsolicitedSpam"
                              | "SpamAbuse"
                              | "InappropriateProfile"
                              | "Impersonation"
                              | "BanEvasion"
                              | "Underage";
                          type: "User";
                      };
              };
              parts: 2;
              path: "/safety/report";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  captcha?: null | string;
                  email: string;
                  invite?: null | string;
                  password: string;
              };
              parts: 3;
              path: "/auth/account/create";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { captcha?: null | string; email: string };
              parts: 3;
              path: "/auth/account/reverify";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/account/delete";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/account/disable";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: `/auth/account/verify/${string}`;
              response: unknown;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: "-/auth/account/verify/{code}";
              response: unknown;
          } & { method: "post" }
          | {
              method: "post";
              params: { captcha?: null | string; email: string };
              parts: 3;
              path: "/auth/account/reset_password";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params:
                  | { email: string; friendly_name?: null
                  | string; password: string }
                  | {
                      friendly_name?: null | string;
                      mfa_response?:
                          | null
                          | { password: string }
                          | { recovery_code: string }
                          | { totp_code: string };
                      mfa_ticket: string;
                  };
              parts: 3;
              path: "/auth/session/login";
              response: | {
                  _id: string;
                  last_seen: string;
                  name: string;
                  origin?: null
                  | string;
                  result: "Success";
                  subscription?: null | { auth: string; endpoint: string; p256dh: string };
                  token: string;
                  user_id: string;
              }
              | {
                  allowed_methods: ("Password" | "Recovery" | "Totp")[];
                  result: "MFA";
                  ticket: string;
              }
              | { result: "Disabled"; user_id: string };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/session/logout";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/recovery";
              response: string[];
          } & { method: "post" }
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/totp";
              response: { secret: string };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: { username: string };
              parts: 2;
              path: "/onboard/complete";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { auth: string; endpoint: string; p256dh: string };
              parts: 2;
              path: "/push/subscribe";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: "/push/unsubscribe";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { keys: string[] };
              parts: 3;
              path: "/sync/settings/fetch";
              response: { [key: string]: [number, string] };
          } & { method: "post" }
          | {
              method: "post";
              params: { timestamp?: null | number } | { [key: string]: string };
              parts: 3;
              path: "/sync/settings/set";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: `/webhooks/${string}/${string}/github`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: "-/webhooks/{webhook_id}/{token}/github";
              response: undefined;
          } & { method: "post" }
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP POST request.

    +
  • Send HTTP POST request.

    Type Parameters

    • Path extends
          | "/auth/account/delete"
          | "/auth/mfa/totp"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/channels/${string}/invites`
          | "-/channels/{target}/invites"
          | `/channels/${string}/messages/${string}/pin`
          | "-/channels/{target}/messages/{msg}/pin"
          | `/channels/${string}/join_call`
          | "-/channels/{target}/join_call"
          | "/auth/account/disable"
          | `/auth/account/verify/${string}`
          | "-/auth/account/verify/{code}"
          | "/auth/session/logout"
          | "/auth/mfa/recovery"
          | "/push/unsubscribe"
          | `/webhooks/${string}/${string}/github`
          | "-/webhooks/{webhook_id}/{token}/github"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { username: string };
              parts: 2;
              path: "/users/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { name: string };
              parts: 2;
              path: "/bots/create";
              response: {
                  _id: string;
                  analytics?: boolean;
                  discoverable?: boolean;
                  flags?: number;
                  interactions_url?: string;
                  owner: string;
                  privacy_policy_url?: string;
                  public: boolean;
                  terms_of_service_url?: string;
                  token: string;
                  user: {
                      _id: string;
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: { server: string } | { group: string };
              parts: 3;
              path: `/bots/${string}/invite`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { server: string } | { group: string };
              parts: 3;
              path: "-/bots/{target}/invite";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/invites`;
              response:
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/invites";
              response:
                  | {
                      _id: string;
                      channel: string;
                      creator: string;
                      server: string;
                      type: "Server";
                  }
                  | { _id: string; channel: string; creator: string; type: "Group" };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: `/channels/${string}/messages`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: "-/channels/{target}/messages";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  pinned?: null | boolean;
                  query?: null | string;
                  sort?: "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: `/channels/${string}/search`;
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  after?: null | string;
                  before?: null | string;
                  include_users?: null | boolean;
                  limit?: null | number;
                  pinned?: null | boolean;
                  query?: null | string;
                  sort?: "Relevance" | "Latest" | "Oldest";
              };
              parts: 3;
              path: "-/channels/{target}/search";
              response: | {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: (...)
                      | (...)
                      | (...)
                      | (...);
                      filename: string;
                      message_id?: (...) | (...) | (...);
                      metadata: (...) | (...) | (...) | (...) | (...);
                      object_id?: (...) | (...) | (...);
                      reported?: (...) | (...) | (...) | (...);
                      server_id?: (...) | (...) | (...);
                      size: number;
                      tag: string;
                      user_id?: (...) | (...) | (...);
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              image?: ...;
                              original_url?: ...;
                              site_name?: ...;
                              special?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                              video?: ...;
                          }
                          | { height: ...; size: ...; type: ...; url: ...; width: ... }
                          | { height: ...; type: ...; url: ...; width: ... }
                          | {
                              colour?: ...;
                              description?: ...;
                              icon_url?: ...;
                              media?: ...;
                              title?: ...;
                              type: ...;
                              url?: ...;
                          }
                          | { type: ... }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | (...)[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: ... };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: (...)[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: null
                          | { presence?: ...; text?: ... };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              }[]
              | {
                  members?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: ...;
                              content_type: ...;
                              deleted?: ...;
                              filename: ...;
                              message_id?: ...;
                              metadata: ...;
                              object_id?: ...;
                              reported?: ...;
                              server_id?: ...;
                              size: ...;
                              tag: ...;
                              user_id?: ...;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: (...)[];
                      timeout?: null | string;
                  }[];
                  messages: {
                      _id: string;
                      attachments?: | null
                      | {
                          _id: ...;
                          content_type: ...;
                          deleted?: ...;
                          filename: ...;
                          message_id?: ...;
                          metadata: ...;
                          object_id?: ...;
                          reported?: ...;
                          server_id?: ...;
                          size: ...;
                          tag: ...;
                          user_id?: ...;
                      }[];
                      author: string;
                      channel: string;
                      content?: null
                      | string;
                      edited?: null | string;
                      embeds?: null | ((...) | (...) | (...) | (...) | (...))[];
                      flags?: number;
                      interactions?: {
                          reactions?: (...) | (...) | (...);
                          restrict_reactions?: (...) | (...) | (...);
                      };
                      masquerade?: | null
                      | {
                          avatar?: (...)
                          | (...)
                          | (...);
                          colour?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      };
                      member?: | null
                      | {
                          _id: { server: ...; user: ... };
                          avatar?: (...) | (...) | (...);
                          joined_at: string;
                          nickname?: (...) | (...) | (...);
                          roles?: (...) | (...);
                          timeout?: (...) | (...) | (...);
                      };
                      mentions?: null
                      | string[];
                      nonce?: null | string;
                      pinned?: null | boolean;
                      reactions?: { [key: string]: (...)[] };
                      replies?: null | string[];
                      role_mentions?: null | string[];
                      system?:
                          | null
                          | { content: string; type: "text" }
                          | { by: string; id: string; type: "user_added" }
                          | { by: string; id: string; type: "user_remove" }
                          | { id: string; type: "user_joined" }
                          | { id: string; type: "user_left" }
                          | { id: string; type: "user_kicked" }
                          | { id: string; type: "user_banned" }
                          | { by: string; name: string; type: "channel_renamed" }
                          | { by: string; type: "channel_description_changed" }
                          | { by: string; type: "channel_icon_changed" }
                          | { from: string; to: string; type: "channel_ownership_changed" }
                          | { by: string; id: string; type: "message_pinned" }
                          | { by: string; id: string; type: "message_unpinned" };
                      user?:
                          | null
                          | {
                              _id: string;
                              avatar?: (...)
                              | (...)
                              | (...);
                              badges?: (...) | (...);
                              bot?: (...) | (...) | (...);
                              discriminator: string;
                              display_name?: (...) | (...) | (...);
                              flags?: (...) | (...);
                              online: boolean;
                              privileged?: (...) | (...) | (...);
                              relations?: (...) | (...);
                              relationship: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              status?: (...) | (...) | (...);
                              username: string;
                          };
                      webhook?: null
                      | { avatar?: (...) | (...) | (...); name: string };
                  }[];
                  users: {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: (...)
                          | (...)
                          | (...)
                          | (...);
                          filename: string;
                          message_id?: (...) | (...) | (...);
                          metadata: (...) | (...) | (...) | (...) | (...);
                          object_id?: (...) | (...) | (...);
                          reported?: (...) | (...) | (...) | (...);
                          server_id?: (...) | (...) | (...);
                          size: number;
                          tag: string;
                          user_id?: (...) | (...) | (...);
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: { _id: ...; status: ... }[];
                      relationship:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                      status?: | null
                      | {
                          presence?: (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...)
                          | (...);
                          text?: (...) | (...) | (...);
                      };
                      username: string;
                  }[];
              };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 5;
              path: `/channels/${string}/messages/${string}/pin`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 5;
              path: "-/channels/{target}/messages/{msg}/pin";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  icon?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  users?: string[];
              };
              parts: 2;
              path: "/channels/create";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: `/channels/${string}/join_call`;
              response: { token: string };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "-/channels/{target}/join_call";
              response: { token: string };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { avatar?: null | string; name: string };
              parts: 3;
              path: `/channels/${string}/webhooks`;
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { avatar?: null | string; name: string };
              parts: 3;
              path: "-/channels/{target}/webhooks";
              response: {
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  channel_id: string;
                  creator_id: string;
                  id: string;
                  name: string;
                  permissions: number;
                  token?: null
                  | string;
              };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
              };
              parts: 2;
              path: "/servers/create";
              response: {
                  channels: (
                      | { _id: string; channel_type: "SavedMessages"; user: string }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                  )[];
                  server: {
                      _id: string;
                      analytics?: boolean;
                      banner?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      categories?: null
                      | { channels: string[]; id: string; title: string }[];
                      channels: string[];
                      default_permissions: number;
                      description?: null | string;
                      discoverable?: boolean;
                      flags?: number;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      roles?: {
                          [key: string]: {
                              colour?: null
                              | string;
                              hoist?: boolean;
                              name: string;
                              permissions: { a: number; d: number };
                              rank?: number;
                          };
                      };
                      system_messages?: | null
                      | {
                          user_banned?: null
                          | string;
                          user_joined?: null | string;
                          user_kicked?: null | string;
                          user_left?: null | string;
                      };
                  };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  type?: "Text" | "Voice";
              };
              parts: 3;
              path: `/servers/${string}/channels`;
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  description?: null | string;
                  name: string;
                  nsfw?: null | boolean;
                  type?: "Text" | "Voice";
              };
              parts: 3;
              path: "-/servers/{server}/channels";
              response: | { _id: string; channel_type: "SavedMessages"; user: string }
              | {
                  _id: string;
                  active: boolean;
                  channel_type: "DirectMessage";
                  last_message_id?: null | string;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "Group";
                  description?: null
                  | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  permissions?: null | number;
                  recipients: string[];
              }
              | {
                  _id: string;
                  channel_type: "TextChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  last_message_id?: null
                  | string;
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              }
              | {
                  _id: string;
                  channel_type: "VoiceChannel";
                  default_permissions?: null
                  | { a: number; d: number };
                  description?: null | string;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  role_permissions?: { [key: string]: { a: number; d: number } };
                  server: string;
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: { name: string; rank?: null | number };
              parts: 3;
              path: `/servers/${string}/roles`;
              response: {
                  id: string;
                  role: {
                      colour?: null | string;
                      hoist?: boolean;
                      name: string;
                      permissions: { a: number; d: number };
                      rank?: number;
                  };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { name: string; rank?: null | number };
              parts: 3;
              path: "-/servers/{target}/roles";
              response: {
                  id: string;
                  role: {
                      colour?: null | string;
                      hoist?: boolean;
                      name: string;
                      permissions: { a: number; d: number };
                      rank?: number;
                  };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: `/invites/${string}`;
              response:
                  | {
                      channels: (
                          | { _id: string; channel_type: "SavedMessages"; user: string }
                          | {
                              _id: string;
                              active: boolean;
                              channel_type: "DirectMessage";
                              last_message_id?: null | string;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "Group";
                              description?: null
                              | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              owner: string;
                              permissions?: null | number;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "TextChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                          | {
                              _id: string;
                              channel_type: "VoiceChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                      )[];
                      server: {
                          _id: string;
                          analytics?: boolean;
                          banner?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          categories?: null
                          | { channels: (...)[]; id: string; title: string }[];
                          channels: string[];
                          default_permissions: number;
                          description?: null | string;
                          discoverable?: boolean;
                          flags?: number;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          roles?: {
                              [key: string]: {
                                  colour?: (...)
                                  | (...)
                                  | (...);
                                  hoist?: (...) | (...) | (...);
                                  name: string;
                                  permissions: { a: ...; d: ... };
                                  rank?: (...) | (...);
                              };
                          };
                          system_messages?: | null
                          | {
                              user_banned?: null
                              | string;
                              user_joined?: null | string;
                              user_kicked?: null | string;
                              user_left?: null | string;
                          };
                      };
                      type: "Server";
                  }
                  | {
                      channel: | {
                          _id: string;
                          channel_type: "SavedMessages";
                          user: string;
                      }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null
                          | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      };
                      type: "Group";
                      users: {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: (...)
                              | (...)
                              | (...)
                              | (...);
                              filename: string;
                              message_id?: (...) | (...) | (...);
                              metadata: (...) | (...) | (...) | (...) | (...);
                              object_id?: (...) | (...) | (...);
                              reported?: (...) | (...) | (...) | (...);
                              server_id?: (...) | (...) | (...);
                              size: number;
                              tag: string;
                              user_id?: (...) | (...) | (...);
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: { _id: ...; status: ... }[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: | null
                          | {
                              presence?: (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              text?: (...) | (...) | (...);
                          };
                          username: string;
                      }[];
                  };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: "-/invites/{target}";
              response:
                  | {
                      channels: (
                          | { _id: string; channel_type: "SavedMessages"; user: string }
                          | {
                              _id: string;
                              active: boolean;
                              channel_type: "DirectMessage";
                              last_message_id?: null | string;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "Group";
                              description?: null
                              | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              owner: string;
                              permissions?: null | number;
                              recipients: string[];
                          }
                          | {
                              _id: string;
                              channel_type: "TextChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              last_message_id?: null
                              | string;
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                          | {
                              _id: string;
                              channel_type: "VoiceChannel";
                              default_permissions?: null
                              | { a: ...; d: ... };
                              description?: null | string;
                              icon?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              name: string;
                              nsfw?: boolean;
                              role_permissions?: { [key: ...]: ... };
                              server: string;
                          }
                      )[];
                      server: {
                          _id: string;
                          analytics?: boolean;
                          banner?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          categories?: null
                          | { channels: (...)[]; id: string; title: string }[];
                          channels: string[];
                          default_permissions: number;
                          description?: null | string;
                          discoverable?: boolean;
                          flags?: number;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: ... }
                                      | { type: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { height: ...; type: ...; width: ... }
                                      | { type: ... };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          roles?: {
                              [key: string]: {
                                  colour?: (...)
                                  | (...)
                                  | (...);
                                  hoist?: (...) | (...) | (...);
                                  name: string;
                                  permissions: { a: ...; d: ... };
                                  rank?: (...) | (...);
                              };
                          };
                          system_messages?: | null
                          | {
                              user_banned?: null
                              | string;
                              user_joined?: null | string;
                              user_kicked?: null | string;
                              user_left?: null | string;
                          };
                      };
                      type: "Server";
                  }
                  | {
                      channel: | {
                          _id: string;
                          channel_type: "SavedMessages";
                          user: string;
                      }
                      | {
                          _id: string;
                          active: boolean;
                          channel_type: "DirectMessage";
                          last_message_id?: null
                          | string;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "Group";
                          description?: null
                          | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          owner: string;
                          permissions?: null | number;
                          recipients: string[];
                      }
                      | {
                          _id: string;
                          channel_type: "TextChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          last_message_id?: null
                          | string;
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      }
                      | {
                          _id: string;
                          channel_type: "VoiceChannel";
                          default_permissions?: null
                          | { a: number; d: number };
                          description?: null | string;
                          icon?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  filename: string;
                                  message_id?: (...) | (...) | (...);
                                  metadata: (...) | (...) | (...) | (...) | (...);
                                  object_id?: (...) | (...) | (...);
                                  reported?: (...) | (...) | (...) | (...);
                                  server_id?: (...) | (...) | (...);
                                  size: number;
                                  tag: string;
                                  user_id?: (...) | (...) | (...);
                              };
                          name: string;
                          nsfw?: boolean;
                          role_permissions?: { [key: string]: { a: ...; d: ... } };
                          server: string;
                      };
                      type: "Group";
                      users: {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: (...)
                              | (...)
                              | (...)
                              | (...);
                              filename: string;
                              message_id?: (...) | (...) | (...);
                              metadata: (...) | (...) | (...) | (...) | (...);
                              object_id?: (...) | (...) | (...);
                              reported?: (...) | (...) | (...) | (...);
                              server_id?: (...) | (...) | (...);
                              size: number;
                              tag: string;
                              user_id?: (...) | (...) | (...);
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: { _id: ...; status: ... }[];
                          relationship:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                          status?: | null
                          | {
                              presence?: (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              text?: (...) | (...) | (...);
                          };
                          username: string;
                      }[];
                  };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  additional_context?: string;
                  content:
                      | {
                          id: string;
                          report_reason: | "NoneSpecified"
                          | "Illegal"
                          | "IllegalGoods"
                          | "IllegalExtortion"
                          | "IllegalPornography"
                          | "IllegalHacking"
                          | "ExtremeViolence"
                          | "PromotesHarm"
                          | "UnsolicitedSpam"
                          | "Raid"
                          | "SpamAbuse"
                          | "ScamsFraud"
                          | "Malware"
                          | "Harassment";
                          type: "Message";
                      }
                      | {
                          id: string;
                          report_reason: | "NoneSpecified"
                          | "Illegal"
                          | "IllegalGoods"
                          | "IllegalExtortion"
                          | "IllegalPornography"
                          | "IllegalHacking"
                          | "ExtremeViolence"
                          | "PromotesHarm"
                          | "UnsolicitedSpam"
                          | "Raid"
                          | "SpamAbuse"
                          | "ScamsFraud"
                          | "Malware"
                          | "Harassment";
                          type: "Server";
                      }
                      | {
                          id: string;
                          message_id?: null
                          | string;
                          report_reason:
                              | "NoneSpecified"
                              | "UnsolicitedSpam"
                              | "SpamAbuse"
                              | "InappropriateProfile"
                              | "Impersonation"
                              | "BanEvasion"
                              | "Underage";
                          type: "User";
                      };
              };
              parts: 2;
              path: "/safety/report";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  captcha?: null | string;
                  email: string;
                  invite?: null | string;
                  password: string;
              };
              parts: 3;
              path: "/auth/account/create";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { captcha?: null | string; email: string };
              parts: 3;
              path: "/auth/account/reverify";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/account/delete";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/account/disable";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: `/auth/account/verify/${string}`;
              response: unknown;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: "-/auth/account/verify/{code}";
              response: unknown;
          } & { method: "post" }
          | {
              method: "post";
              params: { captcha?: null | string; email: string };
              parts: 3;
              path: "/auth/account/reset_password";
              response: undefined;
          } & { method: "post" }
          | never
          | {
              method: "post";
              params:
                  | { email: string; friendly_name?: null
                  | string; password: string }
                  | {
                      friendly_name?: null | string;
                      mfa_response?:
                          | null
                          | { password: string }
                          | { recovery_code: string }
                          | { totp_code: string };
                      mfa_ticket: string;
                  };
              parts: 3;
              path: "/auth/session/login";
              response: | {
                  _id: string;
                  last_seen: string;
                  name: string;
                  origin?: null
                  | string;
                  result: "Success";
                  subscription?: null | { auth: string; endpoint: string; p256dh: string };
                  token: string;
                  user_id: string;
              }
              | {
                  allowed_methods: ("Password" | "Recovery" | "Totp")[];
                  result: "MFA";
                  ticket: string;
              }
              | { result: "Disabled"; user_id: string };
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/session/logout";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/recovery";
              response: string[];
          } & { method: "post" }
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 3;
              path: "/auth/mfa/totp";
              response: { secret: string };
          } & { method: "post" }
          | never
          | never
          | {
              method: "post";
              params: { username: string };
              parts: 2;
              path: "/onboard/complete";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "post" }
          | {
              method: "post";
              params: { auth: string; endpoint: string; p256dh: string };
              parts: 2;
              path: "/push/subscribe";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 2;
              path: "/push/unsubscribe";
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: { keys: string[] };
              parts: 3;
              path: "/sync/settings/fetch";
              response: { [key: string]: [number, string] };
          } & { method: "post" }
          | {
              method: "post";
              params: { timestamp?: null | number } | { [key: string]: string };
              parts: 3;
              path: "/sync/settings/set";
              response: undefined;
          } & { method: "post" }
          | never
          | never
          | never
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: `/webhooks/${string}/${string}`;
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | {
              method: "post";
              params: {
                  attachments?: null | string[];
                  content?: null | string;
                  embeds?:
                      | null
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?: null | string;
                          title?: null | string;
                          url?: null | string;
                      }[];
                  flags?: null
                  | number;
                  interactions?:
                      | null
                      | { reactions?: null
                      | string[]; restrict_reactions?: boolean };
                  masquerade?:
                      | null
                      | {
                          avatar?: null
                          | string;
                          colour?: null | string;
                          name?: null | string;
                      };
                  nonce?: null
                  | string;
                  replies?:
                      | null
                      | { fail_if_not_exists?: null
                      | boolean; id: string; mention: boolean }[];
              };
              parts: 3;
              path: "-/webhooks/{webhook_id}/{token}";
              response: {
                  _id: string;
                  attachments?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  }[];
                  author: string;
                  channel: string;
                  content?: null
                  | string;
                  edited?: null | string;
                  embeds?:
                      | null
                      | (
                          | {
                              colour?: null
                              | string;
                              description?: null | string;
                              icon_url?: null | string;
                              image?: null | { height: ...; size: ...; url: ...; width: ... };
                              original_url?: null | string;
                              site_name?: null | string;
                              special?:
                                  | null
                                  | { type: ... }
                                  | { type: ... }
                                  | { id: ...; timestamp?: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { type: ... }
                                  | { content_type: ...; id: ...; type: ... }
                                  | { album_id: ...; track_id?: ...; type: ... }
                                  | { id: ...; type: ... };
                              title?: null | string;
                              type: "Website";
                              url?: null | string;
                              video?: null | { height: ...; url: ...; width: ... };
                          }
                          | {
                              height: number;
                              size: "Large"
                              | "Preview";
                              type: "Image";
                              url: string;
                              width: number;
                          }
                          | { height: number; type: "Video"; url: string; width: number }
                          | {
                              colour?: null | string;
                              description?: null | string;
                              icon_url?: null | string;
                              media?:
                                  | null
                                  | {
                                      _id: ...;
                                      content_type: ...;
                                      deleted?: ...;
                                      filename: ...;
                                      message_id?: ...;
                                      metadata: ...;
                                      object_id?: ...;
                                      reported?: ...;
                                      server_id?: ...;
                                      size: ...;
                                      tag: ...;
                                      user_id?: ...;
                                  };
                              title?: null
                              | string;
                              type: "Text";
                              url?: null | string;
                          }
                          | { type: "None" }
                      )[];
                  flags?: number;
                  interactions?: {
                      reactions?: null | string[];
                      restrict_reactions?: boolean;
                  };
                  masquerade?: | null
                  | {
                      avatar?: null
                      | string;
                      colour?: null | string;
                      name?: null | string;
                  };
                  member?: | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
                  mentions?: null
                  | string[];
                  nonce?: null | string;
                  pinned?: null | boolean;
                  reactions?: { [key: string]: string[] };
                  replies?: null | string[];
                  role_mentions?: null | string[];
                  system?:
                      | null
                      | { content: string; type: "text" }
                      | { by: string; id: string; type: "user_added" }
                      | { by: string; id: string; type: "user_remove" }
                      | { id: string; type: "user_joined" }
                      | { id: string; type: "user_left" }
                      | { id: string; type: "user_kicked" }
                      | { id: string; type: "user_banned" }
                      | { by: string; name: string; type: "channel_renamed" }
                      | { by: string; type: "channel_description_changed" }
                      | { by: string; type: "channel_icon_changed" }
                      | { from: string; to: string; type: "channel_ownership_changed" }
                      | { by: string; id: string; type: "message_pinned" }
                      | { by: string; id: string; type: "message_unpinned" };
                  user?:
                      | null
                      | {
                          _id: string;
                          avatar?: | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: ... }
                                  | { type: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { height: ...; type: ...; width: ... }
                                  | { type: ... };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                          badges?: number;
                          bot?: null
                          | { owner: string };
                          discriminator: string;
                          display_name?: null | string;
                          flags?: number;
                          online: boolean;
                          privileged?: boolean;
                          relations?: {
                              _id: string;
                              status: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                          }[];
                          relationship: | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                          status?: | null
                          | {
                              presence?: | null
                              | "Online"
                              | "Idle"
                              | "Focus"
                              | "Busy"
                              | "Invisible";
                              text?: null
                              | string;
                          };
                          username: string;
                      };
                  webhook?: null
                  | { avatar?: null | string; name: string };
              };
          } & { method: "post" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: `/webhooks/${string}/${string}/github`;
              response: undefined;
          } & { method: "post" }
          | {
              method: "post";
              params: undefined;
              parts: 4;
              path: "-/webhooks/{webhook_id}/{token}/github";
              response: undefined;
          } & { method: "post" }
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP PUT request.

    +
  • Send HTTP PUT request.

    Type Parameters

    • Path extends
          | "/auth/account/delete"
          | "/auth/mfa/ticket"
          | "/auth/mfa/totp"
          | `/custom/emoji/${string}`
          | `/users/${string}/friend`
          | "-/users/{target}/friend"
          | `/users/${string}/block`
          | "-/users/{target}/block"
          | `/channels/${string}/ack/${string}`
          | "-/channels/{target}/ack/{message}"
          | `/channels/${string}/recipients/${string}`
          | "-/channels/{group_id}/recipients/{member_id}"
          | `/channels/${string}/permissions/${string}`
          | "-/channels/{target}/permissions/{role_id}"
          | `/channels/${string}/permissions/default`
          | "-/channels/{target}/permissions/default"
          | `/channels/${string}/messages/${string}/reactions/${string}`
          | "-/channels/{target}/messages/{msg}/reactions/{emoji}"
          | `/servers/${string}/ack`
          | "-/servers/{target}/ack"
          | `/servers/${string}/bans/${string}`
          | "-/servers/{server}/bans/{target}"
          | `/servers/${string}/permissions/${string}`
          | "-/servers/{target}/permissions/{role_id}"
          | `/servers/${string}/permissions/default`
          | "-/servers/{target}/permissions/default"
          | "-/custom/emoji/{id}"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/users/${string}/friend`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/users/${string}/block`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/block";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/ack/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/ack/{message}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/recipients/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: "-/channels/{group_id}/recipients/{member_id}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: `/channels/${string}/permissions/${string}`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: "-/channels/{target}/permissions/{role_id}";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: `/channels/${string}/permissions/default`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: "-/channels/{target}/permissions/default";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 6;
              path: `/channels/${string}/messages/${string}/reactions/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 6;
              path: "-/channels/{target}/messages/{msg}/reactions/{emoji}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/ack`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/ack";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { reason?: null | string };
              parts: 4;
              path: `/servers/${string}/bans/${string}`;
              response: {
                  _id: { server: string; user: string };
                  reason?: null | string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { reason?: null | string };
              parts: 4;
              path: "-/servers/{server}/bans/{target}";
              response: {
                  _id: { server: string; user: string };
                  reason?: null | string;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: `/servers/${string}/permissions/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: "-/servers/{target}/permissions/{role_id}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: `/servers/${string}/permissions/default`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: "-/servers/{target}/permissions/default";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: {
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" }
                  | { type: "Detached" };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: {
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
              parts: 3;
              path: "-/custom/emoji/{id}";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" }
                  | { type: "Detached" };
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { token: string };
              parts: 3;
              path: "/auth/account/delete";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params:
                  | { password: string }
                  | { recovery_code: string }
                  | { totp_code: string };
              parts: 3;
              path: "/auth/mfa/ticket";
              response: {
                  _id: string;
                  account_id: string;
                  authorised: boolean;
                  last_totp_code?: null | string;
                  token: string;
                  validated: boolean;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params:
                  | { password: string }
                  | { recovery_code: string }
                  | { totp_code: string };
              parts: 3;
              path: "/auth/mfa/totp";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send HTTP PUT request.

    +
  • Send HTTP PUT request.

    Type Parameters

    • Path extends
          | `/users/${string}/friend`
          | "-/users/{target}/friend"
          | `/users/${string}/block`
          | "-/users/{target}/block"
          | `/channels/${string}/ack/${string}`
          | "-/channels/{target}/ack/{message}"
          | `/channels/${string}/recipients/${string}`
          | "-/channels/{group_id}/recipients/{member_id}"
          | `/channels/${string}/messages/${string}/reactions/${string}`
          | "-/channels/{target}/messages/{msg}/reactions/{emoji}"
          | `/servers/${string}/ack`
          | "-/servers/{target}/ack"
    • Route extends (
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/users/${string}/friend`;
              response: {
                  _id: string;
                  avatar?: | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/friend";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/users/${string}/block`;
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/users/{target}/block";
              response: {
                  _id: string;
                  avatar?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  badges?: number;
                  bot?: null
                  | { owner: string };
                  discriminator: string;
                  display_name?: null | string;
                  flags?: number;
                  online: boolean;
                  privileged?: boolean;
                  relations?: {
                      _id: string;
                      status:
                          | "User"
                          | "None"
                          | "Friend"
                          | "Outgoing"
                          | "Incoming"
                          | "Blocked"
                          | "BlockedOther";
                  }[];
                  relationship: | "User"
                  | "None"
                  | "Friend"
                  | "Outgoing"
                  | "Incoming"
                  | "Blocked"
                  | "BlockedOther";
                  status?: | null
                  | {
                      presence?: null
                      | "Online"
                      | "Idle"
                      | "Focus"
                      | "Busy"
                      | "Invisible";
                      text?: null | string;
                  };
                  username: string;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/ack/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: "-/channels/{target}/ack/{message}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: `/channels/${string}/recipients/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 4;
              path: "-/channels/{group_id}/recipients/{member_id}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: `/channels/${string}/permissions/${string}`;
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: "-/channels/{target}/permissions/{role_id}";
              response:
                  | { _id: string; channel_type: "SavedMessages"; user: string }
                  | {
                      _id: string;
                      active: boolean;
                      channel_type: "DirectMessage";
                      last_message_id?: null | string;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "Group";
                      description?: null
                      | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      owner: string;
                      permissions?: null | number;
                      recipients: string[];
                  }
                  | {
                      _id: string;
                      channel_type: "TextChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      last_message_id?: null
                      | string;
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  }
                  | {
                      _id: string;
                      channel_type: "VoiceChannel";
                      default_permissions?: null
                      | { a: number; d: number };
                      description?: null | string;
                      icon?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      name: string;
                      nsfw?: boolean;
                      role_permissions?: { [key: string]: { a: number; d: number } };
                      server: string;
                  };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: `/channels/${string}/permissions/default`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: "-/channels/{target}/permissions/default";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 6;
              path: `/channels/${string}/messages/${string}/reactions/${string}`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 6;
              path: "-/channels/{target}/messages/{msg}/reactions/{emoji}";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: `/servers/${string}/ack`;
              response: undefined;
          } & { method: "put" }
          | {
              method: "put";
              params: undefined;
              parts: 3;
              path: "-/servers/{target}/ack";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { reason?: null | string };
              parts: 4;
              path: `/servers/${string}/bans/${string}`;
              response: {
                  _id: { server: string; user: string };
                  reason?: null | string;
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { reason?: null | string };
              parts: 4;
              path: "-/servers/{server}/bans/{target}";
              response: {
                  _id: { server: string; user: string };
                  reason?: null | string;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: `/servers/${string}/permissions/${string}`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: { allow: number; deny: number } };
              parts: 4;
              path: "-/servers/{target}/permissions/{role_id}";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: `/servers/${string}/permissions/default`;
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: { permissions: number };
              parts: 4;
              path: "-/servers/{target}/permissions/default";
              response: {
                  _id: string;
                  analytics?: boolean;
                  banner?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  categories?: null
                  | { channels: string[]; id: string; title: string }[];
                  channels: string[];
                  default_permissions: number;
                  description?: null | string;
                  discoverable?: boolean;
                  flags?: number;
                  icon?:
                      | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                  name: string;
                  nsfw?: boolean;
                  owner: string;
                  roles?: {
                      [key: string]: {
                          colour?: null
                          | string;
                          hoist?: boolean;
                          name: string;
                          permissions: { a: number; d: number };
                          rank?: number;
                      };
                  };
                  system_messages?: | null
                  | {
                      user_banned?: null
                      | string;
                      user_joined?: null | string;
                      user_kicked?: null | string;
                      user_left?: null | string;
                  };
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: {
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
              parts: 3;
              path: `/custom/emoji/${string}`;
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" }
                  | { type: "Detached" };
              };
          } & { method: "put" }
          | {
              method: "put";
              params: {
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" } | { type: "Detached" };
              };
              parts: 3;
              path: "-/custom/emoji/{id}";
              response: {
                  _id: string;
                  animated?: boolean;
                  creator_id: string;
                  name: string;
                  nsfw?: boolean;
                  parent: { id: string; type: "Server" }
                  | { type: "Detached" };
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params: { token: string };
              parts: 3;
              path: "/auth/account/delete";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params:
                  | { password: string }
                  | { recovery_code: string }
                  | { totp_code: string };
              parts: 3;
              path: "/auth/mfa/ticket";
              response: {
                  _id: string;
                  account_id: string;
                  authorised: boolean;
                  last_totp_code?: null | string;
                  token: string;
                  validated: boolean;
              };
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | {
              method: "put";
              params:
                  | { password: string }
                  | { recovery_code: string }
                  | { totp_code: string };
              parts: 3;
              path: "/auth/mfa/totp";
              response: undefined;
          } & { method: "put" }
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
          | never
      ) & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
  • Send any arbitrary request.

    +
  • Send any arbitrary request.

    Type Parameters

    • Method extends "get" | "patch" | "put" | "delete" | "post"
    • Routes extends PickRoutes<Method>
    • Path extends
          | "/safety/report"
          | "/auth/account/create"
          | "/auth/account/reverify"
          | "/auth/account/delete"
          | "/auth/account/change/password"
          | "/auth/account/change/email"
          | "/auth/account/reset_password"
          | "/auth/mfa/ticket"
          | "/auth/mfa/totp"
          | "/onboard/complete"
          | "/push/subscribe"
          | "/sync/settings/fetch"
          | "/sync/settings/set"
          | "/"
          | `/users/${string}`
          | "-/users/{target}"
          | `/users/${string}/flags`
          | "-/users/{target}/flags"
          | `/users/${string}/default_avatar`
          | "-/users/{target}/default_avatar"
          | `/users/${string}/profile`
          | "-/users/{target}/profile"
          | `/users/${string}/dm`
          | "-/users/{target}/dm"
          | `/users/${string}/mutual`
          | "-/users/{target}/mutual"
          | `/bots/${string}/invite`
          | "-/bots/{target}/invite"
          | `/bots/${string}`
          | "-/bots/{bot}"
          | `/channels/${string}`
          | "-/channels/{target}"
          | `/channels/${string}/members`
          | "-/channels/{target}/members"
          | `/channels/${string}/messages/${string}`
          | "-/channels/{target}/messages/{msg}"
          | `/channels/${string}/webhooks`
          | "-/channels/{channel_id}/webhooks"
          | `/servers/${string}/bans`
          | "-/servers/{target}/bans"
          | `/servers/${string}/invites`
          | "-/servers/{target}/invites"
          | `/servers/${string}/roles/${string}`
          | "-/servers/{target}/roles/{role_id}"
          | `/servers/${string}/emojis`
          | "-/servers/{target}/emojis"
          | `/invites/${string}`
          | "-/invites/{target}"
          | `/custom/emoji/${string}`
          | "-/custom/emoji/{emoji_id}"
          | "/auth/account/"
          | "/auth/mfa/"
          | "/auth/mfa/methods"
          | "/onboard/hello"
          | "/sync/unreads"
          | `/webhooks/${string}/${string}`
          | "-/webhooks/{webhook_id}/{token}"
          | `/webhooks/${string}`
          | "-/webhooks/{webhook_id}"
          | `/users/${string}/friend`
          | "-/users/{target}/friend"
          | `/users/${string}/block`
          | "-/users/{target}/block"
          | "-/bots/{target}"
          | `/channels/${string}/ack/${string}`
          | "-/channels/{target}/ack/{message}"
          | `/channels/${string}/invites`
          | "-/channels/{target}/invites"
          | `/channels/${string}/messages`
          | "-/channels/{target}/messages"
          | `/channels/${string}/search`
          | "-/channels/{target}/search"
          | `/channels/${string}/messages/${string}/pin`
          | "-/channels/{target}/messages/{msg}/pin"
          | `/channels/${string}/messages/bulk`
          | "-/channels/{target}/messages/bulk"
          | `/channels/${string}/recipients/${string}`
          | "-/channels/{group_id}/recipients/{member_id}"
          | "-/channels/{target}/recipients/{member}"
          | `/channels/${string}/join_call`
          | "-/channels/{target}/join_call"
          | `/channels/${string}/permissions/${string}`
          | "-/channels/{target}/permissions/{role_id}"
          | `/channels/${string}/permissions/default`
          | "-/channels/{target}/permissions/default"
          | `/channels/${string}/messages/${string}/reactions/${string}`
          | "-/channels/{target}/messages/{msg}/reactions/{emoji}"
          | `/channels/${string}/messages/${string}/reactions`
          | "-/channels/{target}/messages/{msg}/reactions"
          | "-/channels/{target}/webhooks"
          | `/servers/${string}`
          | "-/servers/{target}"
          | `/servers/${string}/ack`
          | "-/servers/{target}/ack"
          | `/servers/${string}/channels`
          | "-/servers/{server}/channels"
          | `/servers/${string}/members`
          | "-/servers/{target}/members"
          | `/servers/${string}/members/${string}`
          | "-/servers/{target}/members/{member}"
          | "-/servers/{server}/members/{member}"
          | `/servers/${string}/members_experimental_query`
          | "-/servers/{target}/members_experimental_query"
          | `/servers/${string}/bans/${string}`
          | "-/servers/{server}/bans/{target}"
          | `/servers/${string}/roles`
          | "-/servers/{target}/roles"
          | `/servers/${string}/permissions/${string}`
          | "-/servers/{target}/permissions/{role_id}"
          | `/servers/${string}/permissions/default`
          | "-/servers/{target}/permissions/default"
          | "-/custom/emoji/{id}"
          | "/auth/account/disable"
          | `/auth/account/verify/${string}`
          | "-/auth/account/verify/{code}"
          | `/auth/session/${string}`
          | "-/auth/session/{id}"
          | "/auth/mfa/recovery"
          | "/push/unsubscribe"
          | `/webhooks/${string}/${string}/github`
          | "-/webhooks/{webhook_id}/{token}/github"
    • Route extends PickRoutes<Method> & { parts: Count<Path, "/">; path: Path }

    Parameters

    Returns Promise<Route["response"]>

    Typed Response Data

    -
+
diff --git a/classes/BannedUser.html b/classes/BannedUser.html index 4aee2426..f0017607 100644 --- a/classes/BannedUser.html +++ b/classes/BannedUser.html @@ -1,5 +1,5 @@ BannedUser | revolt.js

Class BannedUser

Banned User

-

Constructors

Constructors

Properties

avatar? discriminator id @@ -11,4 +11,4 @@
  • Optionalavatar?:
        | null
        | {
            _id: string;
            content_type: string;
            deleted?: null
            | boolean;
            filename: string;
            message_id?: null | string;
            metadata:
                | { type: "File" }
                | { type: "Text" }
                | { height: number; type: "Image"; width: number }
                | { height: number; type: "Video"; width: number }
                | { type: "Audio" };
            object_id?: null | string;
            reported?: null | boolean;
            server_id?: null | string;
            size: number;
            tag: string;
            user_id?: null | string;
        }

    Avatar of the banned user

  • discriminator: string

    Discriminator of the banned user

  • username: string

    Username of the banned user

    -
  • Returns BannedUser

    Properties

    avatar?: File
    discriminator: string
    id: string
    username: string
    +

    Returns BannedUser

    Properties

    avatar?: File
    discriminator: string
    id: string
    username: string
    diff --git a/classes/Bot.html b/classes/Bot.html index 5c83d52d..c64d9033 100644 --- a/classes/Bot.html +++ b/classes/Bot.html @@ -1,5 +1,5 @@ Bot | revolt.js

    Class Bot

    Bot Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists analytics @@ -20,21 +20,21 @@

    Constructors

    Properties

    id: string

    Accessors

    • get analytics(): boolean

      Whether this bot has analytics enabled

      -

      Returns boolean

    • get createdAt(): Date

      Time when this user created their account

      -

      Returns Date

    • get discoverable(): boolean

      Whether this bot shows up on Discover

      -

      Returns boolean

    • get interactionsUrl(): undefined | string

      Interactions URL

      -

      Returns undefined | string

    • get privacyPolicyUrl(): undefined | string

      Link to privacy policy

      -

      Returns undefined | string

    • get public(): boolean

      Whether this bot can be invited by anyone

      -

      Returns boolean

    • get termsOfServiceUrl(): undefined | string

      Link to terms of service

      -

      Returns undefined | string

    Methods

    • Edit a bot

      +

    Returns Bot

    Properties

    id: string

    Accessors

    • get analytics(): boolean

      Whether this bot has analytics enabled

      +

      Returns boolean

    • get createdAt(): Date

      Time when this user created their account

      +

      Returns Date

    • get discoverable(): boolean

      Whether this bot shows up on Discover

      +

      Returns boolean

    • get interactionsUrl(): undefined | string

      Interactions URL

      +

      Returns undefined | string

    • get privacyPolicyUrl(): undefined | string

      Link to privacy policy

      +

      Returns undefined | string

    • get public(): boolean

      Whether this bot can be invited by anyone

      +

      Returns boolean

    • get termsOfServiceUrl(): undefined | string

      Link to terms of service

      +

      Returns undefined | string

    Methods

    • Edit a bot

      Parameters

      • data: {
            analytics?: null | boolean;
            interactions_url?: null | string;
            name?: null | string;
            public?: null | boolean;
            remove?: null | ("Token" | "InteractionsURL")[];
        }

        Changes

        • Optionalanalytics?: null | boolean

          Whether analytics should be gathered for this bot

          Must be enabled in order to show up on Revolt Discover.

          @@ -42,6 +42,6 @@
        • Optionalname?: null | string

          Bot username

        • Optionalpublic?: null | boolean

          Whether the bot can be added by anyone

        • Optionalremove?: null | ("Token" | "InteractionsURL")[]

          Fields to remove from bot object

          -

      Returns Promise<void>

    • Convert to string

      +

    Returns Promise<void>

    +
    diff --git a/classes/BotCollection.html b/classes/BotCollection.html index 7a0ac9ee..1e206af5 100644 --- a/classes/BotCollection.html +++ b/classes/BotCollection.html @@ -1,5 +1,5 @@ BotCollection | revolt.js

    Class BotCollection

    Collection of Bots

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedBot
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedBot>>

    Methods

    • Create a new instance of an object

      +

    Returns BotCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedBot
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedBot>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Bot

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Create a bot

      +

    Returns void

    Returns void

    Returns Bot[]

    Returns undefined | Bot

    Returns O[]

    +
    diff --git a/classes/Channel.html b/classes/Channel.html index a9ba8ff3..b6f07cda 100644 --- a/classes/Channel.html +++ b/classes/Channel.html @@ -1,5 +1,5 @@ Channel | revolt.js

    Class Channel

    Channel Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists active @@ -60,60 +60,60 @@

    Constructors

    Properties

    id: string

    Accessors

    • get animatedIconURL(): undefined | string

      URL to the animated channel icon

      -

      Returns undefined | string

    • get defaultPermissions(): undefined | { a: number; d: number }

      Default permissions for this server channel

      -

      Returns undefined | { a: number; d: number }

    • get lastMessageAt(): undefined | Date

      Time when the last message was sent

      -

      Returns undefined | Date

    • get lastMessageId(): undefined | string

      ID of the last message sent in this channel

      -

      Returns undefined | string

    • get mentions(): undefined | ReactiveSet<string>

      Get mentions in this channel for user.

      -

      Returns undefined | ReactiveSet<string>

    • get permission(): number

      Permission the currently authenticated user has against this channel

      -

      Returns number

    • get permissions(): undefined | number

      Permissions allowed for users in this group

      -

      Returns undefined | number

    • get potentiallyRestrictedChannel(): undefined | string | boolean

      Whether this channel may be hidden to some users

      -

      Returns undefined | string | boolean

    • get recipientIds(): ReactiveSet<string>

      User ids of recipients of the group

      -

      Returns ReactiveSet<string>

    • get rolePermissions(): undefined | Record<string, { a: number; d: number }>

      Role permissions for this server channel

      -

      Returns undefined | Record<string, { a: number; d: number }>

    • get type(): | "SavedMessages"
      | "DirectMessage"
      | "Group"
      | "TextChannel"
      | "VoiceChannel"

      Channel type

      -

      Returns "SavedMessages" | "DirectMessage" | "Group" | "TextChannel" | "VoiceChannel"

    • get typingIds(): ReactiveSet<string>

      User ids of people currently typing in channel

      -

      Returns ReactiveSet<string>

    • get updatedAt(): Date

      Time when the channel was last updated (either created or a message was sent)

      -

      Returns Date

    Methods

    • Mark a channel as read

      +

    Returns Channel

    Properties

    id: string

    Accessors

    • get animatedIconURL(): undefined | string

      URL to the animated channel icon

      +

      Returns undefined | string

    • get defaultPermissions(): undefined | { a: number; d: number }

      Default permissions for this server channel

      +

      Returns undefined | { a: number; d: number }

    • get lastMessageAt(): undefined | Date

      Time when the last message was sent

      +

      Returns undefined | Date

    • get lastMessageId(): undefined | string

      ID of the last message sent in this channel

      +

      Returns undefined | string

    • get mentions(): undefined | ReactiveSet<string>

      Get mentions in this channel for user.

      +

      Returns undefined | ReactiveSet<string>

    • get permission(): number

      Permission the currently authenticated user has against this channel

      +

      Returns number

    • get permissions(): undefined | number

      Permissions allowed for users in this group

      +

      Returns undefined | number

    • get potentiallyRestrictedChannel(): undefined | string | boolean

      Whether this channel may be hidden to some users

      +

      Returns undefined | string | boolean

    • get recipientIds(): ReactiveSet<string>

      User ids of recipients of the group

      +

      Returns ReactiveSet<string>

    • get rolePermissions(): undefined | Record<string, { a: number; d: number }>

      Role permissions for this server channel

      +

      Returns undefined | Record<string, { a: number; d: number }>

    • get type(): | "SavedMessages"
      | "DirectMessage"
      | "Group"
      | "TextChannel"
      | "VoiceChannel"

      Channel type

      +

      Returns "SavedMessages" | "DirectMessage" | "Group" | "TextChannel" | "VoiceChannel"

    • get typingIds(): ReactiveSet<string>

      User ids of people currently typing in channel

      +

      Returns ReactiveSet<string>

    • get updatedAt(): Date

      Time when the channel was last updated (either created or a message was sent)

      +

      Returns Date

    Methods

    • Mark a channel as read

      Parameters

      • Optionalmessage: string | Message

        Last read message or its ID

      • OptionalskipRateLimiter: boolean

        Whether to skip the internal rate limiter

      • OptionalskipRequest: boolean

        For internal updates only

      • OptionalskipNextMarking: boolean

        For internal usage only

      Returns Promise<void>

      SavedMessages, DirectMessage, Group, TextChannel

      -

    Returns Promise<void>

    Returns Promise<
        | { _id: string; channel_type: "SavedMessages"; user: string }
        | {
            _id: string;
            active: boolean;
            channel_type: "DirectMessage";
            last_message_id?: null | string;
            recipients: string[];
        }
        | {
            _id: string;
            channel_type: "Group";
            description?: null
            | string;
            icon?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
            last_message_id?: null
            | string;
            name: string;
            nsfw?: boolean;
            owner: string;
            permissions?: null | number;
            recipients: string[];
        }
        | {
            _id: string;
            channel_type: "TextChannel";
            default_permissions?: null
            | { a: number; d: number };
            description?: null | string;
            icon?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
            last_message_id?: null
            | string;
            name: string;
            nsfw?: boolean;
            role_permissions?: { [key: string]: { a: number; d: number } };
            server: string;
        }
        | {
            _id: string;
            channel_type: "VoiceChannel";
            default_permissions?: null
            | { a: number; d: number };
            description?: null | string;
            icon?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
            name: string;
            nsfw?: boolean;
            role_permissions?: { [key: string]: { a: number; d: number } };
            server: string;
        },
    >

    Group, TextChannel, VoiceChannel

    -
    +
    diff --git a/classes/ChannelCollection.html b/classes/ChannelCollection.html index e2382f82..8ab0615f 100644 --- a/classes/ChannelCollection.html +++ b/classes/ChannelCollection.html @@ -1,5 +1,5 @@ ChannelCollection | revolt.js

    Class ChannelCollection

    Collection of Channels

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannel
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannel>>

    Methods

    • Create a new instance of an object

      +

    Returns ChannelCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannel
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannel>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Channel

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Create a group

      +

    Returns void

    Returns void

    Returns Channel[]

    Returns undefined | Channel

    Returns Channel

    Returns undefined | Channel

    Returns O[]

    +
    diff --git a/classes/ChannelEditSystemMessage.html b/classes/ChannelEditSystemMessage.html index 7dd7aaa5..a689498b 100644 --- a/classes/ChannelEditSystemMessage.html +++ b/classes/ChannelEditSystemMessage.html @@ -1,5 +1,5 @@ ChannelEditSystemMessage | revolt.js

    Class ChannelEditSystemMessage

    Channel Edit System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    byId client? type @@ -8,8 +8,8 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & {
            type:
                | "channel_renamed"
                | "channel_description_changed"
                | "channel_icon_changed";
        }

        System Message

        -

      Returns ChannelEditSystemMessage

    Properties

    byId: string
    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      +

    Returns ChannelEditSystemMessage

    Properties

    byId: string
    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/ChannelInvite.html b/classes/ChannelInvite.html index 1704085d..05e942a9 100644 --- a/classes/ChannelInvite.html +++ b/classes/ChannelInvite.html @@ -1,12 +1,12 @@ ChannelInvite | revolt.js

    Class ChannelInviteAbstract

    Channel Invite

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite

      +

    Returns ChannelInvite

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite

      Parameters

      • client: Client

        Client

      • invite:
            | {
                _id: string;
                channel: string;
                creator: string;
                server: string;
                type: "Server";
            }
            | { _id: string; channel: string; creator: string; type: "Group" }

        Data

        • {
              _id: string;
              channel: string;
              creator: string;
              server: string;
              type: "Server";
          }
          • _id: string

            Invite code

            @@ -17,4 +17,4 @@
          • channel: string

            Id of the group channel this invite points to

          • creator: string

            Id of user who created this invite

          • type: "Group"

      Returns ChannelInvite

      Invite

      -
    +
    diff --git a/classes/ChannelOwnershipChangeSystemMessage.html b/classes/ChannelOwnershipChangeSystemMessage.html index db80ed59..28a83b91 100644 --- a/classes/ChannelOwnershipChangeSystemMessage.html +++ b/classes/ChannelOwnershipChangeSystemMessage.html @@ -1,5 +1,5 @@ ChannelOwnershipChangeSystemMessage | revolt.js

    Class ChannelOwnershipChangeSystemMessage

    Channel Ownership Change System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? fromId toId @@ -10,9 +10,9 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & { type: "channel_ownership_changed" }

        System Message

        -

      Returns ChannelOwnershipChangeSystemMessage

    Properties

    client?: Client
    fromId: string
    toId: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      +

    Returns ChannelOwnershipChangeSystemMessage

    Properties

    client?: Client
    fromId: string
    toId: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/ChannelRenamedSystemMessage.html b/classes/ChannelRenamedSystemMessage.html index ef7300fc..2d2d03fb 100644 --- a/classes/ChannelRenamedSystemMessage.html +++ b/classes/ChannelRenamedSystemMessage.html @@ -1,5 +1,5 @@ ChannelRenamedSystemMessage | revolt.js

    Class ChannelRenamedSystemMessage

    Channel Renamed System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    byId client? name @@ -9,8 +9,8 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & { type: "channel_renamed" }

        System Message

        -

      Returns ChannelRenamedSystemMessage

    Properties

    byId: string
    client?: Client
    name: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      +

    Returns ChannelRenamedSystemMessage

    Properties

    byId: string
    client?: Client
    name: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Accessors

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/ChannelUnread.html b/classes/ChannelUnread.html index 484b366e..7d59fc96 100644 --- a/classes/ChannelUnread.html +++ b/classes/ChannelUnread.html @@ -1,5 +1,5 @@ ChannelUnread | revolt.js

    Class ChannelUnread

    Channel Unread Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists lastMessageId @@ -7,7 +7,7 @@

    Constructors

    Properties

    id: string

    Accessors

    • get messageMentionIds(): ReactiveSet<string>

      List of message IDs that we were mentioned in

      -

      Returns ReactiveSet<string>

    +

    Returns ChannelUnread

    Properties

    id: string

    Accessors

    • get messageMentionIds(): ReactiveSet<string>

      List of message IDs that we were mentioned in

      +

      Returns ReactiveSet<string>

    diff --git a/classes/ChannelUnreadCollection.html b/classes/ChannelUnreadCollection.html index 6ae4e46c..37064b66 100644 --- a/classes/ChannelUnreadCollection.html +++ b/classes/ChannelUnreadCollection.html @@ -1,5 +1,5 @@ ChannelUnreadCollection | revolt.js

    Class ChannelUnreadCollection

    Collection of Channel Unreads

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannelUnread
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannelUnread>>

    Methods

    • Create a new instance of an object

      +

    Returns ChannelUnreadCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannelUnread
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannelUnread>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: ChannelUnread

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns ChannelUnread[]

    Returns undefined | ChannelUnread

    Returns ChannelUnread

    Returns ChannelUnread

    Returns O[]

    +
    diff --git a/classes/ChannelWebhook.html b/classes/ChannelWebhook.html index a77cf079..56c5a4bb 100644 --- a/classes/ChannelWebhook.html +++ b/classes/ChannelWebhook.html @@ -1,5 +1,5 @@ ChannelWebhook | revolt.js

    Class ChannelWebhook

    Channel Webhook Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists avatar @@ -13,16 +13,16 @@

    Constructors

    Properties

    id: string

    Accessors

    Methods

    • Delete this webhook +

    Returns ChannelWebhook

    Properties

    id: string

    Accessors

    Methods

    • Edit this webhook

      +

      Returns Promise<void>

    • Edit this webhook

      Parameters

      • data: {
            avatar?: null | string;
            name?: null | string;
            permissions?: null | number;
            remove?: "Avatar"[];
        }
        • Optionalavatar?: null | string

          Avatar ID

        • Optionalname?: null | string

          Webhook name

        • Optionalpermissions?: null | number

          Format: uint64

          @@ -31,4 +31,4 @@ TODO: not in production

          []
           
          -

    Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/classes/ChannelWebhookCollection.html b/classes/ChannelWebhookCollection.html index daa3e4b8..8f78561a 100644 --- a/classes/ChannelWebhookCollection.html +++ b/classes/ChannelWebhookCollection.html @@ -1,5 +1,5 @@ ChannelWebhookCollection | revolt.js

    Class ChannelWebhookCollection

    Collection of Channel Webhooks

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannelWebhook
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannelWebhook>>

    Methods

    • Create a new instance of an object

      +

    Returns ChannelWebhookCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedChannelWebhook
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedChannelWebhook>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: ChannelWebhook

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns ChannelWebhook[]

    Returns undefined | ChannelWebhook

    Returns ChannelWebhook

    Returns O[]

    +
    diff --git a/classes/ClassCollection.html b/classes/ClassCollection.html index bd30458e..6f45f846 100644 --- a/classes/ClassCollection.html +++ b/classes/ClassCollection.html @@ -1,5 +1,5 @@ ClassCollection | revolt.js

    Class ClassCollection<T, V>

    Generic class collection backed by store

    -

    Type Parameters

    • T
    • V

    Hierarchy (View Summary)

    Constructors

    Type Parameters

    • T
    • V

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => V
    updateUnderlyingObject: SetStoreFunction<Record<string, V>>

    Methods

    • Create a new instance of an object

      +

    Returns ClassCollection<T, V>

    Properties

    client: Client
    getUnderlyingObject: (id: string) => V
    updateUnderlyingObject: SetStoreFunction<Record<string, V>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: T

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns T[]

    Returns undefined | T

    Returns O[]

    +
    diff --git a/classes/Client.html b/classes/Client.html index 7be99e5a..df988a64 100644 --- a/classes/Client.html +++ b/classes/Client.html @@ -1,5 +1,5 @@ Client | revolt.js

    Class Client

    Revolt.js Clients

    -

    Hierarchy

    • AsyncEventEmitter<Events>
      • Client

    Constructors

    Hierarchy

    • AsyncEventEmitter<Events>
      • Client

    Constructors

    Properties

    [brandSymbol] account api @@ -73,8 +73,8 @@
  • revolt: string

    Revolt API Version

  • vapid: string

    Web Push VAPID public key

  • ws: string

    WebSocket URL

    -
  • Returns Client

    Properties

    "[brandSymbol]": Events

    This field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter

    -
    account: AccountCollection
    api: API.API
    channelUnreads: ChannelUnreadCollection
    channelWebhooks: ChannelWebhookCollection
    configuration:
        | undefined
        | {
            app: string;
            build: {
                commit_sha: string;
                commit_timestamp: string;
                origin_url: string;
                semver: string;
                timestamp: string;
            };
            features: {
                autumn: { enabled: boolean; url: string };
                captcha: { enabled: boolean; key: string };
                email: boolean;
                invite_only: boolean;
                january: { enabled: boolean; url: string };
                voso: { enabled: boolean; url: string; ws: string };
            };
            revolt: string;
            vapid: string;
            ws: string;
        }

    Type declaration

    • undefined
    • {
          app: string;
          build: {
              commit_sha: string;
              commit_timestamp: string;
              origin_url: string;
              semver: string;
              timestamp: string;
          };
          features: {
              autumn: { enabled: boolean; url: string };
              captcha: { enabled: boolean; key: string };
              email: boolean;
              invite_only: boolean;
              january: { enabled: boolean; url: string };
              voso: { enabled: boolean; url: string; ws: string };
          };
          revolt: string;
          vapid: string;
          ws: string;
      }
      • app: string

        URL pointing to the client serving this node

        +

    Returns Client

    Properties

    "[brandSymbol]": Events

    This field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter

    +
    account: AccountCollection
    api: API.API
    channelUnreads: ChannelUnreadCollection
    channelWebhooks: ChannelWebhookCollection
    configuration:
        | undefined
        | {
            app: string;
            build: {
                commit_sha: string;
                commit_timestamp: string;
                origin_url: string;
                semver: string;
                timestamp: string;
            };
            features: {
                autumn: { enabled: boolean; url: string };
                captcha: { enabled: boolean; key: string };
                email: boolean;
                invite_only: boolean;
                january: { enabled: boolean; url: string };
                voso: { enabled: boolean; url: string; ws: string };
            };
            revolt: string;
            vapid: string;
            ws: string;
        }

    Type declaration

    • undefined
    • {
          app: string;
          build: {
              commit_sha: string;
              commit_timestamp: string;
              origin_url: string;
              semver: string;
              timestamp: string;
          };
          features: {
              autumn: { enabled: boolean; url: string };
              captcha: { enabled: boolean; key: string };
              email: boolean;
              invite_only: boolean;
              january: { enabled: boolean; url: string };
              voso: { enabled: boolean; url: string; ws: string };
          };
          revolt: string;
          vapid: string;
          ws: string;
      }
      • app: string

        URL pointing to the client serving this node

      • build: {
            commit_sha: string;
            commit_timestamp: string;
            origin_url: string;
            semver: string;
            timestamp: string;
        }

        Build information

        • commit_sha: string

          Commit Hash

        • commit_timestamp: string

          Commit Timestamp

          @@ -100,10 +100,10 @@
    • revolt: string

      Revolt API Version

    • vapid: string

      Web Push VAPID public key

    • ws: string

      WebSocket URL

      -
    connectionFailureCount: Accessor<number>
    events: EventClient<1>
    options: ClientOptions
    ready: Accessor<boolean>
    serverMembers: ServerMemberCollection
    user: undefined | User

    Accessors

    • get authenticationHeader(): [string, string]

      Get authentication header

      -

      Returns [string, string]

    • get sessionId(): undefined | string

      Current session id

      -

      Returns undefined | string

    Methods

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<Events>, K>

      Returns boolean

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<Events>, K>

      Returns boolean

    • Returns (string | symbol)[] & (keyof AsyncEventEmitterPredefinedEvents)[] & (
          keyof Events
      )[]

    • Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K

      Returns number

    • Parameters

      • eventName: string | symbol

      Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events>,
              K,
              Events,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events>,
              K,
              Events,
          >["listener"],
          undefined,
      >[]

    • Log in with auth data, creating a new session in the process.

      +
    connectionFailureCount: Accessor<number>
    events: EventClient<1>
    options: ClientOptions
    ready: Accessor<boolean>
    serverMembers: ServerMemberCollection
    user: undefined | User

    Accessors

    • get authenticationHeader(): [string, string]

      Get authentication header

      +

      Returns [string, string]

    • get sessionId(): undefined | string

      Current session id

      +

      Returns undefined | string

    Methods

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<Events>, K>

      Returns boolean

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<Events>, K>

      Returns boolean

    • Returns (string | symbol)[] & (keyof AsyncEventEmitterPredefinedEvents)[] & (
          keyof Events
      )[]

    • Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K

      Returns number

    • Parameters

      • eventName: string | symbol

      Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events>,
              K,
              Events,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events>,
              K,
              Events,
          >["listener"],
          undefined,
      >[]

    • Log in with auth data, creating a new session in the process.

      Parameters

      • details:
            | { email: string; friendly_name?: null
            | string; password: string }
            | {
                friendly_name?: null | string;
                mfa_response?:
                    | null
                    | { password: string }
                    | { recovery_code: string }
                    | { totp_code: string };
                mfa_ticket: string;
            }

        Login data object

        • { email: string; friendly_name?: null | string; password: string }
          • email: string

            Email

          • Optionalfriendly_name?: null | string

            Friendly name used for the session

            @@ -114,13 +114,13 @@
          • mfa_ticket: string

            Unvalidated or authorised MFA ticket

            Used to resolve the correct account

      Returns Promise<void>

      An on-boarding function if on-boarding is required, undefined otherwise

      -
    • Log in as a bot

      Parameters

      • token: string

        Bot token

        -

      Returns Promise<void>

    • Prepare a markdown-based message to be displayed to the user as plain text.

      +

    Returns Promise<void>

    • Prepare a markdown-based message to be displayed to the user as plain text.

      Parameters

      • source: string

        Source markdown text

      Returns string

      Modified plain text

      -
    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Proxy a file through January.

      +
    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Proxy a file through January.

      Parameters

      • url: string

        URL to proxy

      Returns undefined | string

      Proxied media URL

      -
    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events>,
          K,
          Events,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events>,
          K,
          Events,
      >[]

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • event: K

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • Optionalevent: K

      Returns this

    • Parameters

      • event: string | symbol

      Returns this

    • Parameters

      • Optionalevent: string | symbol

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events>,
                K,
                Events,
            >["listener"],
            undefined,
        >

      Returns this

    • Parameters

      • n: number

      Returns this

    • Returns Promise<boolean>

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: (keyof AsyncEventEmitterPredefinedEvents) | EventName

      Returns number

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol

      Returns number

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: EventName
      • Optionaloptions: AbortableMethods

      Returns AsyncGenerator<
          InternalGetAsyncEventEmitterEventParameters<
              AsyncEventEmitter<EventMap>,
              EventName,
              EventMap,
          >,
          void,
      >

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol
      • Optionaloptions: AbortableMethods

      Returns AsyncGenerator<any[], void>

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: EventName
      • Optionaloptions: AbortableMethods

      Returns Promise<
          InternalGetAsyncEventEmitterEventParameters<
              AsyncEventEmitter<EventMap>,
              EventName,
              EventMap,
          >,
      >

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol
      • Optionaloptions: AbortableMethods

      Returns Promise<any[]>

    +
    diff --git a/classes/Collection.html b/classes/Collection.html index 43b9bb2b..a3945689 100644 --- a/classes/Collection.html +++ b/classes/Collection.html @@ -1,5 +1,5 @@ Collection | revolt.js

    Class Collection<T>Abstract

    Abstract Collection type

    -

    Type Parameters

    • T

    Hierarchy (View Summary)

    Constructors

    Type Parameters

    • T

    Hierarchy (View Summary)

    Constructors

    Methods

    delete entries filter @@ -14,28 +14,28 @@ values

    Constructors

    Methods

    • Iterable of key, value pairs in the map

      +

    Returns void

    • Iterable of key, value pairs in the map

      Returns IterableIterator<[string, T]>

      Iterable

      -
    • Filter the collection by a given predicate

      Parameters

      • predicate: (value: T, key: string) => boolean

        Predicate to satisfy

        -

      Returns T[]

    • Find some value based on a predicate

      +

    Returns T[]

    Returns undefined | T

    Returns void

    Returns O[]

    +
    diff --git a/classes/Emoji.html b/classes/Emoji.html index a12cfbe8..b9662078 100644 --- a/classes/Emoji.html +++ b/classes/Emoji.html @@ -1,5 +1,5 @@ Emoji | revolt.js

    Class Emoji

    Emoji Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists animated @@ -13,14 +13,14 @@

    Constructors

    Properties

    id: string

    Accessors

    • get parent(): { id: string; type: "Server" } | { type: "Detached" }

      Information about the parent of this emoji

      -

      Returns { id: string; type: "Server" } | { type: "Detached" }

    Methods

    • Convert to string

      +

    Returns Emoji

    Properties

    id: string

    Accessors

    • get parent(): { id: string; type: "Server" } | { type: "Detached" }

      Information about the parent of this emoji

      +

      Returns { id: string; type: "Server" } | { type: "Detached" }

    Methods

    +
    diff --git a/classes/EmojiCollection.html b/classes/EmojiCollection.html index a45269c8..66265c96 100644 --- a/classes/EmojiCollection.html +++ b/classes/EmojiCollection.html @@ -1,5 +1,5 @@ EmojiCollection | revolt.js

    Class EmojiCollection

    Collection of Emoji

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedEmoji
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedEmoji>>

    Methods

    • Create a new instance of an object

      +

    Returns EmojiCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedEmoji
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedEmoji>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Emoji

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns Emoji[]

    Returns undefined | Emoji

    Returns Emoji

    Returns undefined | Emoji

    Returns O[]

    +
    diff --git a/classes/EventClient.html b/classes/EventClient.html index 9a24e617..0c91c31f 100644 --- a/classes/EventClient.html +++ b/classes/EventClient.html @@ -1,5 +1,5 @@ EventClient | revolt.js

    Class EventClient<T>

    Simple wrapper around the Revolt websocket service.

    -

    Type Parameters

    • T extends AvailableProtocols

    Hierarchy

    • AsyncEventEmitter<Events<T, EventProtocol<T>>>
      • EventClient

    Constructors

    Type Parameters

    • T extends AvailableProtocols

    Hierarchy

    • AsyncEventEmitter<Events<T, EventProtocol<T>>>
      • EventClient

    Constructors

    Properties

    [brandSymbol] options ping @@ -32,14 +32,14 @@

    Type Parameters

    • T extends 1

    Parameters

    • protocolVersion: T

      Target protocol version

    • transportFormat: "json" = "json"

      Communication format

    • Optionaloptions: Partial<EventClientOptions>

      Configuration options

      -

    Returns EventClient<T>

    Properties

    "[brandSymbol]": Events

    This field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter

    -
    options: EventClientOptions
    ping: Accessor<number>
    state: Accessor<ConnectionState>

    Accessors

    • get lastError(): | undefined
      | { data: any; type: "socket" }
      | {
          data: (
              | { type: "LabelMe" }
              | { type: "AlreadyOnboarded" }
              | { type: "UsernameTaken" }
              | { type: "InvalidUsername" }
              | { type: "DiscriminatorChangeRatelimited" }
              | { type: "UnknownUser" }
              | { type: "AlreadyFriends" }
              | { type: "AlreadySentRequest" }
              | { type: "Blocked" }
              | { type: "BlockedByOther" }
              | { type: "NotFriends" }
              | { max: number; type: "TooManyPendingFriendRequests" }
              | { type: "UnknownChannel" }
              | { type: "UnknownAttachment" }
              | { type: "UnknownMessage" }
              | { type: "CannotEditMessage" }
              | { type: "CannotJoinCall" }
              | { max: number; type: "TooManyAttachments" }
              | { max: number; type: "TooManyEmbeds" }
              | { max: number; type: "TooManyReplies" }
              | { max: number; type: "TooManyChannels" }
              | { type: "EmptyMessage" }
              | { type: "PayloadTooLarge" }
              | { type: "CannotRemoveYourself" }
              | { max: number; type: "GroupTooLarge" }
              | { type: "AlreadyInGroup" }
              | { type: "NotInGroup" }
              | { type: "AlreadyPinned" }
              | { type: "NotPinned" }
              | { type: "UnknownServer" }
              | { type: "InvalidRole" }
              | { type: "Banned" }
              | { max: number; type: "TooManyServers" }
              | { max: number; type: "TooManyEmoji" }
              | { max: number; type: "TooManyRoles" }
              | { type: "AlreadyInServer" }
              | { type: "CannotTimeoutYourself" }
              | { type: "ReachedMaximumBots" }
              | { type: "IsBot" }
              | { type: "IsNotBot" }
              | { type: "BotIsPrivate" }
              | { type: "CannotReportYourself" }
              | { permission: string; type: "MissingPermission" }
              | { permission: string; type: "MissingUserPermission" }
              | { type: "NotElevated" }
              | { type: "NotPrivileged" }
              | { type: "CannotGiveMissingPermissions" }
              | { type: "NotOwner" }
              | { collection: string; operation: string; type: "DatabaseError" }
              | { type: "InternalError" }
              | { type: "InvalidOperation" }
              | { type: "InvalidCredentials" }
              | { type: "InvalidProperty" }
              | { type: "InvalidSession" }
              | { type: "InvalidFlagValue" }
              | { type: "NotAuthenticated" }
              | { type: "DuplicateNonce" }
              | { type: "NotFound" }
              | { type: "NoEffect" }
              | { error: string; type: "FailedValidation" }
              | { type: "ProxyError" }
              | { type: "FileTooSmall" }
              | { max: number; type: "FileTooLarge" }
              | { type: "FileTypeNotAllowed" }
              | { type: "ImageProcessingFailed" }
              | { type: "NoEmbedData" }
              | { type: "VosoUnavailable" }
              | { feature: string; type: "FeatureDisabled" }
          ) & { location: string };
          type: "revolt";
      }

      Last error encountered by events client

      -

      Returns
          | undefined
          | { data: any; type: "socket" }
          | {
              data: (
                  | { type: "LabelMe" }
                  | { type: "AlreadyOnboarded" }
                  | { type: "UsernameTaken" }
                  | { type: "InvalidUsername" }
                  | { type: "DiscriminatorChangeRatelimited" }
                  | { type: "UnknownUser" }
                  | { type: "AlreadyFriends" }
                  | { type: "AlreadySentRequest" }
                  | { type: "Blocked" }
                  | { type: "BlockedByOther" }
                  | { type: "NotFriends" }
                  | { max: number; type: "TooManyPendingFriendRequests" }
                  | { type: "UnknownChannel" }
                  | { type: "UnknownAttachment" }
                  | { type: "UnknownMessage" }
                  | { type: "CannotEditMessage" }
                  | { type: "CannotJoinCall" }
                  | { max: number; type: "TooManyAttachments" }
                  | { max: number; type: "TooManyEmbeds" }
                  | { max: number; type: "TooManyReplies" }
                  | { max: number; type: "TooManyChannels" }
                  | { type: "EmptyMessage" }
                  | { type: "PayloadTooLarge" }
                  | { type: "CannotRemoveYourself" }
                  | { max: number; type: "GroupTooLarge" }
                  | { type: "AlreadyInGroup" }
                  | { type: "NotInGroup" }
                  | { type: "AlreadyPinned" }
                  | { type: "NotPinned" }
                  | { type: "UnknownServer" }
                  | { type: "InvalidRole" }
                  | { type: "Banned" }
                  | { max: number; type: "TooManyServers" }
                  | { max: number; type: "TooManyEmoji" }
                  | { max: number; type: "TooManyRoles" }
                  | { type: "AlreadyInServer" }
                  | { type: "CannotTimeoutYourself" }
                  | { type: "ReachedMaximumBots" }
                  | { type: "IsBot" }
                  | { type: "IsNotBot" }
                  | { type: "BotIsPrivate" }
                  | { type: "CannotReportYourself" }
                  | { permission: string; type: "MissingPermission" }
                  | { permission: string; type: "MissingUserPermission" }
                  | { type: "NotElevated" }
                  | { type: "NotPrivileged" }
                  | { type: "CannotGiveMissingPermissions" }
                  | { type: "NotOwner" }
                  | { collection: string; operation: string; type: "DatabaseError" }
                  | { type: "InternalError" }
                  | { type: "InvalidOperation" }
                  | { type: "InvalidCredentials" }
                  | { type: "InvalidProperty" }
                  | { type: "InvalidSession" }
                  | { type: "InvalidFlagValue" }
                  | { type: "NotAuthenticated" }
                  | { type: "DuplicateNonce" }
                  | { type: "NotFound" }
                  | { type: "NoEffect" }
                  | { error: string; type: "FailedValidation" }
                  | { type: "ProxyError" }
                  | { type: "FileTooSmall" }
                  | { max: number; type: "FileTooLarge" }
                  | { type: "FileTypeNotAllowed" }
                  | { type: "ImageProcessingFailed" }
                  | { type: "NoEmbedData" }
                  | { type: "VosoUnavailable" }
                  | { feature: string; type: "FeatureDisabled" }
              ) & { location: string };
              type: "revolt";
          }

    Methods

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Connect to the websocket service.

      +

    Returns EventClient<T>

    Properties

    "[brandSymbol]": Events

    This field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter

    +
    options: EventClientOptions
    ping: Accessor<number>
    state: Accessor<ConnectionState>

    Accessors

    • get lastError(): | undefined
      | { data: any; type: "socket" }
      | {
          data: (
              | { type: "LabelMe" }
              | { type: "AlreadyOnboarded" }
              | { type: "UsernameTaken" }
              | { type: "InvalidUsername" }
              | { type: "DiscriminatorChangeRatelimited" }
              | { type: "UnknownUser" }
              | { type: "AlreadyFriends" }
              | { type: "AlreadySentRequest" }
              | { type: "Blocked" }
              | { type: "BlockedByOther" }
              | { type: "NotFriends" }
              | { max: number; type: "TooManyPendingFriendRequests" }
              | { type: "UnknownChannel" }
              | { type: "UnknownAttachment" }
              | { type: "UnknownMessage" }
              | { type: "CannotEditMessage" }
              | { type: "CannotJoinCall" }
              | { max: number; type: "TooManyAttachments" }
              | { max: number; type: "TooManyEmbeds" }
              | { max: number; type: "TooManyReplies" }
              | { max: number; type: "TooManyChannels" }
              | { type: "EmptyMessage" }
              | { type: "PayloadTooLarge" }
              | { type: "CannotRemoveYourself" }
              | { max: number; type: "GroupTooLarge" }
              | { type: "AlreadyInGroup" }
              | { type: "NotInGroup" }
              | { type: "AlreadyPinned" }
              | { type: "NotPinned" }
              | { type: "UnknownServer" }
              | { type: "InvalidRole" }
              | { type: "Banned" }
              | { max: number; type: "TooManyServers" }
              | { max: number; type: "TooManyEmoji" }
              | { max: number; type: "TooManyRoles" }
              | { type: "AlreadyInServer" }
              | { type: "CannotTimeoutYourself" }
              | { type: "ReachedMaximumBots" }
              | { type: "IsBot" }
              | { type: "IsNotBot" }
              | { type: "BotIsPrivate" }
              | { type: "CannotReportYourself" }
              | { permission: string; type: "MissingPermission" }
              | { permission: string; type: "MissingUserPermission" }
              | { type: "NotElevated" }
              | { type: "NotPrivileged" }
              | { type: "CannotGiveMissingPermissions" }
              | { type: "NotOwner" }
              | { collection: string; operation: string; type: "DatabaseError" }
              | { type: "InternalError" }
              | { type: "InvalidOperation" }
              | { type: "InvalidCredentials" }
              | { type: "InvalidProperty" }
              | { type: "InvalidSession" }
              | { type: "InvalidFlagValue" }
              | { type: "NotAuthenticated" }
              | { type: "DuplicateNonce" }
              | { type: "NotFound" }
              | { type: "NoEffect" }
              | { error: string; type: "FailedValidation" }
              | { type: "ProxyError" }
              | { type: "FileTooSmall" }
              | { max: number; type: "FileTooLarge" }
              | { type: "FileTypeNotAllowed" }
              | { type: "ImageProcessingFailed" }
              | { type: "NoEmbedData" }
              | { type: "VosoUnavailable" }
              | { feature: string; type: "FeatureDisabled" }
          ) & { location: string };
          type: "revolt";
      }

      Last error encountered by events client

      +

      Returns
          | undefined
          | { data: any; type: "socket" }
          | {
              data: (
                  | { type: "LabelMe" }
                  | { type: "AlreadyOnboarded" }
                  | { type: "UsernameTaken" }
                  | { type: "InvalidUsername" }
                  | { type: "DiscriminatorChangeRatelimited" }
                  | { type: "UnknownUser" }
                  | { type: "AlreadyFriends" }
                  | { type: "AlreadySentRequest" }
                  | { type: "Blocked" }
                  | { type: "BlockedByOther" }
                  | { type: "NotFriends" }
                  | { max: number; type: "TooManyPendingFriendRequests" }
                  | { type: "UnknownChannel" }
                  | { type: "UnknownAttachment" }
                  | { type: "UnknownMessage" }
                  | { type: "CannotEditMessage" }
                  | { type: "CannotJoinCall" }
                  | { max: number; type: "TooManyAttachments" }
                  | { max: number; type: "TooManyEmbeds" }
                  | { max: number; type: "TooManyReplies" }
                  | { max: number; type: "TooManyChannels" }
                  | { type: "EmptyMessage" }
                  | { type: "PayloadTooLarge" }
                  | { type: "CannotRemoveYourself" }
                  | { max: number; type: "GroupTooLarge" }
                  | { type: "AlreadyInGroup" }
                  | { type: "NotInGroup" }
                  | { type: "AlreadyPinned" }
                  | { type: "NotPinned" }
                  | { type: "UnknownServer" }
                  | { type: "InvalidRole" }
                  | { type: "Banned" }
                  | { max: number; type: "TooManyServers" }
                  | { max: number; type: "TooManyEmoji" }
                  | { max: number; type: "TooManyRoles" }
                  | { type: "AlreadyInServer" }
                  | { type: "CannotTimeoutYourself" }
                  | { type: "ReachedMaximumBots" }
                  | { type: "IsBot" }
                  | { type: "IsNotBot" }
                  | { type: "BotIsPrivate" }
                  | { type: "CannotReportYourself" }
                  | { permission: string; type: "MissingPermission" }
                  | { permission: string; type: "MissingUserPermission" }
                  | { type: "NotElevated" }
                  | { type: "NotPrivileged" }
                  | { type: "CannotGiveMissingPermissions" }
                  | { type: "NotOwner" }
                  | { collection: string; operation: string; type: "DatabaseError" }
                  | { type: "InternalError" }
                  | { type: "InvalidOperation" }
                  | { type: "InvalidCredentials" }
                  | { type: "InvalidProperty" }
                  | { type: "InvalidSession" }
                  | { type: "InvalidFlagValue" }
                  | { type: "NotAuthenticated" }
                  | { type: "DuplicateNonce" }
                  | { type: "NotFound" }
                  | { type: "NoEffect" }
                  | { error: string; type: "FailedValidation" }
                  | { type: "ProxyError" }
                  | { type: "FileTooSmall" }
                  | { max: number; type: "FileTooLarge" }
                  | { type: "FileTypeNotAllowed" }
                  | { type: "ImageProcessingFailed" }
                  | { type: "NoEmbedData" }
                  | { type: "VosoUnavailable" }
                  | { feature: string; type: "FeatureDisabled" }
              ) & { location: string };
              type: "revolt";
          }

    Methods

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Connect to the websocket service.

      Parameters

      • uri: string

        WebSocket URI

      • token: string

        Authentication token

        -

      Returns void

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<
            AsyncEventEmitter<Events<T, EventProtocol<T>>>,
            K,
        >

      Returns boolean

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<
            AsyncEventEmitter<Events<T, EventProtocol<T>>>,
            K,
        >

      Returns boolean

    • Returns (string | symbol)[] & (keyof AsyncEventEmitterPredefinedEvents)[] & (
          keyof Events<T, EventProtocol<T>>
      )[]

    • Returns number

    • Handle events intended for client before passing them along.

      +

    Returns void

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<
            AsyncEventEmitter<Events<T, EventProtocol<T>>>,
            K,
        >

      Returns boolean

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • ...args: InternalGetAsyncEventEmitterEventParameters<
            AsyncEventEmitter<Events<T, EventProtocol<T>>>,
            K,
        >

      Returns boolean

    • Returns (string | symbol)[] & (keyof AsyncEventEmitterPredefinedEvents)[] & (
          keyof Events<T, EventProtocol<T>>
      )[]

    • Returns number

    • Handle events intended for client before passing them along.

      Parameters

      • event: EventProtocol<T>["server"]

        Event

        -

      Returns void

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns number

    • Parameters

      • eventName: string | symbol

      Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events<T, EventProtocol<T>>>,
              K,
              Events<T, EventProtocol<T>>,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events<T, EventProtocol<T>>>,
              K,
              Events<T, EventProtocol<T>>,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events<T, EventProtocol<T>>>,
          K,
          Events<T, EventProtocol<T>>,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events<T, EventProtocol<T>>>,
          K,
          Events<T, EventProtocol<T>>,
      >[]

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • event: K

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • Optionalevent: K

      Returns this

    • Parameters

      • event: string | symbol

      Returns this

    • Parameters

      • Optionalevent: string | symbol

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Send an event to the server.

      +

    Returns void

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns number

    • Parameters

      • eventName: string | symbol

      Returns number

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events<T, EventProtocol<T>>>,
              K,
              Events<T, EventProtocol<T>>,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns Exclude<
          InternalAsyncEventEmitterInternalListenerForEvent<
              AsyncEventEmitter<Events<T, EventProtocol<T>>>,
              K,
              Events<T, EventProtocol<T>>,
          >["listener"],
          undefined,
      >[]

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events<T, EventProtocol<T>>>,
          K,
          Events<T, EventProtocol<T>>,
      >[]

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K

      Returns InternalAsyncEventEmitterInternalListenerForEvent<
          AsyncEventEmitter<Events<T, EventProtocol<T>>>,
          K,
          Events<T, EventProtocol<T>>,
      >[]

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • event: K

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • Optionalevent: K

      Returns this

    • Parameters

      • event: string | symbol

      Returns this

    • Parameters

      • Optionalevent: string | symbol

      Returns this

    • Type Parameters

      • K extends (keyof AsyncEventEmitterPredefinedEvents) | (keyof Events<T, EventProtocol<T>>)

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Type Parameters

      • K extends string | symbol

      Parameters

      • eventName: K
      • listener: Exclude<
            InternalAsyncEventEmitterInternalListenerForEvent<
                AsyncEventEmitter<Events<T, EventProtocol<T>>>,
                K,
                Events<T, EventProtocol<T>>,
            >["listener"],
            undefined,
        >

      Returns this

    • Send an event to the server.

      Parameters

      • event: EventProtocol<T>["client"]

        Event

        -

      Returns void

    • Parameters

      • n: number

      Returns this

    • Returns Promise<boolean>

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: (keyof AsyncEventEmitterPredefinedEvents) | EventName

      Returns number

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol

      Returns number

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: EventName
      • Optionaloptions: AbortableMethods

      Returns AsyncGenerator<
          InternalGetAsyncEventEmitterEventParameters<
              AsyncEventEmitter<EventMap>,
              EventName,
              EventMap,
          >,
          void,
      >

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol
      • Optionaloptions: AbortableMethods

      Returns AsyncGenerator<any[], void>

    • Type Parameters

      • EventMap extends {}
      • EventName extends PropertyKey = (keyof AsyncEventEmitterPredefinedEvents) | keyof EventMap

      Parameters

      • emitter: AsyncEventEmitter<EventMap>
      • eventName: EventName
      • Optionaloptions: AbortableMethods

      Returns Promise<
          InternalGetAsyncEventEmitterEventParameters<
              AsyncEventEmitter<EventMap>,
              EventName,
              EventMap,
          >,
      >

    • Parameters

      • emitter: AsyncEventEmitter<any>
      • eventName: string | symbol
      • Optionaloptions: AbortableMethods

      Returns Promise<any[]>

    +

    Returns void

    diff --git a/classes/File.html b/classes/File.html index 88c40882..ba1726d0 100644 --- a/classes/File.html +++ b/classes/File.html @@ -1,5 +1,5 @@ File | revolt.js

    Class File

    Uploaded File

    -

    Constructors

    Constructors

    Properties

    contentType? filename? id @@ -14,21 +14,21 @@

    Constructors

    • Construct File

      Parameters

      • client: Client

        Client

      • file: Pick<
            {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            },
            "_id"
            | "tag"
            | "metadata",
        > & Partial<
            {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            },
        >

        File

        -

      Returns File

    Properties

    contentType?: string

    Raw content type of this file

    -
    filename?: string

    Original filename

    -
    id: string

    File Id

    -
    metadata:
        | { type: "File" }
        | { type: "Text" }
        | { height: number; type: "Image"; width: number }
        | { height: number; type: "Video"; width: number }
        | { type: "Audio" }

    Parsed metadata of the file

    +

    Returns File

    Properties

    contentType?: string

    Raw content type of this file

    +
    filename?: string

    Original filename

    +
    id: string

    File Id

    +
    metadata:
        | { type: "File" }
        | { type: "Text" }
        | { height: number; type: "Image"; width: number }
        | { height: number; type: "Video"; width: number }
        | { type: "Audio" }

    Parsed metadata of the file

    Type declaration

    • { type: "File" }
    • { type: "Text" }
    • { height: number; type: "Image"; width: number }
      • height: number

        Format: uint

      • type: "Image"
      • width: number

        Format: uint

    • { height: number; type: "Video"; width: number }
      • height: number

        Format: uint

      • type: "Video"
      • width: number

        Format: uint

        -
    • { type: "Audio" }
    size?: number

    Size of the file (in bytes)

    -
    tag: string

    File bucket

    -

    Accessors

    • get isSpoiler(): boolean

      Whether this file should have a spoiler

      -

      Returns boolean

    Methods

    • Creates a URL to a given file with given options.

      +
  • { type: "Audio" }
  • size?: number

    Size of the file (in bytes)

    +
    tag: string

    File bucket

    +

    Accessors

    • get isSpoiler(): boolean

      Whether this file should have a spoiler

      +

      Returns boolean

    Methods

    • Creates a URL to a given file with given options.

      Parameters

      • OptionalforceAnimation: boolean

        Returns GIF if applicable (for avatars/icons)

      Returns undefined | string

      Generated URL or nothing

      -
    +
    diff --git a/classes/ImageEmbed.html b/classes/ImageEmbed.html index d48b1518..9297844c 100644 --- a/classes/ImageEmbed.html +++ b/classes/ImageEmbed.html @@ -1,5 +1,5 @@ ImageEmbed | revolt.js

    Class ImageEmbed

    Image Embed

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? height size @@ -11,8 +11,8 @@

    Constructors

    • Construct Image Embed

      Parameters

      • client: Client

        Client

      • embed: Omit<
            (
                | {
                    colour?: null
                    | string;
                    description?: null | string;
                    icon_url?: null | string;
                    image?:
                        | null
                        | {
                            height: number;
                            size: "Large"
                            | "Preview";
                            url: string;
                            width: number;
                        };
                    original_url?: null
                    | string;
                    site_name?: null | string;
                    special?:
                        | null
                        | { type: "None" }
                        | { type: "GIF" }
                        | { id: string; timestamp?: null | string; type: "YouTube" }
                        | { content_type: "Channel"; id: string; type: "Lightspeed" }
                        | {
                            content_type: "Video" | "Channel" | "Clip";
                            id: string;
                            type: "Twitch";
                        }
                        | { content_type: string; id: string; type: "Spotify" }
                        | { type: "Soundcloud" }
                        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                        | { id: string; type: "Streamable" };
                    title?: null | string;
                    type: "Website";
                    url?: null | string;
                    video?: null | { height: number; url: string; width: number };
                }
                | {
                    height: number;
                    size: "Large"
                    | "Preview";
                    type: "Image";
                    url: string;
                    width: number;
                }
                | { height: number; type: "Video"; url: string; width: number }
                | {
                    colour?: null | string;
                    description?: null | string;
                    icon_url?: null | string;
                    media?:
                        | null
                        | {
                            _id: string;
                            content_type: string;
                            deleted?: null
                            | boolean;
                            filename: string;
                            message_id?: null | string;
                            metadata:
                                | { type: "File" }
                                | { type: "Text" }
                                | { height: number; type: "Image"; width: number }
                                | { height: number; type: "Video"; width: number }
                                | { type: "Audio" };
                            object_id?: null | string;
                            reported?: null | boolean;
                            server_id?: null | string;
                            size: number;
                            tag: string;
                            user_id?: null | string;
                        };
                    title?: null
                    | string;
                    type: "Text";
                    url?: null | string;
                }
                | { type: "None" }
            ) & { type: "Image" },
            "type",
        >

        Embed

        -

      Returns ImageEmbed

    Properties

    client?: Client
    height: number
    size: "Large" | "Preview"
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url: string
    width: number

    Accessors

    Methods

    • Create an Embed from an API Embed

      +

    Returns ImageEmbed

    Properties

    client?: Client
    height: number
    size: "Large" | "Preview"
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url: string
    width: number

    Accessors

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -43,4 +43,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/classes/MFA.html b/classes/MFA.html index d4f901a1..920f3280 100644 --- a/classes/MFA.html +++ b/classes/MFA.html @@ -1,5 +1,5 @@ MFA | revolt.js

    Class MFA

    Multi-Factor Authentication

    -

    Constructors

    Constructors

    Accessors

    Constructors

    • Construct MFA helper

      Parameters

      • client: Client

        Client

      • state: {
            email_mfa: boolean;
            email_otp: boolean;
            recovery_active: boolean;
            security_key_mfa: boolean;
            totp_mfa: boolean;
            trusted_handover: boolean;
        }

        State

        -

      Returns MFA

    Accessors

    • get authenticatorEnabled(): boolean

      Whether authenticator app is enabled

      -

      Returns boolean

    • get availableMethods(): ("Password" | "Recovery" | "Totp")[]

      Available MFA methods for generating tickets

      -

      Returns ("Password" | "Recovery" | "Totp")[]

    • get recoveryEnabled(): boolean

      Whether recovery codes are enabled

      -

      Returns boolean

    Methods

    • Create an MFA ticket

      +

    Returns MFA

    Accessors

    • get authenticatorEnabled(): boolean

      Whether authenticator app is enabled

      +

      Returns boolean

    • get availableMethods(): ("Password" | "Recovery" | "Totp")[]

      Available MFA methods for generating tickets

      +

      Returns ("Password" | "Recovery" | "Totp")[]

    • get recoveryEnabled(): boolean

      Whether recovery codes are enabled

      +

      Returns boolean

    Methods

    • Create an MFA ticket

      Parameters

      • params: { password: string } | { recovery_code: string } | { totp_code: string }

      Returns Promise<MFATicket>

      Token

      -
    • Enable authenticator using token generated from secret found earlier

      +
    • Enable authenticator using token generated from secret found earlier

      Parameters

      • token: string

        Token

        -

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/classes/MFATicket.html b/classes/MFATicket.html index a3277127..10dbc2c8 100644 --- a/classes/MFATicket.html +++ b/classes/MFATicket.html @@ -1,5 +1,5 @@ MFATicket | revolt.js

    Class MFATicket

    MFA Ticket

    -

    Constructors

    Constructors

    Accessors

    Methods

    deleteAccount disableAccount @@ -17,14 +17,14 @@
  • token: string

    Unique Token

  • validated: boolean

    Whether this ticket has been validated (can be used for account actions)

  • mutate: SetStoreFunction<
        {
            email_mfa: boolean;
            email_otp: boolean;
            recovery_active: boolean;
            security_key_mfa: boolean;
            totp_mfa: boolean;
            trusted_handover: boolean;
        },
    >

    Mutate the store

    -
  • Returns MFATicket

    Accessors

    Methods

    • Disable authenticator

      -

      Returns Promise<void>

    • Fetch recovery codes

      +

    Returns MFATicket

    Accessors

    Methods

    • Disable authenticator

      +

      Returns Promise<void>

    • Fetch recovery codes

      Returns Promise<string[]>

      List of codes

      -
    • Generate new authenticator secret

      +
    • Generate new authenticator secret

      Returns Promise<string>

      Secret

      -
    • Generate new set of recovery codes

      +
    • Generate new set of recovery codes

      Returns Promise<string[]>

      List of codes

      -
    +
    diff --git a/classes/Message.html b/classes/Message.html index 15a74dd2..9c347d44 100644 --- a/classes/Message.html +++ b/classes/Message.html @@ -1,5 +1,5 @@ Message | revolt.js

    Class Message

    Message Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists animatedAvatarURL @@ -41,53 +41,53 @@

    Constructors

    Properties

    id: string

    Accessors

    • get animatedAvatarURL(): undefined | string

      Get the animated avatar URL for this message

      -

      Returns undefined | string

    • get authorId(): undefined | string

      Id of user or webhook this message was sent by

      -

      Returns undefined | string

    • get avatarURL(): undefined | string

      Get the avatar URL for this message

      -

      Returns undefined | string

    • get channelId(): undefined | string

      Id of channel this message was sent in

      -

      Returns undefined | string

    • get editedAt(): undefined | Date

      Time at which this message was edited

      -

      Returns undefined | Date

    • get interactions(): | undefined
      | { reactions?: null
      | string[]; restrict_reactions?: boolean }

      Interactions

      +

    Returns Message

    Properties

    id: string

    Accessors

    • get animatedAvatarURL(): undefined | string

      Get the animated avatar URL for this message

      +

      Returns undefined | string

    • get authorId(): undefined | string

      Id of user or webhook this message was sent by

      +

      Returns undefined | string

    • get avatarURL(): undefined | string

      Get the avatar URL for this message

      +

      Returns undefined | string

    • get channelId(): undefined | string

      Id of channel this message was sent in

      +

      Returns undefined | string

    • get editedAt(): undefined | Date

      Time at which this message was edited

      +

      Returns undefined | Date

    • get interactions(): | undefined
      | { reactions?: null
      | string[]; restrict_reactions?: boolean }

      Interactions

      Returns undefined | { reactions?: null | string[]; restrict_reactions?: boolean }

      • undefined
      • { reactions?: null | string[]; restrict_reactions?: boolean }
        • Optionalreactions?: null | string[]

          Reactions which should always appear and be distinct

        • Optionalrestrict_reactions?: boolean

          Whether reactions should be restricted to the given list

          Can only be set to true if reactions list is of at least length 1

          -
    • get isSuppressed(): boolean

      Whether this message has suppressed desktop/push notifications

      -

      Returns boolean

    • get masquerade(): | undefined
      | { avatar?: null
      | string; colour?: null | string; name?: null | string }

      Masquerade

      +

    Methods

    • Edit a message

      +
    • get masqueradeAvatarURL(): undefined | string

      Avatar URL from the masquerade

      +

      Returns undefined | string

    • get mentionIds(): undefined | string[]

      IDs of users this message mentions

      +

      Returns undefined | string[]

    • get reactions(): ReactiveMap<string, ReactiveSet<string>>

      Reactions

      +

      Returns ReactiveMap<string, ReactiveSet<string>>

    • get replyIds(): undefined | string[]

      IDs of messages this message replies to

      +

      Returns undefined | string[]

    • get roleColour(): undefined | null | string

      Get the role colour for this message

      +

      Returns undefined | null | string

    • get username(): undefined | string

      Get the username for this message

      +

      Returns undefined | string

    Methods

    • Edit a message

      Parameters

      • data: {
            content?: null | string;
            embeds?:
                | null
                | {
                    colour?: null
                    | string;
                    description?: null | string;
                    icon_url?: null | string;
                    media?: null | string;
                    title?: null | string;
                    url?: null | string;
                }[];
        }

        Message edit route data

        • Optionalcontent?: null | string

          New message content

        • Optionalembeds?:
              | null
              | {
                  colour?: null
                  | string;
                  description?: null | string;
                  icon_url?: null | string;
                  media?: null | string;
                  title?: null | string;
                  url?: null | string;
              }[]

          Embeds to include in the message

          -

      Returns Promise<
          {
              _id: string;
              attachments?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              }[];
              author: string;
              channel: string;
              content?: null
              | string;
              edited?: null | string;
              embeds?:
                  | null
                  | (
                      | {
                          colour?: null
                          | string;
                          description?: null | string;
                          icon_url?: null | string;
                          image?:
                              | null
                              | {
                                  height: number;
                                  size: "Large"
                                  | "Preview";
                                  url: string;
                                  width: number;
                              };
                          original_url?: null
                          | string;
                          site_name?: null | string;
                          special?:
                              | null
                              | { type: "None" }
                              | { type: "GIF" }
                              | { id: string; timestamp?: null | string; type: "YouTube" }
                              | { content_type: "Channel"; id: string; type: "Lightspeed" }
                              | {
                                  content_type: "Video" | "Channel" | "Clip";
                                  id: string;
                                  type: "Twitch";
                              }
                              | { content_type: string; id: string; type: "Spotify" }
                              | { type: "Soundcloud" }
                              | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                              | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                              | { id: string; type: "Streamable" };
                          title?: null | string;
                          type: "Website";
                          url?: null | string;
                          video?: null | { height: number; url: string; width: number };
                      }
                      | {
                          height: number;
                          size: "Large"
                          | "Preview";
                          type: "Image";
                          url: string;
                          width: number;
                      }
                      | { height: number; type: "Video"; url: string; width: number }
                      | {
                          colour?: null | string;
                          description?: null | string;
                          icon_url?: null | string;
                          media?:
                              | null
                              | {
                                  _id: string;
                                  content_type: string;
                                  deleted?: null
                                  | boolean;
                                  filename: string;
                                  message_id?: null | string;
                                  metadata:
                                      | { type: "File" }
                                      | { type: "Text" }
                                      | { height: number; type: "Image"; width: number }
                                      | { height: number; type: "Video"; width: number }
                                      | { type: "Audio" };
                                  object_id?: null | string;
                                  reported?: null | boolean;
                                  server_id?: null | string;
                                  size: number;
                                  tag: string;
                                  user_id?: null | string;
                              };
                          title?: null
                          | string;
                          type: "Text";
                          url?: null | string;
                      }
                      | { type: "None" }
                  )[];
              flags?: number;
              interactions?: {
                  reactions?: null | string[];
                  restrict_reactions?: boolean;
              };
              masquerade?: | null
              | { avatar?: null
              | string; colour?: null | string; name?: null | string };
              member?:
                  | null
                  | {
                      _id: { server: string; user: string };
                      avatar?:
                          | null
                          | {
                              _id: string;
                              content_type: string;
                              deleted?: null
                              | boolean;
                              filename: string;
                              message_id?: null | string;
                              metadata:
                                  | { type: "File" }
                                  | { type: "Text" }
                                  | { height: number; type: "Image"; width: number }
                                  | { height: number; type: "Video"; width: number }
                                  | { type: "Audio" };
                              object_id?: null | string;
                              reported?: null | boolean;
                              server_id?: null | string;
                              size: number;
                              tag: string;
                              user_id?: null | string;
                          };
                      joined_at: string;
                      nickname?: null
                      | string;
                      roles?: string[];
                      timeout?: null | string;
                  };
              mentions?: null
              | string[];
              nonce?: null | string;
              pinned?: null | boolean;
              reactions?: { [key: string]: string[] };
              replies?: null | string[];
              role_mentions?: null | string[];
              system?:
                  | null
                  | { content: string; type: "text" }
                  | { by: string; id: string; type: "user_added" }
                  | { by: string; id: string; type: "user_remove" }
                  | { id: string; type: "user_joined" }
                  | { id: string; type: "user_left" }
                  | { id: string; type: "user_kicked" }
                  | { id: string; type: "user_banned" }
                  | { by: string; name: string; type: "channel_renamed" }
                  | { by: string; type: "channel_description_changed" }
                  | { by: string; type: "channel_icon_changed" }
                  | { from: string; to: string; type: "channel_ownership_changed" }
                  | { by: string; id: string; type: "message_pinned" }
                  | { by: string; id: string; type: "message_unpinned" };
              user?:
                  | null
                  | {
                      _id: string;
                      avatar?: | null
                      | {
                          _id: string;
                          content_type: string;
                          deleted?: null
                          | boolean;
                          filename: string;
                          message_id?: null | string;
                          metadata:
                              | { type: "File" }
                              | { type: "Text" }
                              | { height: number; type: "Image"; width: number }
                              | { height: number; type: "Video"; width: number }
                              | { type: "Audio" };
                          object_id?: null | string;
                          reported?: null | boolean;
                          server_id?: null | string;
                          size: number;
                          tag: string;
                          user_id?: null | string;
                      };
                      badges?: number;
                      bot?: null
                      | { owner: string };
                      discriminator: string;
                      display_name?: null | string;
                      flags?: number;
                      online: boolean;
                      privileged?: boolean;
                      relations?: {
                          _id: string;
                          status:
                              | "User"
                              | "None"
                              | "Friend"
                              | "Outgoing"
                              | "Incoming"
                              | "Blocked"
                              | "BlockedOther";
                      }[];
                      relationship: | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
                      status?: | null
                      | {
                          presence?: null
                          | "Online"
                          | "Idle"
                          | "Focus"
                          | "Busy"
                          | "Invisible";
                          text?: null | string;
                      };
                      username: string;
                  };
              webhook?: null
              | { avatar?: null | string; name: string };
          },
      >

    • React to a message

      +

    Returns Promise<
        {
            _id: string;
            attachments?: | null
            | {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            }[];
            author: string;
            channel: string;
            content?: null
            | string;
            edited?: null | string;
            embeds?:
                | null
                | (
                    | {
                        colour?: null
                        | string;
                        description?: null | string;
                        icon_url?: null | string;
                        image?:
                            | null
                            | {
                                height: number;
                                size: "Large"
                                | "Preview";
                                url: string;
                                width: number;
                            };
                        original_url?: null
                        | string;
                        site_name?: null | string;
                        special?:
                            | null
                            | { type: "None" }
                            | { type: "GIF" }
                            | { id: string; timestamp?: null | string; type: "YouTube" }
                            | { content_type: "Channel"; id: string; type: "Lightspeed" }
                            | {
                                content_type: "Video" | "Channel" | "Clip";
                                id: string;
                                type: "Twitch";
                            }
                            | { content_type: string; id: string; type: "Spotify" }
                            | { type: "Soundcloud" }
                            | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                            | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                            | { id: string; type: "Streamable" };
                        title?: null | string;
                        type: "Website";
                        url?: null | string;
                        video?: null | { height: number; url: string; width: number };
                    }
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        type: "Image";
                        url: string;
                        width: number;
                    }
                    | { height: number; type: "Video"; url: string; width: number }
                    | {
                        colour?: null | string;
                        description?: null | string;
                        icon_url?: null | string;
                        media?:
                            | null
                            | {
                                _id: string;
                                content_type: string;
                                deleted?: null
                                | boolean;
                                filename: string;
                                message_id?: null | string;
                                metadata:
                                    | { type: "File" }
                                    | { type: "Text" }
                                    | { height: number; type: "Image"; width: number }
                                    | { height: number; type: "Video"; width: number }
                                    | { type: "Audio" };
                                object_id?: null | string;
                                reported?: null | boolean;
                                server_id?: null | string;
                                size: number;
                                tag: string;
                                user_id?: null | string;
                            };
                        title?: null
                        | string;
                        type: "Text";
                        url?: null | string;
                    }
                    | { type: "None" }
                )[];
            flags?: number;
            interactions?: {
                reactions?: null | string[];
                restrict_reactions?: boolean;
            };
            masquerade?: | null
            | { avatar?: null
            | string; colour?: null | string; name?: null | string };
            member?:
                | null
                | {
                    _id: { server: string; user: string };
                    avatar?:
                        | null
                        | {
                            _id: string;
                            content_type: string;
                            deleted?: null
                            | boolean;
                            filename: string;
                            message_id?: null | string;
                            metadata:
                                | { type: "File" }
                                | { type: "Text" }
                                | { height: number; type: "Image"; width: number }
                                | { height: number; type: "Video"; width: number }
                                | { type: "Audio" };
                            object_id?: null | string;
                            reported?: null | boolean;
                            server_id?: null | string;
                            size: number;
                            tag: string;
                            user_id?: null | string;
                        };
                    joined_at: string;
                    nickname?: null
                    | string;
                    roles?: string[];
                    timeout?: null | string;
                };
            mentions?: null
            | string[];
            nonce?: null | string;
            pinned?: null | boolean;
            reactions?: { [key: string]: string[] };
            replies?: null | string[];
            role_mentions?: null | string[];
            system?:
                | null
                | { content: string; type: "text" }
                | { by: string; id: string; type: "user_added" }
                | { by: string; id: string; type: "user_remove" }
                | { id: string; type: "user_joined" }
                | { id: string; type: "user_left" }
                | { id: string; type: "user_kicked" }
                | { id: string; type: "user_banned" }
                | { by: string; name: string; type: "channel_renamed" }
                | { by: string; type: "channel_description_changed" }
                | { by: string; type: "channel_icon_changed" }
                | { from: string; to: string; type: "channel_ownership_changed" }
                | { by: string; id: string; type: "message_pinned" }
                | { by: string; id: string; type: "message_unpinned" };
            user?:
                | null
                | {
                    _id: string;
                    avatar?: | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                    badges?: number;
                    bot?: null
                    | { owner: string };
                    discriminator: string;
                    display_name?: null | string;
                    flags?: number;
                    online: boolean;
                    privileged?: boolean;
                    relations?: {
                        _id: string;
                        status:
                            | "User"
                            | "None"
                            | "Friend"
                            | "Outgoing"
                            | "Incoming"
                            | "Blocked"
                            | "BlockedOther";
                    }[];
                    relationship: | "User"
                    | "None"
                    | "Friend"
                    | "Outgoing"
                    | "Incoming"
                    | "Blocked"
                    | "BlockedOther";
                    status?: | null
                    | {
                        presence?: null
                        | "Online"
                        | "Idle"
                        | "Focus"
                        | "Busy"
                        | "Invisible";
                        text?: null | string;
                    };
                    username: string;
                };
            webhook?: null
            | { avatar?: null | string; name: string };
        },
    >

    • React to a message

      Parameters

      • emoji: string

        Unicode or emoji ID

        -

      Returns Promise<void>

    • Reply to Message

      -

      Parameters

      • data:
            | string
            | Omit<
                {
                    attachments?: null
                    | string[];
                    content?: null | string;
                    embeds?:
                        | null
                        | {
                            colour?: null
                            | string;
                            description?: null | string;
                            icon_url?: null | string;
                            media?: null | string;
                            title?: null | string;
                            url?: null | string;
                        }[];
                    flags?: null
                    | number;
                    interactions?:
                        | null
                        | { reactions?: null
                        | string[]; restrict_reactions?: boolean };
                    masquerade?:
                        | null
                        | {
                            avatar?: null
                            | string;
                            colour?: null | string;
                            name?: null | string;
                        };
                    nonce?: null
                    | string;
                    replies?:
                        | null
                        | { fail_if_not_exists?: null
                        | boolean; id: string; mention: boolean }[];
                },
                "nonce",
            > & { nonce?: string }
      • mention: boolean = true

      Returns undefined | Promise<Message>

    • Un-react from a message

      +

    Returns Promise<void>

    • Reply to Message

      +

      Parameters

      • data:
            | string
            | Omit<
                {
                    attachments?: null
                    | string[];
                    content?: null | string;
                    embeds?:
                        | null
                        | {
                            colour?: null
                            | string;
                            description?: null | string;
                            icon_url?: null | string;
                            media?: null | string;
                            title?: null | string;
                            url?: null | string;
                        }[];
                    flags?: null
                    | number;
                    interactions?:
                        | null
                        | { reactions?: null
                        | string[]; restrict_reactions?: boolean };
                    masquerade?:
                        | null
                        | {
                            avatar?: null
                            | string;
                            colour?: null | string;
                            name?: null | string;
                        };
                    nonce?: null
                    | string;
                    replies?:
                        | null
                        | { fail_if_not_exists?: null
                        | boolean; id: string; mention: boolean }[];
                },
                "nonce",
            > & { nonce?: string }
      • mention: boolean = true

      Returns undefined | Promise<Message>

    • Un-react from a message

      Parameters

      • emoji: string

        Unicode or emoji ID

        -

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/classes/MessageCollection.html b/classes/MessageCollection.html index ef86580c..599c2acc 100644 --- a/classes/MessageCollection.html +++ b/classes/MessageCollection.html @@ -1,5 +1,5 @@ MessageCollection | revolt.js

    Class MessageCollection

    Collection of Messages

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedMessage
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedMessage>>

    Methods

    • Create a new instance of an object

      +

    Returns MessageCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedMessage
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedMessage>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Message

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns Message[]

    Returns undefined | Message

    Returns Message

    Returns undefined | Message

    Returns O[]

    +
    diff --git a/classes/MessageEmbed.html b/classes/MessageEmbed.html index b2584796..704af39c 100644 --- a/classes/MessageEmbed.html +++ b/classes/MessageEmbed.html @@ -1,12 +1,12 @@ MessageEmbed | revolt.js

    Class MessageEmbedAbstract

    Message Embed

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Text" | "Video" | "Image" | "Website" | "None"

    Methods

    • Create an Embed from an API Embed

      +

    Returns MessageEmbed

    Properties

    client?: Client
    type: "Text" | "Video" | "Image" | "Website" | "None"

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -37,4 +37,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/classes/MessageWebhook.html b/classes/MessageWebhook.html index 28b5636e..bffda4c3 100644 --- a/classes/MessageWebhook.html +++ b/classes/MessageWebhook.html @@ -1,5 +1,5 @@ MessageWebhook | revolt.js

    Class MessageWebhook

    Message Webhook Class

    -

    Constructors

    Constructors

    Properties

    avatar? id name @@ -7,5 +7,5 @@

    Constructors

    Properties

    avatar?: File
    id: string
    name: string

    Accessors

    +
  • id: string
  • Returns MessageWebhook

    Properties

    avatar?: File
    id: string
    name: string

    Accessors

    diff --git a/classes/PublicBot.html b/classes/PublicBot.html index 88f65921..63ea10c6 100644 --- a/classes/PublicBot.html +++ b/classes/PublicBot.html @@ -1,5 +1,5 @@ PublicBot | revolt.js

    Class PublicBot

    Public Bot Class

    -

    Constructors

    Constructors

    Properties

    avatar? description? id @@ -13,8 +13,8 @@
  • Optionalavatar?: string

    Profile Avatar

  • Optionaldescription?: string

    Profile Description

  • username: string

    Bot Username

    -
  • Returns PublicBot

    Properties

    avatar?: File
    description?: string
    id: string
    username: string

    Methods

    • Add the bot to a group

      +

    Returns PublicBot

    Properties

    avatar?: File
    description?: string
    id: string
    username: string

    Methods

    • Add the bot to a server

      +

    Returns void

    +

    Returns void

    diff --git a/classes/PublicChannelInvite.html b/classes/PublicChannelInvite.html index c876dd04..2cfbc1bc 100644 --- a/classes/PublicChannelInvite.html +++ b/classes/PublicChannelInvite.html @@ -1,12 +1,12 @@ PublicChannelInvite | revolt.js

    Class PublicChannelInviteAbstract

    Public Channel Invite

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite Response

      +

    Returns PublicChannelInvite

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite Response

      Parameters

      • client: Client

        Client

      • invite:
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                member_count: number;
                server_banner?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_flags?: null
                | number;
                server_icon?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_id: string;
                server_name: string;
                type: "Server";
                user_avatar?: | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
                user_name: string;
            }
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                type: "Group";
                user_avatar?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                user_name: string;
            }

        Data

        • {
              channel_description?: null | string;
              channel_id: string;
              channel_name: string;
              code: string;
              member_count: number;
              server_banner?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_flags?: null
              | number;
              server_icon?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_id: string;
              server_name: string;
              type: "Server";
              user_avatar?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              };
              user_name: string;
          }
          • Optionalchannel_description?: null | string

            Description of server channel

            @@ -30,4 +30,4 @@
          • type: "Group"
          • Optionaluser_avatar?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                }

            Avatar of the user who created the invite

          • user_name: string

            Name of user who created the invite

      Returns PublicChannelInvite

      Invite

      -
    +
    diff --git a/classes/Server.html b/classes/Server.html index e70269c9..2d19b53b 100644 --- a/classes/Server.html +++ b/classes/Server.html @@ -1,5 +1,5 @@ Server | revolt.js

    Class Server

    Server Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists analytics @@ -58,55 +58,55 @@

    Constructors

    Properties

    id: string

    Accessors

    • get animatedIconURL(): undefined | string

      URL to the server's animated icon

      -

      Returns undefined | string

    • get bannerURL(): undefined | string

      URL to the server's banner

      -

      Returns undefined | string

    • get categories(): | undefined
      | { channels: string[]; id: string; title: string }[]

      Categories

      +

    Returns Server

    Properties

    id: string

    Accessors

    • get animatedIconURL(): undefined | string

      URL to the server's animated icon

      +

      Returns undefined | string

    • get bannerURL(): undefined | string

      URL to the server's banner

      +

      Returns undefined | string

    • get categories(): | undefined
      | { channels: string[]; id: string; title: string }[]

      Categories

      Returns undefined | { channels: string[]; id: string; title: string }[]

      • undefined
      • { channels: string[]; id: string; title: string }[]
        • channels: string[]

          Channels in this category

        • id: string

          Unique ID for this category

        • title: string

          Title for this category

          -
    • get mentions(): string[]

      Find all message IDs of unread messages

      +

    Methods

    Methods

    • Delete the underlying server

      Parameters

      • OptionalleaveEvent: boolean

        Whether we are leaving

        -

      Returns void

    • Ban user from this server

      +

    Returns void

    • Create a channel

      +

    Returns Promise<ServerBan>

    • Create a channel

      Parameters

      • data: {
            description?: null | string;
            name: string;
            nsfw?: null | boolean;
            type?: "Text" | "Voice";
        }

        Channel create route data

        • Optionaldescription?: null | string

          Channel description

        • name: string

          Channel name

          @@ -116,18 +116,18 @@ which is smaller for higher priority roles.

      Returns Promise<Channel>

      The newly-created channel

      -
    • Create an emoji on the server

      +
    • Create an emoji on the server

      Parameters

      • autumnId: string

        Autumn Id

      • options: Omit<
            {
                name: string;
                nsfw?: boolean;
                parent: { id: string; type: "Server" }
                | { type: "Detached" };
            },
            "parent",
        >

        Options

        -

      Returns Promise<Emoji>

    • Create role

      +

    Returns Promise<Emoji>

    • Create role

      Parameters

      • name: string

        Role name

        -

      Returns Promise<
          {
              id: string;
              role: {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              };
          },
      >

    • Delete or leave a server

      +

    Returns Promise<
        {
            id: string;
            role: {
                colour?: null
                | string;
                hoist?: boolean;
                name: string;
                permissions: { a: number; d: number };
                rank?: number;
            };
        },
    >

    • Delete or leave a server

      Parameters

      • OptionalleaveSilently: boolean

        Whether to not send a message on leave

        -

      Returns Promise<void>

    • Delete emoji

      +

    Returns Promise<void>

    • Delete emoji

      Parameters

      • emojiId: string

        Emoji ID

        -

      Returns Promise<void>

    • Delete role

      +

    Returns Promise<void>

    • Delete role

      Parameters

      • roleId: string

        Role ID

        -

      Returns Promise<void>

    • Edit a server

      +

    Returns Promise<void>

    • Edit a server

      Parameters

      • data: {
            analytics?: null | boolean;
            banner?: null | string;
            categories?: null | { channels: string[]; id: string; title: string }[];
            description?: null | string;
            discoverable?: null | boolean;
            flags?: null | number;
            icon?: null | string;
            name?: null | string;
            remove?:
                | null
                | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[];
            system_messages?:
                | null
                | {
                    user_banned?: null
                    | string;
                    user_joined?: null | string;
                    user_kicked?: null | string;
                    user_left?: null | string;
                };
        }

        Changes

        • Optionalanalytics?: null | boolean

          Whether analytics should be collected for this server

          Must be enabled in order to show up on Revolt Discover.

          @@ -141,7 +141,7 @@ which is smaller for higher priority roles.

        • Optionalname?: null | string

          Server name

        • Optionalremove?: null | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[]

          Fields to remove from server object

        • Optionalsystem_messages?:
              | null
              | {
                  user_banned?: null
                  | string;
                  user_joined?: null | string;
                  user_kicked?: null | string;
                  user_left?: null | string;
              }

          System message configuration

          -

      Returns Promise<void>

    • Edit a role

      +

    Returns Promise<void>

    • Edit a role

      Parameters

      • roleId: string

        Role ID

      • data: {
            colour?: null | string;
            hoist?: null | boolean;
            name?: null | string;
            rank?: null | number;
            remove?: null | "Colour"[];
        }

        Role editing route data

        • Optionalcolour?: null | string

          Role colour

          @@ -151,42 +151,42 @@ which is smaller for higher priority roles.

          Ranking position

          Smaller values take priority.

        • Optionalremove?: null | "Colour"[]

          Fields to remove from role object

          -

      Returns Promise<
          {
              colour?: null
              | string;
              hoist?: boolean;
              name: string;
              permissions: { a: number; d: number };
              rank?: number;
          },
      >

    • Fetch a server's bans

      +

    Returns Promise<
        {
            colour?: null
            | string;
            hoist?: boolean;
            name: string;
            permissions: { a: number; d: number };
            rank?: number;
        },
    >

    • Helper function to retrieve cached server member by their ID in this server

      Parameters

      • userId: string

        User's ID

      Returns undefined | ServerMember

      Server Member (if cached)

      -
    • Check whether we have a given permission in a server

      +
    • Check whether we have a given permission in a server

      Parameters

      • ...permission: (
            | "Video"
            | "Masquerade"
            | "ManageChannel"
            | "ManageServer"
            | "ManagePermissions"
            | "ManageRole"
            | "ManageCustomisation"
            | "KickMembers"
            | "BanMembers"
            | "TimeoutMembers"
            | "AssignRoles"
            | "ChangeNickname"
            | "ManageNicknames"
            | "ChangeAvatar"
            | "RemoveAvatars"
            | "ViewChannel"
            | "ReadMessageHistory"
            | "SendMessage"
            | "ManageMessages"
            | "ManageWebhooks"
            | "InviteOthers"
            | "SendEmbeds"
            | "UploadFiles"
            | "React"
            | "Connect"
            | "Speak"
            | "MuteMembers"
            | "DeafenMembers"
            | "MoveMembers"
            | "MentionEveryone"
            | "MentionRoles"
            | "GrantAllSafe"
        )[]

        Permission Names

      Returns boolean

      Whether we have this permission

      -
    • Check whether we have at least one of the given permissions in a server

      +

    Returns Promise<void>

    • Check whether we have at least one of the given permissions in a server

      Parameters

      • ...permission: (
            | "Video"
            | "Masquerade"
            | "ManageChannel"
            | "ManageServer"
            | "ManagePermissions"
            | "ManageRole"
            | "ManageCustomisation"
            | "KickMembers"
            | "BanMembers"
            | "TimeoutMembers"
            | "AssignRoles"
            | "ChangeNickname"
            | "ManageNicknames"
            | "ChangeAvatar"
            | "RemoveAvatars"
            | "ViewChannel"
            | "ReadMessageHistory"
            | "SendMessage"
            | "ManageMessages"
            | "ManageWebhooks"
            | "InviteOthers"
            | "SendEmbeds"
            | "UploadFiles"
            | "React"
            | "Connect"
            | "Speak"
            | "MuteMembers"
            | "DeafenMembers"
            | "MoveMembers"
            | "MentionEveryone"
            | "MentionRoles"
            | "GrantAllSafe"
        )[]

        Permission Names

      Returns boolean

      Whether we have one of the permissions

      -
    • Query members from a server by name

      Parameters

      • query: string

        Name

      Returns Promise<{ members: ServerMember[]; users: User[] }>

      List of the server's members and their user objects

      -
    • Set role permissions

      +
    • Set role permissions

      Parameters

      • roleId: string = "default"

        Role Id, set to 'default' to affect all users

      • permissions: number | { allow: number; deny: number }

        Permission value

        • number
        • { allow: number; deny: number }
          • allow: number

            Format: uint64

            Allow bit flags

          • deny: number

            Format: uint64

            Disallow bit flags

            -

      Returns Promise<
          {
              _id: string;
              analytics?: boolean;
              banner?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              };
              categories?: null
              | { channels: string[]; id: string; title: string }[];
              channels: string[];
              default_permissions: number;
              description?: null | string;
              discoverable?: boolean;
              flags?: number;
              icon?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              name: string;
              nsfw?: boolean;
              owner: string;
              roles?: {
                  [key: string]: {
                      colour?: null
                      | string;
                      hoist?: boolean;
                      name: string;
                      permissions: { a: number; d: number };
                      rank?: number;
                  };
              };
              system_messages?: | null
              | {
                  user_banned?: null
                  | string;
                  user_joined?: null | string;
                  user_kicked?: null | string;
                  user_left?: null | string;
              };
          },
      >

    • Optimised member fetch route

      -

      Parameters

      • OptionalexcludeOffline: boolean

      Returns Promise<void>

    • Convert to string

      +

    Returns Promise<
        {
            _id: string;
            analytics?: boolean;
            banner?: | null
            | {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            };
            categories?: null
            | { channels: string[]; id: string; title: string }[];
            channels: string[];
            default_permissions: number;
            description?: null | string;
            discoverable?: boolean;
            flags?: number;
            icon?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
            name: string;
            nsfw?: boolean;
            owner: string;
            roles?: {
                [key: string]: {
                    colour?: null
                    | string;
                    hoist?: boolean;
                    name: string;
                    permissions: { a: number; d: number };
                    rank?: number;
                };
            };
            system_messages?: | null
            | {
                user_banned?: null
                | string;
                user_joined?: null | string;
                user_kicked?: null | string;
                user_left?: null | string;
            };
        },
    >

    • Optimised member fetch route

      +

      Parameters

      • OptionalexcludeOffline: boolean

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/classes/ServerBan.html b/classes/ServerBan.html index c71ce220..8da11991 100644 --- a/classes/ServerBan.html +++ b/classes/ServerBan.html @@ -1,5 +1,5 @@ ServerBan | revolt.js

    Class ServerBan

    Server Ban

    -

    Constructors

    Constructors

    Properties

    client id reason? @@ -17,8 +17,8 @@
  • Optionalavatar?:
        | null
        | {
            _id: string;
            content_type: string;
            deleted?: null
            | boolean;
            filename: string;
            message_id?: null | string;
            metadata:
                | { type: "File" }
                | { type: "Text" }
                | { height: number; type: "Image"; width: number }
                | { height: number; type: "Video"; width: number }
                | { type: "Audio" };
            object_id?: null | string;
            reported?: null | boolean;
            server_id?: null | string;
            size: number;
            tag: string;
            user_id?: null | string;
        }

    Avatar of the banned user

  • discriminator: string

    Discriminator of the banned user

  • username: string

    Username of the banned user

    -
  • Returns ServerBan

    Properties

    client: Client
    id: { server: string; user: string }

    Type declaration

    • server: string

      Server Id

      +

    Returns ServerBan

    Properties

    client: Client
    id: { server: string; user: string }

    Type declaration

    • server: string

      Server Id

    • user: string

      User Id

      -
    reason?: string
    user?: BannedUser

    Accessors

    Methods

    +
    reason?: string
    user?: BannedUser

    Accessors

    Methods

    diff --git a/classes/ServerCollection.html b/classes/ServerCollection.html index 7138e275..b114bc16 100644 --- a/classes/ServerCollection.html +++ b/classes/ServerCollection.html @@ -1,5 +1,5 @@ ServerCollection | revolt.js

    Class ServerCollection

    Collection of Servers

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedServer
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedServer>>

    Methods

    • Create a new instance of an object

      +

    Returns ServerCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedServer
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedServer>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Server

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Create a server

      +

    Returns void

    Returns void

    Returns Server[]

    Returns undefined | Server

    Returns Server

    Returns undefined | Server

    Returns O[]

    +
    diff --git a/classes/ServerInvite.html b/classes/ServerInvite.html index 259b239d..0201711c 100644 --- a/classes/ServerInvite.html +++ b/classes/ServerInvite.html @@ -1,5 +1,5 @@ ServerInvite | revolt.js

    Class ServerInvite

    Server Invite

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    channelId client? creatorId @@ -21,11 +21,11 @@
  • type: "Server"
  • { _id: string; channel: string; creator: string; type: "Group" }
    • _id: string

      Invite code

    • channel: string

      Id of the group channel this invite points to

    • creator: string

      Id of user who created this invite

      -
    • type: "Group"
    • type: "Server"

    Returns ServerInvite

    Properties

    channelId: string
    client?: Client
    creatorId: string
    id: string
    serverId: string
    type: "Group" | "Server" | "None"

    Accessors

    Methods

    • Create an Invite from an API Invite

      +
    • type: "Group"
    • type: "Server"

    Returns ServerInvite

    Properties

    channelId: string
    client?: Client
    creatorId: string
    id: string
    serverId: string
    type: "Group" | "Server" | "None"

    Accessors

    Methods

    • Create an Invite from an API Invite

      Parameters

      • client: Client

        Client

      • invite:
            | {
                _id: string;
                channel: string;
                creator: string;
                server: string;
                type: "Server";
            }
            | { _id: string; channel: string; creator: string; type: "Group" }

        Data

        • {
              _id: string;
              channel: string;
              creator: string;
              server: string;
              type: "Server";
          }
          • _id: string

            Invite code

            @@ -36,4 +36,4 @@
          • channel: string

            Id of the group channel this invite points to

          • creator: string

            Id of user who created this invite

          • type: "Group"

      Returns ChannelInvite

      Invite

      -
    +
    diff --git a/classes/ServerMember.html b/classes/ServerMember.html index 10560009..0da42a86 100644 --- a/classes/ServerMember.html +++ b/classes/ServerMember.html @@ -1,5 +1,5 @@ ServerMember | revolt.js

    Class ServerMember

    Server Member Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists animatedAvatarURL @@ -28,45 +28,45 @@
  • id: { server: string; user: string }

    Id

    • server: string

      Server Id

    • user: string

      User Id

      -
  • Returns ServerMember

    Properties

    id: { server: string; user: string }

    Type declaration

    • server: string

      Server Id

      +

    Returns ServerMember

    Properties

    id: { server: string; user: string }

    Type declaration

    • server: string

      Server Id

    • user: string

      User Id

      -

    Accessors

    • get hoistedRole(): | null
      | Partial<
          {
              colour?: null
              | string;
              hoist?: boolean;
              name: string;
              permissions: { a: number; d: number };
              rank?: number;
          },
      >

      Member's currently hoisted role.

      -

      Returns
          | null
          | Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          >

    • get orderedRoles(): (
          Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          > & { id: string }
      )[]

      Ordered list of roles for this member, from lowest to highest priority.

      -

      Returns (
          Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          > & { id: string }
      )[]

    • get ranking(): number

      Member's ranking +

    Accessors

    • get hoistedRole(): | null
      | Partial<
          {
              colour?: null
              | string;
              hoist?: boolean;
              name: string;
              permissions: { a: number; d: number };
              rank?: number;
          },
      >

      Member's currently hoisted role.

      +

      Returns
          | null
          | Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          >

    • get orderedRoles(): (
          Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          > & { id: string }
      )[]

      Ordered list of roles for this member, from lowest to highest priority.

      +

      Returns (
          Partial<
              {
                  colour?: null
                  | string;
                  hoist?: boolean;
                  name: string;
                  permissions: { a: number; d: number };
                  rank?: number;
              },
          > & { id: string }
      )[]

    Methods

    Methods

    • Ban this member from the server

      Parameters

      • options: { reason?: null | string }

        Ban options

        • Optionalreason?: null | string

          Ban reason

          -

      Returns Promise<void>

    • Edit a member

      +

    Returns Promise<void>

    • Edit a member

      Parameters

      • data: {
            avatar?: null | string;
            nickname?: null | string;
            remove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[];
            roles?: null | string[];
            timeout?: null | string;
        }

        Changes

        • Optionalavatar?: null | string

          Attachment Id to set for avatar

        • Optionalnickname?: null | string

          Member nickname

        • Optionalremove?: null | ("Avatar" | "Nickname" | "Roles" | "Timeout")[]

          Fields to remove from channel object

        • Optionalroles?: null | string[]

          Array of role ids

        • Optionaltimeout?: null | string

          Timestamp this member is timed out until

          -

      Returns Promise<void>

    • Get the permissions that this member has against a certain object

      +

    Returns Promise<void>

    • Check whether a member has a certain permission against a certain object

      +
    • Check whether a member has a certain permission against a certain object

      Parameters

      • target: Channel | Server

        Target object to check permissions against

      • ...permission: (
            | "Video"
            | "Masquerade"
            | "ManageChannel"
            | "ManageServer"
            | "ManagePermissions"
            | "ManageRole"
            | "ManageCustomisation"
            | "KickMembers"
            | "BanMembers"
            | "TimeoutMembers"
            | "AssignRoles"
            | "ChangeNickname"
            | "ManageNicknames"
            | "ChangeAvatar"
            | "RemoveAvatars"
            | "ViewChannel"
            | "ReadMessageHistory"
            | "SendMessage"
            | "ManageMessages"
            | "ManageWebhooks"
            | "InviteOthers"
            | "SendEmbeds"
            | "UploadFiles"
            | "React"
            | "Connect"
            | "Speak"
            | "MuteMembers"
            | "DeafenMembers"
            | "MoveMembers"
            | "MentionEveryone"
            | "MentionRoles"
            | "GrantAllSafe"
        )[]

        Permission names to check for

      Returns boolean

      Whether the member has this permission

      -
    +
    diff --git a/classes/ServerMemberCollection.html b/classes/ServerMemberCollection.html index 49227d9f..bc244ec9 100644 --- a/classes/ServerMemberCollection.html +++ b/classes/ServerMemberCollection.html @@ -1,5 +1,5 @@ ServerMemberCollection | revolt.js

    Class ServerMemberCollection

    Collection of Server Members

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedServerMember
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedServerMember>>

    Methods

    • Create a new instance of an object

      +

    Returns ServerMemberCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedServerMember
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedServerMember>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: ServerMember

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns ServerMember[]

    Returns undefined | ServerMember

    Returns ServerMember

    Returns undefined | ServerMember

    Returns O[]

    +
    diff --git a/classes/ServerPublicInvite.html b/classes/ServerPublicInvite.html index 5c40aff4..a948aaf5 100644 --- a/classes/ServerPublicInvite.html +++ b/classes/ServerPublicInvite.html @@ -1,5 +1,5 @@ ServerPublicInvite | revolt.js

    Class ServerPublicInvite

    Public Server Invite

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

  • code: string

    Invite code

  • type: "Group"
  • Optionaluser_avatar?:
        | null
        | {
            _id: string;
            content_type: string;
            deleted?: null
            | boolean;
            filename: string;
            message_id?: null | string;
            metadata:
                | { type: "File" }
                | { type: "Text" }
                | { height: number; type: "Image"; width: number }
                | { height: number; type: "Video"; width: number }
                | { type: "Audio" };
            object_id?: null | string;
            reported?: null | boolean;
            server_id?: null | string;
            size: number;
            tag: string;
            user_id?: null | string;
        }

    Avatar of the user who created the invite

  • user_name: string

    Name of user who created the invite

    -
    • type: "Server"

    Returns ServerPublicInvite

    Properties

    channelDescription?: string
    channelId: string
    channelName: string
    client?: Client
    code: string
    memberCount: number
    serverBanner?: File
    serverFlags: ServerFlags
    serverIcon?: File
    serverId: string
    serverName: string
    type: "Group" | "Server" | "None"
    userAvatar?: File
    userName: string

    Methods

    • Create an Invite from an API Invite Response

      +
    • type: "Server"

    Returns ServerPublicInvite

    Properties

    channelDescription?: string
    channelId: string
    channelName: string
    client?: Client
    code: string
    memberCount: number
    serverBanner?: File
    serverFlags: ServerFlags
    serverIcon?: File
    serverId: string
    serverName: string
    type: "Group" | "Server" | "None"
    userAvatar?: File
    userName: string

    Methods

    • Create an Invite from an API Invite Response

      Parameters

      • client: Client

        Client

      • invite:
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                member_count: number;
                server_banner?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_flags?: null
                | number;
                server_icon?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_id: string;
                server_name: string;
                type: "Server";
                user_avatar?: | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
                user_name: string;
            }
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                type: "Group";
                user_avatar?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                user_name: string;
            }

        Data

        • {
              channel_description?: null | string;
              channel_id: string;
              channel_name: string;
              code: string;
              member_count: number;
              server_banner?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_flags?: null
              | number;
              server_icon?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_id: string;
              server_name: string;
              type: "Server";
              user_avatar?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              };
              user_name: string;
          }
          • Optionalchannel_description?: null | string

            Description of server channel

            @@ -64,4 +64,4 @@
          • type: "Group"
          • Optionaluser_avatar?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                }

            Avatar of the user who created the invite

          • user_name: string

            Name of user who created the invite

      Returns PublicChannelInvite

      Invite

      -
    +
    diff --git a/classes/Session.html b/classes/Session.html index fc834550..96d30204 100644 --- a/classes/Session.html +++ b/classes/Session.html @@ -1,5 +1,5 @@ Session | revolt.js

    Class Session

    Session Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists createdAt @@ -11,13 +11,13 @@

    Constructors

    Properties

    id: string

    Accessors

    Methods

    • Rename a session

      +

    Returns Session

    Properties

    id: string

    Accessors

    Methods

    • Rename a session

      Parameters

      • name: string

        New name

        -

      Returns Promise<void>

    • Convert to string

      +

    Returns Promise<void>

    +
    diff --git a/classes/SessionCollection.html b/classes/SessionCollection.html index 6b21dbc6..797303bf 100644 --- a/classes/SessionCollection.html +++ b/classes/SessionCollection.html @@ -1,5 +1,5 @@ SessionCollection | revolt.js

    Class SessionCollection

    Collection of Sessions

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedSession
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedSession>>

    Methods

    • Create a new instance of an object

      +

    Returns SessionCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedSession
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedSession>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: Session

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    Returns void

    Returns Promise<void>

    Returns Session[]

    Returns undefined | Session

    Returns O[]

    +
    diff --git a/classes/StoreCollection.html b/classes/StoreCollection.html index bd6020ca..34c09c31 100644 --- a/classes/StoreCollection.html +++ b/classes/StoreCollection.html @@ -1,5 +1,5 @@ StoreCollection | revolt.js

    Class StoreCollection<T, V>Abstract

    Collection backed by a Solid.js Store

    -

    Type Parameters

    • T
    • V

    Hierarchy (View Summary)

    Constructors

    Type Parameters

    • T
    • V

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    create @@ -17,40 +17,40 @@ toList values

    Constructors

    Properties

    getUnderlyingObject: (id: string) => V
    updateUnderlyingObject: SetStoreFunction<Record<string, V>>

    Methods

    • Create a new instance of an object

      +

      Type Parameters

      • T
      • V

      Returns StoreCollection<T, V>

    Properties

    getUnderlyingObject: (id: string) => V
    updateUnderlyingObject: SetStoreFunction<Record<string, V>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: T

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    • Iterable of key, value pairs in the map

      +

    Returns void

    Returns T[]

    Returns undefined | T

    Returns O[]

    +
    diff --git a/classes/SystemMessage.html b/classes/SystemMessage.html index 08c2eb52..195f6041 100644 --- a/classes/SystemMessage.html +++ b/classes/SystemMessage.html @@ -1,12 +1,12 @@ SystemMessage | revolt.js

    Class SystemMessageAbstract

    System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • type:
            | "text"
            | "user_added"
            | "user_remove"
            | "user_joined"
            | "user_left"
            | "user_kicked"
            | "user_banned"
            | "channel_renamed"
            | "channel_description_changed"
            | "channel_icon_changed"
            | "channel_ownership_changed"
            | "message_pinned"
            | "message_unpinned"

        Type

        -

      Returns SystemMessage

    Properties

    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Methods

    • Create an System Message from an API System Message

      +

    Returns SystemMessage

    Properties

    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/TextEmbed.html b/classes/TextEmbed.html index a3c5004e..12e825e3 100644 --- a/classes/TextEmbed.html +++ b/classes/TextEmbed.html @@ -1,5 +1,5 @@ TextEmbed | revolt.js

    Class TextEmbed

    Text Embed

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? colour? description? @@ -13,8 +13,8 @@

    Constructors

    • Construct Video Embed

      Parameters

      • client: Client

        Client

      • embed: Omit<
            (
                | {
                    colour?: null
                    | string;
                    description?: null | string;
                    icon_url?: null | string;
                    image?:
                        | null
                        | {
                            height: number;
                            size: "Large"
                            | "Preview";
                            url: string;
                            width: number;
                        };
                    original_url?: null
                    | string;
                    site_name?: null | string;
                    special?:
                        | null
                        | { type: "None" }
                        | { type: "GIF" }
                        | { id: string; timestamp?: null | string; type: "YouTube" }
                        | { content_type: "Channel"; id: string; type: "Lightspeed" }
                        | {
                            content_type: "Video" | "Channel" | "Clip";
                            id: string;
                            type: "Twitch";
                        }
                        | { content_type: string; id: string; type: "Spotify" }
                        | { type: "Soundcloud" }
                        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                        | { id: string; type: "Streamable" };
                    title?: null | string;
                    type: "Website";
                    url?: null | string;
                    video?: null | { height: number; url: string; width: number };
                }
                | {
                    height: number;
                    size: "Large"
                    | "Preview";
                    type: "Image";
                    url: string;
                    width: number;
                }
                | { height: number; type: "Video"; url: string; width: number }
                | {
                    colour?: null | string;
                    description?: null | string;
                    icon_url?: null | string;
                    media?:
                        | null
                        | {
                            _id: string;
                            content_type: string;
                            deleted?: null
                            | boolean;
                            filename: string;
                            message_id?: null | string;
                            metadata:
                                | { type: "File" }
                                | { type: "Text" }
                                | { height: number; type: "Image"; width: number }
                                | { height: number; type: "Video"; width: number }
                                | { type: "Audio" };
                            object_id?: null | string;
                            reported?: null | boolean;
                            server_id?: null | string;
                            size: number;
                            tag: string;
                            user_id?: null | string;
                        };
                    title?: null
                    | string;
                    type: "Text";
                    url?: null | string;
                }
                | { type: "None" }
            ) & { type: "Text" },
            "type",
        >

        Embed

        -

      Returns TextEmbed

    Properties

    client?: Client
    colour?: string
    description?: string
    iconUrl?: string
    media?: File
    title?: string
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url?: string

    Accessors

    Methods

    • Create an Embed from an API Embed

      +

    Returns TextEmbed

    Properties

    client?: Client
    colour?: string
    description?: string
    iconUrl?: string
    media?: File
    title?: string
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url?: string

    Accessors

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -45,4 +45,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/classes/TextSystemMessage.html b/classes/TextSystemMessage.html index 3e0f9c6c..1e71a79c 100644 --- a/classes/TextSystemMessage.html +++ b/classes/TextSystemMessage.html @@ -1,5 +1,5 @@ TextSystemMessage | revolt.js

    Class TextSystemMessage

    Text System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? content type @@ -7,7 +7,7 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & { type: "text" }

        System Message

        -

      Returns TextSystemMessage

    Properties

    client?: Client
    content: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Methods

    • Create an System Message from an API System Message

      +

    Returns TextSystemMessage

    Properties

    client?: Client
    content: string
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/UnknownEmbed.html b/classes/UnknownEmbed.html index 4079ce32..51bc0cd1 100644 --- a/classes/UnknownEmbed.html +++ b/classes/UnknownEmbed.html @@ -1,12 +1,12 @@ UnknownEmbed | revolt.js

    Class UnknownEmbed

    Embed of unknown type

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Text" | "Video" | "Image" | "Website" | "None"

    Methods

    • Create an Embed from an API Embed

      +

    Returns UnknownEmbed

    Properties

    client?: Client
    type: "Text" | "Video" | "Image" | "Website" | "None"

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -37,4 +37,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/classes/UnknownInvite.html b/classes/UnknownInvite.html index 57fe9eae..5a576f90 100644 --- a/classes/UnknownInvite.html +++ b/classes/UnknownInvite.html @@ -1,12 +1,12 @@ UnknownInvite | revolt.js

    Class UnknownInvite

    Invite of unknown type

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite

      +

    Returns UnknownInvite

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite

      Parameters

      • client: Client

        Client

      • invite:
            | {
                _id: string;
                channel: string;
                creator: string;
                server: string;
                type: "Server";
            }
            | { _id: string; channel: string; creator: string; type: "Group" }

        Data

        • {
              _id: string;
              channel: string;
              creator: string;
              server: string;
              type: "Server";
          }
          • _id: string

            Invite code

            @@ -17,4 +17,4 @@
          • channel: string

            Id of the group channel this invite points to

          • creator: string

            Id of user who created this invite

          • type: "Group"

      Returns ChannelInvite

      Invite

      -
    +
    diff --git a/classes/UnknownPublicInvite.html b/classes/UnknownPublicInvite.html index bf9f6299..69bdd82a 100644 --- a/classes/UnknownPublicInvite.html +++ b/classes/UnknownPublicInvite.html @@ -1,12 +1,12 @@ UnknownPublicInvite | revolt.js

    Class UnknownPublicInvite

    Public invite of unknown type

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite Response

      +

    Returns UnknownPublicInvite

    Properties

    client?: Client
    type: "Group" | "Server" | "None"

    Methods

    • Create an Invite from an API Invite Response

      Parameters

      • client: Client

        Client

      • invite:
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                member_count: number;
                server_banner?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_flags?: null
                | number;
                server_icon?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                server_id: string;
                server_name: string;
                type: "Server";
                user_avatar?: | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                };
                user_name: string;
            }
            | {
                channel_description?: null
                | string;
                channel_id: string;
                channel_name: string;
                code: string;
                type: "Group";
                user_avatar?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                user_name: string;
            }

        Data

        • {
              channel_description?: null | string;
              channel_id: string;
              channel_name: string;
              code: string;
              member_count: number;
              server_banner?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_flags?: null
              | number;
              server_icon?:
                  | null
                  | {
                      _id: string;
                      content_type: string;
                      deleted?: null
                      | boolean;
                      filename: string;
                      message_id?: null | string;
                      metadata:
                          | { type: "File" }
                          | { type: "Text" }
                          | { height: number; type: "Image"; width: number }
                          | { height: number; type: "Video"; width: number }
                          | { type: "Audio" };
                      object_id?: null | string;
                      reported?: null | boolean;
                      server_id?: null | string;
                      size: number;
                      tag: string;
                      user_id?: null | string;
                  };
              server_id: string;
              server_name: string;
              type: "Server";
              user_avatar?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              };
              user_name: string;
          }
          • Optionalchannel_description?: null | string

            Description of server channel

            @@ -30,4 +30,4 @@
          • type: "Group"
          • Optionaluser_avatar?:
                | null
                | {
                    _id: string;
                    content_type: string;
                    deleted?: null
                    | boolean;
                    filename: string;
                    message_id?: null | string;
                    metadata:
                        | { type: "File" }
                        | { type: "Text" }
                        | { height: number; type: "Image"; width: number }
                        | { height: number; type: "Video"; width: number }
                        | { type: "Audio" };
                    object_id?: null | string;
                    reported?: null | boolean;
                    server_id?: null | string;
                    size: number;
                    tag: string;
                    user_id?: null | string;
                }

            Avatar of the user who created the invite

          • user_name: string

            Name of user who created the invite

      Returns PublicChannelInvite

      Invite

      -
    +
    diff --git a/classes/User.html b/classes/User.html index f986e83a..6b31181a 100644 --- a/classes/User.html +++ b/classes/User.html @@ -1,5 +1,5 @@ User | revolt.js

    Class User

    User Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    $exists animatedAvatarURL @@ -34,31 +34,31 @@

    Constructors

    Properties

    id: string

    Accessors

    • get bot(): undefined | { owner: string }

      Bot information

      -

      Returns undefined | { owner: string }

    • get presence(): "Online" | "Idle" | "Focus" | "Busy" | "Invisible"

      Presence

      -

      Returns "Online" | "Idle" | "Focus" | "Busy" | "Invisible"

    • get status(): | undefined
      | {
          presence?: null
          | "Online"
          | "Idle"
          | "Focus"
          | "Busy"
          | "Invisible";
          text?: null | string;
      }

      User Status

      -

      Returns
          | undefined
          | {
              presence?: null
              | "Online"
              | "Idle"
              | "Focus"
              | "Busy"
              | "Invisible";
              text?: null | string;
          }

    Methods

    • Change the username of the current user

      +

    Returns User

    Properties

    id: string

    Accessors

    • get bot(): undefined | { owner: string }

      Bot information

      +

      Returns undefined | { owner: string }

    • get presence(): "Online" | "Idle" | "Focus" | "Busy" | "Invisible"

      Presence

      +

      Returns "Online" | "Idle" | "Focus" | "Busy" | "Invisible"

    • get status(): | undefined
      | {
          presence?: null
          | "Online"
          | "Idle"
          | "Focus"
          | "Busy"
          | "Invisible";
          text?: null | string;
      }

      User Status

      +

      Returns
          | undefined
          | {
              presence?: null
              | "Online"
              | "Idle"
              | "Focus"
              | "Busy"
              | "Invisible";
              text?: null | string;
          }

    Methods

    • Change the username of the current user

      Parameters

      • username: string

        New username

      • password: string

        Current password

        -

      Returns Promise<
          {
              _id: string;
              avatar?: | null
              | {
                  _id: string;
                  content_type: string;
                  deleted?: null
                  | boolean;
                  filename: string;
                  message_id?: null | string;
                  metadata:
                      | { type: "File" }
                      | { type: "Text" }
                      | { height: number; type: "Image"; width: number }
                      | { height: number; type: "Video"; width: number }
                      | { type: "Audio" };
                  object_id?: null | string;
                  reported?: null | boolean;
                  server_id?: null | string;
                  size: number;
                  tag: string;
                  user_id?: null | string;
              };
              badges?: number;
              bot?: null
              | { owner: string };
              discriminator: string;
              display_name?: null | string;
              flags?: number;
              online: boolean;
              privileged?: boolean;
              relations?: {
                  _id: string;
                  status:
                      | "User"
                      | "None"
                      | "Friend"
                      | "Outgoing"
                      | "Incoming"
                      | "Blocked"
                      | "BlockedOther";
              }[];
              relationship: | "User"
              | "None"
              | "Friend"
              | "Outgoing"
              | "Incoming"
              | "Blocked"
              | "BlockedOther";
              status?: | null
              | {
                  presence?: null
                  | "Online"
                  | "Idle"
                  | "Focus"
                  | "Busy"
                  | "Invisible";
                  text?: null | string;
              };
              username: string;
          },
      >

    • Edit the user

      +

    Returns Promise<
        {
            _id: string;
            avatar?: | null
            | {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            };
            badges?: number;
            bot?: null
            | { owner: string };
            discriminator: string;
            display_name?: null | string;
            flags?: number;
            online: boolean;
            privileged?: boolean;
            relations?: {
                _id: string;
                status:
                    | "User"
                    | "None"
                    | "Friend"
                    | "Outgoing"
                    | "Incoming"
                    | "Blocked"
                    | "BlockedOther";
            }[];
            relationship: | "User"
            | "None"
            | "Friend"
            | "Outgoing"
            | "Incoming"
            | "Blocked"
            | "BlockedOther";
            status?: | null
            | {
                presence?: null
                | "Online"
                | "Idle"
                | "Focus"
                | "Busy"
                | "Invisible";
                text?: null | string;
            };
            username: string;
        },
    >

    Returns Promise<void>

    Returns Promise<void>

    +
    diff --git a/classes/UserCollection.html b/classes/UserCollection.html index df170205..f7604ae5 100644 --- a/classes/UserCollection.html +++ b/classes/UserCollection.html @@ -1,5 +1,5 @@ UserCollection | revolt.js

    Class UserCollection

    Collection of Users

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedUser
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedUser>>

    Methods

    • Create a new instance of an object

      +

      Parameters

      Returns UserCollection

    Properties

    client: Client
    getUnderlyingObject: (id: string) => HydratedUser
    updateUnderlyingObject: SetStoreFunction<Record<string, HydratedUser>>

    Methods

    • Create a new instance of an object

      Parameters

      • id: string

        Id

      • type:
            | "user"
            | "server"
            | "channel"
            | "bot"
            | "channelUnread"
            | "channelWebhook"
            | "emoji"
            | "message"
            | "serverMember"
            | "session"

        Type

      • instance: User

        Instance

      • context: unknown

        Context

      • Optionaldata: unknown

        Data

        -

      Returns void

    • Delete an object

      +

    Returns void

    • Iterable of key, value pairs in the map

      +

    Returns void

    Returns User[]

    Returns undefined | User

    Returns User

    Returns undefined | User

    Returns O[]

    +
    diff --git a/classes/UserModeratedSystemMessage.html b/classes/UserModeratedSystemMessage.html index 208cf245..239b42e2 100644 --- a/classes/UserModeratedSystemMessage.html +++ b/classes/UserModeratedSystemMessage.html @@ -1,5 +1,5 @@ UserModeratedSystemMessage | revolt.js

    Class UserModeratedSystemMessage

    User Moderated System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    byId client? type @@ -10,9 +10,9 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & { type: "user_added" | "user_remove" }

        System Message

        -

      Returns UserModeratedSystemMessage

    Properties

    byId: string
    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"
    userId: string

    Accessors

    Methods

    • Create an System Message from an API System Message

      +

    Returns UserModeratedSystemMessage

    Properties

    byId: string
    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"
    userId: string

    Accessors

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/UserProfile.html b/classes/UserProfile.html index 948a1628..82bc1418 100644 --- a/classes/UserProfile.html +++ b/classes/UserProfile.html @@ -1,5 +1,5 @@ UserProfile | revolt.js

    Class UserProfile

    User Profile Class

    -

    Constructors

    Constructors

    Properties

    Accessors

    animatedBannerURL @@ -9,6 +9,6 @@
  • data: {
        background?:
            | null
            | {
                _id: string;
                content_type: string;
                deleted?: null
                | boolean;
                filename: string;
                message_id?: null | string;
                metadata:
                    | { type: "File" }
                    | { type: "Text" }
                    | { height: number; type: "Image"; width: number }
                    | { height: number; type: "Video"; width: number }
                    | { type: "Audio" };
                object_id?: null | string;
                reported?: null | boolean;
                server_id?: null | string;
                size: number;
                tag: string;
                user_id?: null | string;
            };
        content?: null
        | string;
    }

    Data

    • Optionalbackground?:
          | null
          | {
              _id: string;
              content_type: string;
              deleted?: null
              | boolean;
              filename: string;
              message_id?: null | string;
              metadata:
                  | { type: "File" }
                  | { type: "Text" }
                  | { height: number; type: "Image"; width: number }
                  | { height: number; type: "Video"; width: number }
                  | { type: "Audio" };
              object_id?: null | string;
              reported?: null | boolean;
              server_id?: null | string;
              size: number;
              tag: string;
              user_id?: null | string;
          }

      Background visible on user's profile

    • Optionalcontent?: null | string

      Text content on user's profile

      -
  • Returns UserProfile

    Properties

    banner?: File
    content?: string

    Accessors

    +

    Returns UserProfile

    Properties

    banner?: File
    content?: string

    Accessors

    diff --git a/classes/UserSystemMessage.html b/classes/UserSystemMessage.html index 606abc86..35b5767e 100644 --- a/classes/UserSystemMessage.html +++ b/classes/UserSystemMessage.html @@ -1,5 +1,5 @@ UserSystemMessage | revolt.js

    Class UserSystemMessage

    User System Message

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? type userId @@ -8,8 +8,8 @@

    Constructors

    • Construct System Message

      Parameters

      • client: Client

        Client

      • systemMessage: (
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }
        ) & {
            type:
                | "user_added"
                | "user_remove"
                | "user_joined"
                | "user_left"
                | "user_kicked"
                | "user_banned";
        }

        System Message

        -

      Returns UserSystemMessage

    Properties

    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"
    userId: string

    Accessors

    Methods

    • Create an System Message from an API System Message

      +

    Returns UserSystemMessage

    Properties

    client?: Client
    type:
        | "text"
        | "user_added"
        | "user_remove"
        | "user_joined"
        | "user_left"
        | "user_kicked"
        | "user_banned"
        | "channel_renamed"
        | "channel_description_changed"
        | "channel_icon_changed"
        | "channel_ownership_changed"
        | "message_pinned"
        | "message_unpinned"
    userId: string

    Accessors

    Methods

    • Create an System Message from an API System Message

      Parameters

      • client: Client

        Client

      • message:
            | { content: string; type: "text" }
            | { by: string; id: string; type: "user_added" }
            | { by: string; id: string; type: "user_remove" }
            | { id: string; type: "user_joined" }
            | { id: string; type: "user_left" }
            | { id: string; type: "user_kicked" }
            | { id: string; type: "user_banned" }
            | { by: string; name: string; type: "channel_renamed" }
            | { by: string; type: "channel_description_changed" }
            | { by: string; type: "channel_icon_changed" }
            | { from: string; to: string; type: "channel_ownership_changed" }
            | { by: string; id: string; type: "message_pinned" }
            | { by: string; id: string; type: "message_unpinned" }

      Returns SystemMessage

      System Message

      -
    +
    diff --git a/classes/VideoEmbed.html b/classes/VideoEmbed.html index da3a78e2..9e92d657 100644 --- a/classes/VideoEmbed.html +++ b/classes/VideoEmbed.html @@ -1,5 +1,5 @@ VideoEmbed | revolt.js

    Class VideoEmbed

    Video Embed

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? height type @@ -10,8 +10,8 @@

    Constructors

    • Construct Video Embed

      Parameters

      • client: Client

        Client

      • embed: Omit<
            (
                | {
                    colour?: null
                    | string;
                    description?: null | string;
                    icon_url?: null | string;
                    image?:
                        | null
                        | {
                            height: number;
                            size: "Large"
                            | "Preview";
                            url: string;
                            width: number;
                        };
                    original_url?: null
                    | string;
                    site_name?: null | string;
                    special?:
                        | null
                        | { type: "None" }
                        | { type: "GIF" }
                        | { id: string; timestamp?: null | string; type: "YouTube" }
                        | { content_type: "Channel"; id: string; type: "Lightspeed" }
                        | {
                            content_type: "Video" | "Channel" | "Clip";
                            id: string;
                            type: "Twitch";
                        }
                        | { content_type: string; id: string; type: "Spotify" }
                        | { type: "Soundcloud" }
                        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                        | { id: string; type: "Streamable" };
                    title?: null | string;
                    type: "Website";
                    url?: null | string;
                    video?: null | { height: number; url: string; width: number };
                }
                | {
                    height: number;
                    size: "Large"
                    | "Preview";
                    type: "Image";
                    url: string;
                    width: number;
                }
                | { height: number; type: "Video"; url: string; width: number }
                | {
                    colour?: null | string;
                    description?: null | string;
                    icon_url?: null | string;
                    media?:
                        | null
                        | {
                            _id: string;
                            content_type: string;
                            deleted?: null
                            | boolean;
                            filename: string;
                            message_id?: null | string;
                            metadata:
                                | { type: "File" }
                                | { type: "Text" }
                                | { height: number; type: "Image"; width: number }
                                | { height: number; type: "Video"; width: number }
                                | { type: "Audio" };
                            object_id?: null | string;
                            reported?: null | boolean;
                            server_id?: null | string;
                            size: number;
                            tag: string;
                            user_id?: null | string;
                        };
                    title?: null
                    | string;
                    type: "Text";
                    url?: null | string;
                }
                | { type: "None" }
            ) & { type: "Video" },
            "type",
        >

        Embed

        -

      Returns VideoEmbed

    Properties

    client?: Client
    height: number
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url: string
    width: number

    Accessors

    Methods

    • Create an Embed from an API Embed

      +

    Returns VideoEmbed

    Properties

    client?: Client
    height: number
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url: string
    width: number

    Accessors

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -42,4 +42,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/classes/WebsiteEmbed.html b/classes/WebsiteEmbed.html index a26a8c23..8bb73a88 100644 --- a/classes/WebsiteEmbed.html +++ b/classes/WebsiteEmbed.html @@ -1,5 +1,5 @@ WebsiteEmbed | revolt.js

    Class WebsiteEmbed

    Website Embed

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    client? colour? description? @@ -18,9 +18,9 @@

    Constructors

    • Construct Video Embed

      Parameters

      • client: Client

        Client

      • embed: Omit<
            (
                | {
                    colour?: null
                    | string;
                    description?: null | string;
                    icon_url?: null | string;
                    image?:
                        | null
                        | {
                            height: number;
                            size: "Large"
                            | "Preview";
                            url: string;
                            width: number;
                        };
                    original_url?: null
                    | string;
                    site_name?: null | string;
                    special?:
                        | null
                        | { type: "None" }
                        | { type: "GIF" }
                        | { id: string; timestamp?: null | string; type: "YouTube" }
                        | { content_type: "Channel"; id: string; type: "Lightspeed" }
                        | {
                            content_type: "Video" | "Channel" | "Clip";
                            id: string;
                            type: "Twitch";
                        }
                        | { content_type: string; id: string; type: "Spotify" }
                        | { type: "Soundcloud" }
                        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                        | { id: string; type: "Streamable" };
                    title?: null | string;
                    type: "Website";
                    url?: null | string;
                    video?: null | { height: number; url: string; width: number };
                }
                | {
                    height: number;
                    size: "Large"
                    | "Preview";
                    type: "Image";
                    url: string;
                    width: number;
                }
                | { height: number; type: "Video"; url: string; width: number }
                | {
                    colour?: null | string;
                    description?: null | string;
                    icon_url?: null | string;
                    media?:
                        | null
                        | {
                            _id: string;
                            content_type: string;
                            deleted?: null
                            | boolean;
                            filename: string;
                            message_id?: null | string;
                            metadata:
                                | { type: "File" }
                                | { type: "Text" }
                                | { height: number; type: "Image"; width: number }
                                | { height: number; type: "Video"; width: number }
                                | { type: "Audio" };
                            object_id?: null | string;
                            reported?: null | boolean;
                            server_id?: null | string;
                            size: number;
                            tag: string;
                            user_id?: null | string;
                        };
                    title?: null
                    | string;
                    type: "Text";
                    url?: null | string;
                }
                | { type: "None" }
            ) & { type: "Website" },
            "type",
        >

        Embed

        -

      Returns WebsiteEmbed

    Properties

    client?: Client
    colour?: string
    description?: string
    iconUrl?: string
    image?: ImageEmbed
    originalUrl?: string
    siteName?: string
    specialContent?:
        | { type: "None" }
        | { type: "GIF" }
        | { id: string; timestamp?: null | string; type: "YouTube" }
        | { content_type: "Channel"; id: string; type: "Lightspeed" }
        | {
            content_type: "Video" | "Channel" | "Clip";
            id: string;
            type: "Twitch";
        }
        | { content_type: string; id: string; type: "Spotify" }
        | { type: "Soundcloud" }
        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
        | { id: string; type: "Streamable" }
    title?: string
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url?: string
    video?: VideoEmbed

    Accessors

    • get embedURL(): undefined | string

      If special content is present, generate the embed URL

      -

      Returns undefined | string

    Methods

    • Create an Embed from an API Embed

      +

    Returns WebsiteEmbed

    Properties

    client?: Client
    colour?: string
    description?: string
    iconUrl?: string
    image?: ImageEmbed
    originalUrl?: string
    siteName?: string
    specialContent?:
        | { type: "None" }
        | { type: "GIF" }
        | { id: string; timestamp?: null | string; type: "YouTube" }
        | { content_type: "Channel"; id: string; type: "Lightspeed" }
        | {
            content_type: "Video" | "Channel" | "Clip";
            id: string;
            type: "Twitch";
        }
        | { content_type: string; id: string; type: "Spotify" }
        | { type: "Soundcloud" }
        | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
        | { album_id: string; track_id?: null | string; type: "AppleMusic" }
        | { id: string; type: "Streamable" }
    title?: string
    type: "Text" | "Video" | "Image" | "Website" | "None"
    url?: string
    video?: VideoEmbed

    Accessors

    • get embedURL(): undefined | string

      If special content is present, generate the embed URL

      +

      Returns undefined | string

    Methods

    • Create an Embed from an API Embed

      Parameters

      • client: Client

        Client

      • embed:
            | {
                colour?: null
                | string;
                description?: null | string;
                icon_url?: null | string;
                image?:
                    | null
                    | {
                        height: number;
                        size: "Large"
                        | "Preview";
                        url: string;
                        width: number;
                    };
                original_url?: null
                | string;
                site_name?: null | string;
                special?:
                    | null
                    | { type: "None" }
                    | { type: "GIF" }
                    | { id: string; timestamp?: null | string; type: "YouTube" }
                    | { content_type: "Channel"; id: string; type: "Lightspeed" }
                    | {
                        content_type: "Video" | "Channel" | "Clip";
                        id: string;
                        type: "Twitch";
                    }
                    | { content_type: string; id: string; type: "Spotify" }
                    | { type: "Soundcloud" }
                    | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                    | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                    | { id: string; type: "Streamable" };
                title?: null | string;
                type: "Website";
                url?: null | string;
                video?: null | { height: number; url: string; width: number };
            }
            | {
                height: number;
                size: "Large"
                | "Preview";
                type: "Image";
                url: string;
                width: number;
            }
            | { height: number; type: "Video"; url: string; width: number }
            | {
                colour?: null | string;
                description?: null | string;
                icon_url?: null | string;
                media?:
                    | null
                    | {
                        _id: string;
                        content_type: string;
                        deleted?: null
                        | boolean;
                        filename: string;
                        message_id?: null | string;
                        metadata:
                            | { type: "File" }
                            | { type: "Text" }
                            | { height: number; type: "Image"; width: number }
                            | { height: number; type: "Video"; width: number }
                            | { type: "Audio" };
                        object_id?: null | string;
                        reported?: null | boolean;
                        server_id?: null | string;
                        size: number;
                        tag: string;
                        user_id?: null | string;
                    };
                title?: null
                | string;
                type: "Text";
                url?: null | string;
            }
            | { type: "None" }

        Data

        • {
              colour?: null | string;
              description?: null | string;
              icon_url?: null | string;
              image?:
                  | null
                  | {
                      height: number;
                      size: "Large"
                      | "Preview";
                      url: string;
                      width: number;
                  };
              original_url?: null
              | string;
              site_name?: null | string;
              special?:
                  | null
                  | { type: "None" }
                  | { type: "GIF" }
                  | { id: string; timestamp?: null | string; type: "YouTube" }
                  | { content_type: "Channel"; id: string; type: "Lightspeed" }
                  | {
                      content_type: "Video" | "Channel" | "Clip";
                      id: string;
                      type: "Twitch";
                  }
                  | { content_type: string; id: string; type: "Spotify" }
                  | { type: "Soundcloud" }
                  | { content_type: "Album" | "Track"; id: string; type: "Bandcamp" }
                  | { album_id: string; track_id?: null | string; type: "AppleMusic" }
                  | { id: string; type: "Streamable" };
              title?: null | string;
              type: "Website";
              url?: null | string;
              video?: null | { height: number; url: string; width: number };
          }
          • Optionalcolour?: null | string

            CSS Colour

            @@ -51,4 +51,4 @@
          • Optionaltitle?: null | string

            Title of text embed

          • type: "Text"
          • Optionalurl?: null | string

            URL for title

        • { type: "None" }

      Returns MessageEmbed

      Embed

      -
    +
    diff --git a/enums/BotFlags.html b/enums/BotFlags.html index 096b4763..5e6406c9 100644 --- a/enums/BotFlags.html +++ b/enums/BotFlags.html @@ -1,2 +1,2 @@ BotFlags | revolt.js

    Enumeration BotFlags

    Flags attributed to users

    -
    +
    diff --git a/enums/ConnectionState.html b/enums/ConnectionState.html index caa72735..c1799d3c 100644 --- a/enums/ConnectionState.html +++ b/enums/ConnectionState.html @@ -1,6 +1,6 @@ ConnectionState | revolt.js

    Enumeration ConnectionState

    All possible event client states.

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Connected: 2
    Connecting: 1
    Disconnected: 3
    Idle: 0
    +

    Enumeration Members

    Connected: 2
    Connecting: 1
    Disconnected: 3
    Idle: 0
    diff --git a/enums/ServerFlags.html b/enums/ServerFlags.html index 5c283df5..307440eb 100644 --- a/enums/ServerFlags.html +++ b/enums/ServerFlags.html @@ -1,4 +1,4 @@ ServerFlags | revolt.js

    Enumeration ServerFlags

    Flags attributed to servers

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Official: 1
    Verified: 2
    +

    Enumeration Members

    Official: 1
    Verified: 2
    diff --git a/enums/UserBadges.html b/enums/UserBadges.html index 4e718f72..7a100b09 100644 --- a/enums/UserBadges.html +++ b/enums/UserBadges.html @@ -1,5 +1,5 @@ UserBadges | revolt.js

    Enumeration UserBadges

    Badges available to users

    -

    Enumeration Members

    Enumeration Members

    ActiveSupporter: 64
    Developer: 1
    EarlyAdopter: 256
    Founder: 16
    Paw: 128
    PlatformModeration: 32
    ReservedRelevantJokeBadge1: 512
    ReservedRelevantJokeBadge2: 1024
    ResponsibleDisclosure: 8
    Supporter: 4
    Translator: 2
    +

    Enumeration Members

    ActiveSupporter: 64
    Developer: 1
    EarlyAdopter: 256
    Founder: 16
    Paw: 128
    PlatformModeration: 32
    ReservedRelevantJokeBadge1: 512
    ReservedRelevantJokeBadge2: 1024
    ResponsibleDisclosure: 8
    Supporter: 4
    Translator: 2
    diff --git a/enums/UserFlags.html b/enums/UserFlags.html index d8d6f828..cf55df87 100644 --- a/enums/UserFlags.html +++ b/enums/UserFlags.html @@ -1,5 +1,5 @@ UserFlags | revolt.js

    Enumeration UserFlags

    Flags attributed to users

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Banned: 4
    Deleted: 2
    Suspended: 1
    +

    Enumeration Members

    Banned: 4
    Deleted: 2
    Suspended: 1
    diff --git a/functions/API.getPathName.html b/functions/API.getPathName.html index 84c0a281..1421b8e5 100644 --- a/functions/API.getPathName.html +++ b/functions/API.getPathName.html @@ -1,4 +1,4 @@ getPathName | revolt.js

    Function getPathName

    • Get the specific path name of any given path.

      Parameters

      • anyPath: string

        Any path

      Returns undefined | string

      Specific path

      -
    +
    diff --git a/interfaces/API.Options.html b/interfaces/API.Options.html index 1174ab1b..f3840262 100644 --- a/interfaces/API.Options.html +++ b/interfaces/API.Options.html @@ -1,8 +1,8 @@ Options | revolt.js

    Interface Options

    Client configuration options

    -
    interface Options {
        authentication: {
            headers?: Record<string, any>;
            rauth?: string;
            revolt?: string | { token: string };
        };
        baseURL: string;
        headers?: Record<string, any>;
    }

    Properties

    interface Options {
        authentication: {
            headers?: Record<string, any>;
            rauth?: string;
            revolt?: string | { token: string };
        };
        baseURL: string;
        headers?: Record<string, any>;
    }

    Properties

    authentication: {
        headers?: Record<string, any>;
        rauth?: string;
        revolt?: string | { token: string };
    }

    Authentication used for requests

    -
    baseURL: string

    Base URL of the Revolt node

    -
    headers?: Record<string, any>

    Additional headers to apply to requests

    -
    +
    baseURL: string

    Base URL of the Revolt node

    +
    headers?: Record<string, any>

    Additional headers to apply to requests

    +
    diff --git a/interfaces/API.RequestOptions.html b/interfaces/API.RequestOptions.html index ba1d6427..a2a7d0b3 100644 --- a/interfaces/API.RequestOptions.html +++ b/interfaces/API.RequestOptions.html @@ -1,8 +1,8 @@ RequestOptions | revolt.js

    Interface RequestOptions

    Request options

    -
    interface RequestOptions {
        baseURL?: string;
        headers?: Record<string, any>;
        responseType?: "text" | "json" | "blob" | "arrayBuffer";
    }

    Properties

    interface RequestOptions {
        baseURL?: string;
        headers?: Record<string, any>;
        responseType?: "text" | "json" | "blob" | "arrayBuffer";
    }

    Properties

    baseURL?: string

    The base URL used for this request

    -
    headers?: Record<string, any>

    Headers to apply for this request

    -
    responseType?: "text" | "json" | "blob" | "arrayBuffer"

    The type of response given

    -
    +
    headers?: Record<string, any>

    Headers to apply for this request

    +
    responseType?: "text" | "json" | "blob" | "arrayBuffer"

    The type of response given

    +
    diff --git a/types/API.AccountInfo.html b/types/API.AccountInfo.html index 2a0325fa..e0e2fb21 100644 --- a/types/API.AccountInfo.html +++ b/types/API.AccountInfo.html @@ -1 +1 @@ -AccountInfo | revolt.js

    Type Alias AccountInfo

    AccountInfo: components["schemas"]["AccountInfo"]
    +AccountInfo | revolt.js

    Type Alias AccountInfo

    AccountInfo: components["schemas"]["AccountInfo"]
    diff --git a/types/API.AllMemberResponse.html b/types/API.AllMemberResponse.html index a6d35f20..9799ffbc 100644 --- a/types/API.AllMemberResponse.html +++ b/types/API.AllMemberResponse.html @@ -1 +1 @@ -AllMemberResponse | revolt.js

    Type Alias AllMemberResponse

    AllMemberResponse: components["schemas"]["AllMemberResponse"]
    +AllMemberResponse | revolt.js

    Type Alias AllMemberResponse

    AllMemberResponse: components["schemas"]["AllMemberResponse"]
    diff --git a/types/API.Authifier_Error.html b/types/API.Authifier_Error.html index 09ebaa14..e9af9f48 100644 --- a/types/API.Authifier_Error.html +++ b/types/API.Authifier_Error.html @@ -1 +1 @@ -Authifier_Error | revolt.js

    Type Alias Authifier_Error

    Authifier_Error: components["schemas"]["Authifier Error"]
    +Authifier_Error | revolt.js

    Type Alias Authifier_Error

    Authifier_Error: components["schemas"]["Authifier Error"]
    diff --git a/types/API.BanListResult.html b/types/API.BanListResult.html index cb55e91a..851ce34b 100644 --- a/types/API.BanListResult.html +++ b/types/API.BanListResult.html @@ -1 +1 @@ -BanListResult | revolt.js

    Type Alias BanListResult

    BanListResult: components["schemas"]["BanListResult"]
    +BanListResult | revolt.js

    Type Alias BanListResult

    BanListResult: components["schemas"]["BanListResult"]
    diff --git a/types/API.BandcampType.html b/types/API.BandcampType.html index 6c4c2010..ffc69989 100644 --- a/types/API.BandcampType.html +++ b/types/API.BandcampType.html @@ -1 +1 @@ -BandcampType | revolt.js

    Type Alias BandcampType

    BandcampType: components["schemas"]["BandcampType"]
    +BandcampType | revolt.js

    Type Alias BandcampType

    BandcampType: components["schemas"]["BandcampType"]
    diff --git a/types/API.BannedUser.html b/types/API.BannedUser.html index e8b9e241..0271ad45 100644 --- a/types/API.BannedUser.html +++ b/types/API.BannedUser.html @@ -1 +1 @@ -BannedUser | revolt.js

    Type Alias BannedUser

    BannedUser: components["schemas"]["BannedUser"]
    +BannedUser | revolt.js

    Type Alias BannedUser

    BannedUser: components["schemas"]["BannedUser"]
    diff --git a/types/API.Bot.html b/types/API.Bot.html index 756efbdb..895ee677 100644 --- a/types/API.Bot.html +++ b/types/API.Bot.html @@ -1 +1 @@ -Bot | revolt.js

    Type Alias Bot

    Bot: components["schemas"]["Bot"]
    +Bot | revolt.js

    Type Alias Bot

    Bot: components["schemas"]["Bot"]
    diff --git a/types/API.BotInformation.html b/types/API.BotInformation.html index f81d0337..eb732cc4 100644 --- a/types/API.BotInformation.html +++ b/types/API.BotInformation.html @@ -1 +1 @@ -BotInformation | revolt.js

    Type Alias BotInformation

    BotInformation: components["schemas"]["BotInformation"]
    +BotInformation | revolt.js

    Type Alias BotInformation

    BotInformation: components["schemas"]["BotInformation"]
    diff --git a/types/API.BotWithUserResponse.html b/types/API.BotWithUserResponse.html index 96f9ccc6..33c3e326 100644 --- a/types/API.BotWithUserResponse.html +++ b/types/API.BotWithUserResponse.html @@ -1 +1 @@ -BotWithUserResponse | revolt.js

    Type Alias BotWithUserResponse

    BotWithUserResponse: components["schemas"]["BotWithUserResponse"]
    +BotWithUserResponse | revolt.js

    Type Alias BotWithUserResponse

    BotWithUserResponse: components["schemas"]["BotWithUserResponse"]
    diff --git a/types/API.BuildInformation.html b/types/API.BuildInformation.html index ffbbc214..5b1c2d18 100644 --- a/types/API.BuildInformation.html +++ b/types/API.BuildInformation.html @@ -1 +1 @@ -BuildInformation | revolt.js

    Type Alias BuildInformation

    BuildInformation: components["schemas"]["BuildInformation"]
    +BuildInformation | revolt.js

    Type Alias BuildInformation

    BuildInformation: components["schemas"]["BuildInformation"]
    diff --git a/types/API.BulkMessageResponse.html b/types/API.BulkMessageResponse.html index 5ced003d..0e7cf13a 100644 --- a/types/API.BulkMessageResponse.html +++ b/types/API.BulkMessageResponse.html @@ -1 +1 @@ -BulkMessageResponse | revolt.js

    Type Alias BulkMessageResponse

    BulkMessageResponse: components["schemas"]["BulkMessageResponse"]
    +BulkMessageResponse | revolt.js

    Type Alias BulkMessageResponse

    BulkMessageResponse: components["schemas"]["BulkMessageResponse"]
    diff --git a/types/API.CaptchaFeature.html b/types/API.CaptchaFeature.html index d041250d..ff874a69 100644 --- a/types/API.CaptchaFeature.html +++ b/types/API.CaptchaFeature.html @@ -1 +1 @@ -CaptchaFeature | revolt.js

    Type Alias CaptchaFeature

    CaptchaFeature: components["schemas"]["CaptchaFeature"]
    +CaptchaFeature | revolt.js

    Type Alias CaptchaFeature

    CaptchaFeature: components["schemas"]["CaptchaFeature"]
    diff --git a/types/API.Category.html b/types/API.Category.html index 336ebcd1..ec0f3752 100644 --- a/types/API.Category.html +++ b/types/API.Category.html @@ -1 +1 @@ -Category | revolt.js

    Type Alias Category

    Category: components["schemas"]["Category"]
    +Category | revolt.js

    Type Alias Category

    Category: components["schemas"]["Category"]
    diff --git a/types/API.Channel.html b/types/API.Channel.html index aea56e87..c74166bd 100644 --- a/types/API.Channel.html +++ b/types/API.Channel.html @@ -1 +1 @@ -Channel | revolt.js

    Type Alias Channel

    Channel: components["schemas"]["Channel"]
    +Channel | revolt.js

    Type Alias Channel

    Channel: components["schemas"]["Channel"]
    diff --git a/types/API.ChannelCompositeKey.html b/types/API.ChannelCompositeKey.html index ec671e37..44ab5753 100644 --- a/types/API.ChannelCompositeKey.html +++ b/types/API.ChannelCompositeKey.html @@ -1 +1 @@ -ChannelCompositeKey | revolt.js

    Type Alias ChannelCompositeKey

    ChannelCompositeKey: components["schemas"]["ChannelCompositeKey"]
    +ChannelCompositeKey | revolt.js

    Type Alias ChannelCompositeKey

    ChannelCompositeKey: components["schemas"]["ChannelCompositeKey"]
    diff --git a/types/API.ChannelUnread.html b/types/API.ChannelUnread.html index f0ba8ed6..e0efe210 100644 --- a/types/API.ChannelUnread.html +++ b/types/API.ChannelUnread.html @@ -1 +1 @@ -ChannelUnread | revolt.js

    Type Alias ChannelUnread

    ChannelUnread: components["schemas"]["ChannelUnread"]
    +ChannelUnread | revolt.js

    Type Alias ChannelUnread

    ChannelUnread: components["schemas"]["ChannelUnread"]
    diff --git a/types/API.ContentReportReason.html b/types/API.ContentReportReason.html index ceb8a61b..ef194c4e 100644 --- a/types/API.ContentReportReason.html +++ b/types/API.ContentReportReason.html @@ -1 +1 @@ -ContentReportReason | revolt.js

    Type Alias ContentReportReason

    ContentReportReason: components["schemas"]["ContentReportReason"]
    +ContentReportReason | revolt.js

    Type Alias ContentReportReason

    ContentReportReason: components["schemas"]["ContentReportReason"]
    diff --git a/types/API.CreateServerLegacyResponse.html b/types/API.CreateServerLegacyResponse.html index c166489b..5da08c21 100644 --- a/types/API.CreateServerLegacyResponse.html +++ b/types/API.CreateServerLegacyResponse.html @@ -1 +1 @@ -CreateServerLegacyResponse | revolt.js

    Type Alias CreateServerLegacyResponse

    CreateServerLegacyResponse: components["schemas"]["CreateServerLegacyResponse"]
    +CreateServerLegacyResponse | revolt.js

    Type Alias CreateServerLegacyResponse

    CreateServerLegacyResponse: components["schemas"]["CreateServerLegacyResponse"]
    diff --git a/types/API.CreateWebhookBody.html b/types/API.CreateWebhookBody.html index 13f35744..efc30cec 100644 --- a/types/API.CreateWebhookBody.html +++ b/types/API.CreateWebhookBody.html @@ -1 +1 @@ -CreateWebhookBody | revolt.js

    Type Alias CreateWebhookBody

    CreateWebhookBody: components["schemas"]["CreateWebhookBody"]
    +CreateWebhookBody | revolt.js

    Type Alias CreateWebhookBody

    CreateWebhookBody: components["schemas"]["CreateWebhookBody"]
    diff --git a/types/API.DataAccountDeletion.html b/types/API.DataAccountDeletion.html index c482c7c8..ab3b4e21 100644 --- a/types/API.DataAccountDeletion.html +++ b/types/API.DataAccountDeletion.html @@ -1 +1 @@ -DataAccountDeletion | revolt.js

    Type Alias DataAccountDeletion

    DataAccountDeletion: components["schemas"]["DataAccountDeletion"]
    +DataAccountDeletion | revolt.js

    Type Alias DataAccountDeletion

    DataAccountDeletion: components["schemas"]["DataAccountDeletion"]
    diff --git a/types/API.DataBanCreate.html b/types/API.DataBanCreate.html index 952109df..2ef96173 100644 --- a/types/API.DataBanCreate.html +++ b/types/API.DataBanCreate.html @@ -1 +1 @@ -DataBanCreate | revolt.js

    Type Alias DataBanCreate

    DataBanCreate: components["schemas"]["DataBanCreate"]
    +DataBanCreate | revolt.js

    Type Alias DataBanCreate

    DataBanCreate: components["schemas"]["DataBanCreate"]
    diff --git a/types/API.DataChangeEmail.html b/types/API.DataChangeEmail.html index 3a4dfa98..0b999b6a 100644 --- a/types/API.DataChangeEmail.html +++ b/types/API.DataChangeEmail.html @@ -1 +1 @@ -DataChangeEmail | revolt.js

    Type Alias DataChangeEmail

    DataChangeEmail: components["schemas"]["DataChangeEmail"]
    +DataChangeEmail | revolt.js

    Type Alias DataChangeEmail

    DataChangeEmail: components["schemas"]["DataChangeEmail"]
    diff --git a/types/API.DataChangePassword.html b/types/API.DataChangePassword.html index 7db0b1ff..2a63ad53 100644 --- a/types/API.DataChangePassword.html +++ b/types/API.DataChangePassword.html @@ -1 +1 @@ -DataChangePassword | revolt.js

    Type Alias DataChangePassword

    DataChangePassword: components["schemas"]["DataChangePassword"]
    +DataChangePassword | revolt.js

    Type Alias DataChangePassword

    DataChangePassword: components["schemas"]["DataChangePassword"]
    diff --git a/types/API.DataChangeUsername.html b/types/API.DataChangeUsername.html index d325dd1a..4ce7ca0d 100644 --- a/types/API.DataChangeUsername.html +++ b/types/API.DataChangeUsername.html @@ -1 +1 @@ -DataChangeUsername | revolt.js

    Type Alias DataChangeUsername

    DataChangeUsername: components["schemas"]["DataChangeUsername"]
    +DataChangeUsername | revolt.js

    Type Alias DataChangeUsername

    DataChangeUsername: components["schemas"]["DataChangeUsername"]
    diff --git a/types/API.DataCreateAccount.html b/types/API.DataCreateAccount.html index 19c28b4c..1a20b008 100644 --- a/types/API.DataCreateAccount.html +++ b/types/API.DataCreateAccount.html @@ -1 +1 @@ -DataCreateAccount | revolt.js

    Type Alias DataCreateAccount

    DataCreateAccount: components["schemas"]["DataCreateAccount"]
    +DataCreateAccount | revolt.js

    Type Alias DataCreateAccount

    DataCreateAccount: components["schemas"]["DataCreateAccount"]
    diff --git a/types/API.DataCreateBot.html b/types/API.DataCreateBot.html index 3a248e04..acfcdedd 100644 --- a/types/API.DataCreateBot.html +++ b/types/API.DataCreateBot.html @@ -1 +1 @@ -DataCreateBot | revolt.js

    Type Alias DataCreateBot

    DataCreateBot: components["schemas"]["DataCreateBot"]
    +DataCreateBot | revolt.js

    Type Alias DataCreateBot

    DataCreateBot: components["schemas"]["DataCreateBot"]
    diff --git a/types/API.DataCreateEmoji.html b/types/API.DataCreateEmoji.html index 6b874e23..e1ad7e5b 100644 --- a/types/API.DataCreateEmoji.html +++ b/types/API.DataCreateEmoji.html @@ -1 +1 @@ -DataCreateEmoji | revolt.js

    Type Alias DataCreateEmoji

    DataCreateEmoji: components["schemas"]["DataCreateEmoji"]
    +DataCreateEmoji | revolt.js

    Type Alias DataCreateEmoji

    DataCreateEmoji: components["schemas"]["DataCreateEmoji"]
    diff --git a/types/API.DataCreateGroup.html b/types/API.DataCreateGroup.html index 4d73c96a..8c462cfc 100644 --- a/types/API.DataCreateGroup.html +++ b/types/API.DataCreateGroup.html @@ -1 +1 @@ -DataCreateGroup | revolt.js

    Type Alias DataCreateGroup

    DataCreateGroup: components["schemas"]["DataCreateGroup"]
    +DataCreateGroup | revolt.js

    Type Alias DataCreateGroup

    DataCreateGroup: components["schemas"]["DataCreateGroup"]
    diff --git a/types/API.DataCreateRole.html b/types/API.DataCreateRole.html index 2bc9f916..1d82e5d6 100644 --- a/types/API.DataCreateRole.html +++ b/types/API.DataCreateRole.html @@ -1 +1 @@ -DataCreateRole | revolt.js

    Type Alias DataCreateRole

    DataCreateRole: components["schemas"]["DataCreateRole"]
    +DataCreateRole | revolt.js

    Type Alias DataCreateRole

    DataCreateRole: components["schemas"]["DataCreateRole"]
    diff --git a/types/API.DataCreateServer.html b/types/API.DataCreateServer.html index ac872c7a..75bf1fb0 100644 --- a/types/API.DataCreateServer.html +++ b/types/API.DataCreateServer.html @@ -1 +1 @@ -DataCreateServer | revolt.js

    Type Alias DataCreateServer

    DataCreateServer: components["schemas"]["DataCreateServer"]
    +DataCreateServer | revolt.js

    Type Alias DataCreateServer

    DataCreateServer: components["schemas"]["DataCreateServer"]
    diff --git a/types/API.DataCreateServerChannel.html b/types/API.DataCreateServerChannel.html index 39cde58d..408f7481 100644 --- a/types/API.DataCreateServerChannel.html +++ b/types/API.DataCreateServerChannel.html @@ -1 +1 @@ -DataCreateServerChannel | revolt.js

    Type Alias DataCreateServerChannel

    DataCreateServerChannel: components["schemas"]["DataCreateServerChannel"]
    +DataCreateServerChannel | revolt.js

    Type Alias DataCreateServerChannel

    DataCreateServerChannel: components["schemas"]["DataCreateServerChannel"]
    diff --git a/types/API.DataDefaultChannelPermissions.html b/types/API.DataDefaultChannelPermissions.html index 09376c6e..2a37001f 100644 --- a/types/API.DataDefaultChannelPermissions.html +++ b/types/API.DataDefaultChannelPermissions.html @@ -1 +1 @@ -DataDefaultChannelPermissions | revolt.js

    Type Alias DataDefaultChannelPermissions

    DataDefaultChannelPermissions: components["schemas"]["DataDefaultChannelPermissions"]
    +DataDefaultChannelPermissions | revolt.js

    Type Alias DataDefaultChannelPermissions

    DataDefaultChannelPermissions: components["schemas"]["DataDefaultChannelPermissions"]
    diff --git a/types/API.DataEditBot.html b/types/API.DataEditBot.html index b4c4581d..492f7e03 100644 --- a/types/API.DataEditBot.html +++ b/types/API.DataEditBot.html @@ -1 +1 @@ -DataEditBot | revolt.js

    Type Alias DataEditBot

    DataEditBot: components["schemas"]["DataEditBot"]
    +DataEditBot | revolt.js

    Type Alias DataEditBot

    DataEditBot: components["schemas"]["DataEditBot"]
    diff --git a/types/API.DataEditChannel.html b/types/API.DataEditChannel.html index 47a77e0b..cf4803dc 100644 --- a/types/API.DataEditChannel.html +++ b/types/API.DataEditChannel.html @@ -1 +1 @@ -DataEditChannel | revolt.js

    Type Alias DataEditChannel

    DataEditChannel: components["schemas"]["DataEditChannel"]
    +DataEditChannel | revolt.js

    Type Alias DataEditChannel

    DataEditChannel: components["schemas"]["DataEditChannel"]
    diff --git a/types/API.DataEditMessage.html b/types/API.DataEditMessage.html index b76d57c1..d8b28a5e 100644 --- a/types/API.DataEditMessage.html +++ b/types/API.DataEditMessage.html @@ -1 +1 @@ -DataEditMessage | revolt.js

    Type Alias DataEditMessage

    DataEditMessage: components["schemas"]["DataEditMessage"]
    +DataEditMessage | revolt.js

    Type Alias DataEditMessage

    DataEditMessage: components["schemas"]["DataEditMessage"]
    diff --git a/types/API.DataEditRole.html b/types/API.DataEditRole.html index 6958f0ce..d40f397a 100644 --- a/types/API.DataEditRole.html +++ b/types/API.DataEditRole.html @@ -1 +1 @@ -DataEditRole | revolt.js

    Type Alias DataEditRole

    DataEditRole: components["schemas"]["DataEditRole"]
    +DataEditRole | revolt.js

    Type Alias DataEditRole

    DataEditRole: components["schemas"]["DataEditRole"]
    diff --git a/types/API.DataEditServer.html b/types/API.DataEditServer.html index ae8a7867..d94e83d4 100644 --- a/types/API.DataEditServer.html +++ b/types/API.DataEditServer.html @@ -1 +1 @@ -DataEditServer | revolt.js

    Type Alias DataEditServer

    DataEditServer: components["schemas"]["DataEditServer"]
    +DataEditServer | revolt.js

    Type Alias DataEditServer

    DataEditServer: components["schemas"]["DataEditServer"]
    diff --git a/types/API.DataEditSession.html b/types/API.DataEditSession.html index a7d70959..7439acb5 100644 --- a/types/API.DataEditSession.html +++ b/types/API.DataEditSession.html @@ -1 +1 @@ -DataEditSession | revolt.js

    Type Alias DataEditSession

    DataEditSession: components["schemas"]["DataEditSession"]
    +DataEditSession | revolt.js

    Type Alias DataEditSession

    DataEditSession: components["schemas"]["DataEditSession"]
    diff --git a/types/API.DataEditUser.html b/types/API.DataEditUser.html index 4d77b0ec..5523c227 100644 --- a/types/API.DataEditUser.html +++ b/types/API.DataEditUser.html @@ -1 +1 @@ -DataEditUser | revolt.js

    Type Alias DataEditUser

    DataEditUser: components["schemas"]["DataEditUser"]
    +DataEditUser | revolt.js

    Type Alias DataEditUser

    DataEditUser: components["schemas"]["DataEditUser"]
    diff --git a/types/API.DataEditWebhook.html b/types/API.DataEditWebhook.html index 72021bdc..08e8bd52 100644 --- a/types/API.DataEditWebhook.html +++ b/types/API.DataEditWebhook.html @@ -1 +1 @@ -DataEditWebhook | revolt.js

    Type Alias DataEditWebhook

    DataEditWebhook: components["schemas"]["DataEditWebhook"]
    +DataEditWebhook | revolt.js

    Type Alias DataEditWebhook

    DataEditWebhook: components["schemas"]["DataEditWebhook"]
    diff --git a/types/API.DataHello.html b/types/API.DataHello.html index 997bf8a4..5776559b 100644 --- a/types/API.DataHello.html +++ b/types/API.DataHello.html @@ -1 +1 @@ -DataHello | revolt.js

    Type Alias DataHello

    DataHello: components["schemas"]["DataHello"]
    +DataHello | revolt.js

    Type Alias DataHello

    DataHello: components["schemas"]["DataHello"]
    diff --git a/types/API.DataLogin.html b/types/API.DataLogin.html index 690fc4cf..8a4889b6 100644 --- a/types/API.DataLogin.html +++ b/types/API.DataLogin.html @@ -1 +1 @@ -DataLogin | revolt.js

    Type Alias DataLogin

    DataLogin: components["schemas"]["DataLogin"]
    +DataLogin | revolt.js

    Type Alias DataLogin

    DataLogin: components["schemas"]["DataLogin"]
    diff --git a/types/API.DataMemberEdit.html b/types/API.DataMemberEdit.html index 06833999..d3a4612b 100644 --- a/types/API.DataMemberEdit.html +++ b/types/API.DataMemberEdit.html @@ -1 +1 @@ -DataMemberEdit | revolt.js

    Type Alias DataMemberEdit

    DataMemberEdit: components["schemas"]["DataMemberEdit"]
    +DataMemberEdit | revolt.js

    Type Alias DataMemberEdit

    DataMemberEdit: components["schemas"]["DataMemberEdit"]
    diff --git a/types/API.DataMessageSearch.html b/types/API.DataMessageSearch.html index b9aa6b8f..aa1a864a 100644 --- a/types/API.DataMessageSearch.html +++ b/types/API.DataMessageSearch.html @@ -1 +1 @@ -DataMessageSearch | revolt.js

    Type Alias DataMessageSearch

    DataMessageSearch: components["schemas"]["DataMessageSearch"]
    +DataMessageSearch | revolt.js

    Type Alias DataMessageSearch

    DataMessageSearch: components["schemas"]["DataMessageSearch"]
    diff --git a/types/API.DataMessageSend.html b/types/API.DataMessageSend.html index 45254edd..f59ace8f 100644 --- a/types/API.DataMessageSend.html +++ b/types/API.DataMessageSend.html @@ -1 +1 @@ -DataMessageSend | revolt.js

    Type Alias DataMessageSend

    DataMessageSend: components["schemas"]["DataMessageSend"]
    +DataMessageSend | revolt.js

    Type Alias DataMessageSend

    DataMessageSend: components["schemas"]["DataMessageSend"]
    diff --git a/types/API.DataOnboard.html b/types/API.DataOnboard.html index db00d7a0..135a602e 100644 --- a/types/API.DataOnboard.html +++ b/types/API.DataOnboard.html @@ -1 +1 @@ -DataOnboard | revolt.js

    Type Alias DataOnboard

    DataOnboard: components["schemas"]["DataOnboard"]
    +DataOnboard | revolt.js

    Type Alias DataOnboard

    DataOnboard: components["schemas"]["DataOnboard"]
    diff --git a/types/API.DataPasswordReset.html b/types/API.DataPasswordReset.html index eff90978..035978c5 100644 --- a/types/API.DataPasswordReset.html +++ b/types/API.DataPasswordReset.html @@ -1 +1 @@ -DataPasswordReset | revolt.js

    Type Alias DataPasswordReset

    DataPasswordReset: components["schemas"]["DataPasswordReset"]
    +DataPasswordReset | revolt.js

    Type Alias DataPasswordReset

    DataPasswordReset: components["schemas"]["DataPasswordReset"]
    diff --git a/types/API.DataPermissionsValue.html b/types/API.DataPermissionsValue.html index 52999789..42669a22 100644 --- a/types/API.DataPermissionsValue.html +++ b/types/API.DataPermissionsValue.html @@ -1 +1 @@ -DataPermissionsValue | revolt.js

    Type Alias DataPermissionsValue

    DataPermissionsValue: components["schemas"]["DataPermissionsValue"]
    +DataPermissionsValue | revolt.js

    Type Alias DataPermissionsValue

    DataPermissionsValue: components["schemas"]["DataPermissionsValue"]
    diff --git a/types/API.DataReportContent.html b/types/API.DataReportContent.html index 44b65d42..5dda5c78 100644 --- a/types/API.DataReportContent.html +++ b/types/API.DataReportContent.html @@ -1 +1 @@ -DataReportContent | revolt.js

    Type Alias DataReportContent

    DataReportContent: components["schemas"]["DataReportContent"]
    +DataReportContent | revolt.js

    Type Alias DataReportContent

    DataReportContent: components["schemas"]["DataReportContent"]
    diff --git a/types/API.DataResendVerification.html b/types/API.DataResendVerification.html index 273c472f..bdbcd769 100644 --- a/types/API.DataResendVerification.html +++ b/types/API.DataResendVerification.html @@ -1 +1 @@ -DataResendVerification | revolt.js

    Type Alias DataResendVerification

    DataResendVerification: components["schemas"]["DataResendVerification"]
    +DataResendVerification | revolt.js

    Type Alias DataResendVerification

    DataResendVerification: components["schemas"]["DataResendVerification"]
    diff --git a/types/API.DataSendFriendRequest.html b/types/API.DataSendFriendRequest.html index 56cb071a..dc41d006 100644 --- a/types/API.DataSendFriendRequest.html +++ b/types/API.DataSendFriendRequest.html @@ -1 +1 @@ -DataSendFriendRequest | revolt.js

    Type Alias DataSendFriendRequest

    DataSendFriendRequest: components["schemas"]["DataSendFriendRequest"]
    +DataSendFriendRequest | revolt.js

    Type Alias DataSendFriendRequest

    DataSendFriendRequest: components["schemas"]["DataSendFriendRequest"]
    diff --git a/types/API.DataSendPasswordReset.html b/types/API.DataSendPasswordReset.html index dc04c202..06cf4a46 100644 --- a/types/API.DataSendPasswordReset.html +++ b/types/API.DataSendPasswordReset.html @@ -1 +1 @@ -DataSendPasswordReset | revolt.js

    Type Alias DataSendPasswordReset

    DataSendPasswordReset: components["schemas"]["DataSendPasswordReset"]
    +DataSendPasswordReset | revolt.js

    Type Alias DataSendPasswordReset

    DataSendPasswordReset: components["schemas"]["DataSendPasswordReset"]
    diff --git a/types/API.DataSetRolePermissions.html b/types/API.DataSetRolePermissions.html index 714aa77f..d223541e 100644 --- a/types/API.DataSetRolePermissions.html +++ b/types/API.DataSetRolePermissions.html @@ -1 +1 @@ -DataSetRolePermissions | revolt.js

    Type Alias DataSetRolePermissions

    DataSetRolePermissions: components["schemas"]["DataSetRolePermissions"]
    +DataSetRolePermissions | revolt.js

    Type Alias DataSetRolePermissions

    DataSetRolePermissions: components["schemas"]["DataSetRolePermissions"]
    diff --git a/types/API.DataSetServerRolePermission.html b/types/API.DataSetServerRolePermission.html index 2a8a85d9..13f3bf41 100644 --- a/types/API.DataSetServerRolePermission.html +++ b/types/API.DataSetServerRolePermission.html @@ -1 +1 @@ -DataSetServerRolePermission | revolt.js

    Type Alias DataSetServerRolePermission

    DataSetServerRolePermission: components["schemas"]["DataSetServerRolePermission"]
    +DataSetServerRolePermission | revolt.js

    Type Alias DataSetServerRolePermission

    DataSetServerRolePermission: components["schemas"]["DataSetServerRolePermission"]
    diff --git a/types/API.DataUserProfile.html b/types/API.DataUserProfile.html index 7c993843..7f3e7a38 100644 --- a/types/API.DataUserProfile.html +++ b/types/API.DataUserProfile.html @@ -1 +1 @@ -DataUserProfile | revolt.js

    Type Alias DataUserProfile

    DataUserProfile: components["schemas"]["DataUserProfile"]
    +DataUserProfile | revolt.js

    Type Alias DataUserProfile

    DataUserProfile: components["schemas"]["DataUserProfile"]
    diff --git a/types/API.Embed.html b/types/API.Embed.html index df0d0e1f..2a73b334 100644 --- a/types/API.Embed.html +++ b/types/API.Embed.html @@ -1 +1 @@ -Embed | revolt.js

    Type Alias Embed

    Embed: components["schemas"]["Embed"]
    +Embed | revolt.js

    Type Alias Embed

    Embed: components["schemas"]["Embed"]
    diff --git a/types/API.Emoji.html b/types/API.Emoji.html index 58752eb7..6c324c70 100644 --- a/types/API.Emoji.html +++ b/types/API.Emoji.html @@ -1 +1 @@ -Emoji | revolt.js

    Type Alias Emoji

    Emoji: components["schemas"]["Emoji"]
    +Emoji | revolt.js

    Type Alias Emoji

    Emoji: components["schemas"]["Emoji"]
    diff --git a/types/API.EmojiParent.html b/types/API.EmojiParent.html index 1c186eaf..788f29ba 100644 --- a/types/API.EmojiParent.html +++ b/types/API.EmojiParent.html @@ -1 +1 @@ -EmojiParent | revolt.js

    Type Alias EmojiParent

    EmojiParent: components["schemas"]["EmojiParent"]
    +EmojiParent | revolt.js

    Type Alias EmojiParent

    EmojiParent: components["schemas"]["EmojiParent"]
    diff --git a/types/API.Error.html b/types/API.Error.html index 0a3a1aa3..8a67686f 100644 --- a/types/API.Error.html +++ b/types/API.Error.html @@ -1 +1 @@ -Error | revolt.js

    Type Alias Error

    Error: components["schemas"]["Error"]
    +Error | revolt.js

    Type Alias Error

    Error: components["schemas"]["Error"]
    diff --git a/types/API.Feature.html b/types/API.Feature.html index 9148a187..821a23ab 100644 --- a/types/API.Feature.html +++ b/types/API.Feature.html @@ -1 +1 @@ -Feature | revolt.js

    Type Alias Feature

    Feature: components["schemas"]["Feature"]
    +Feature | revolt.js

    Type Alias Feature

    Feature: components["schemas"]["Feature"]
    diff --git a/types/API.FetchBotResponse.html b/types/API.FetchBotResponse.html index fce61504..e8224e37 100644 --- a/types/API.FetchBotResponse.html +++ b/types/API.FetchBotResponse.html @@ -1 +1 @@ -FetchBotResponse | revolt.js

    Type Alias FetchBotResponse

    FetchBotResponse: components["schemas"]["FetchBotResponse"]
    +FetchBotResponse | revolt.js

    Type Alias FetchBotResponse

    FetchBotResponse: components["schemas"]["FetchBotResponse"]
    diff --git a/types/API.FetchServerResponse.html b/types/API.FetchServerResponse.html index 0b7ab78d..f3fb57b2 100644 --- a/types/API.FetchServerResponse.html +++ b/types/API.FetchServerResponse.html @@ -1 +1 @@ -FetchServerResponse | revolt.js

    Type Alias FetchServerResponse

    FetchServerResponse: components["schemas"]["FetchServerResponse"]
    +FetchServerResponse | revolt.js

    Type Alias FetchServerResponse

    FetchServerResponse: components["schemas"]["FetchServerResponse"]
    diff --git a/types/API.FieldsBot.html b/types/API.FieldsBot.html index 82912390..5ef724d5 100644 --- a/types/API.FieldsBot.html +++ b/types/API.FieldsBot.html @@ -1 +1 @@ -FieldsBot | revolt.js

    Type Alias FieldsBot

    FieldsBot: components["schemas"]["FieldsBot"]
    +FieldsBot | revolt.js

    Type Alias FieldsBot

    FieldsBot: components["schemas"]["FieldsBot"]
    diff --git a/types/API.FieldsChannel.html b/types/API.FieldsChannel.html index 32847b98..170d7012 100644 --- a/types/API.FieldsChannel.html +++ b/types/API.FieldsChannel.html @@ -1 +1 @@ -FieldsChannel | revolt.js

    Type Alias FieldsChannel

    FieldsChannel: components["schemas"]["FieldsChannel"]
    +FieldsChannel | revolt.js

    Type Alias FieldsChannel

    FieldsChannel: components["schemas"]["FieldsChannel"]
    diff --git a/types/API.FieldsMember.html b/types/API.FieldsMember.html index b8bb0bf3..ef0d57fa 100644 --- a/types/API.FieldsMember.html +++ b/types/API.FieldsMember.html @@ -1 +1 @@ -FieldsMember | revolt.js

    Type Alias FieldsMember

    FieldsMember: components["schemas"]["FieldsMember"]
    +FieldsMember | revolt.js

    Type Alias FieldsMember

    FieldsMember: components["schemas"]["FieldsMember"]
    diff --git a/types/API.FieldsRole.html b/types/API.FieldsRole.html index c6d64217..24b9d659 100644 --- a/types/API.FieldsRole.html +++ b/types/API.FieldsRole.html @@ -1 +1 @@ -FieldsRole | revolt.js

    Type Alias FieldsRole

    FieldsRole: components["schemas"]["FieldsRole"]
    +FieldsRole | revolt.js

    Type Alias FieldsRole

    FieldsRole: components["schemas"]["FieldsRole"]
    diff --git a/types/API.FieldsServer.html b/types/API.FieldsServer.html index d45b48b7..a1d361d3 100644 --- a/types/API.FieldsServer.html +++ b/types/API.FieldsServer.html @@ -1 +1 @@ -FieldsServer | revolt.js

    Type Alias FieldsServer

    FieldsServer: components["schemas"]["FieldsServer"]
    +FieldsServer | revolt.js

    Type Alias FieldsServer

    FieldsServer: components["schemas"]["FieldsServer"]
    diff --git a/types/API.FieldsUser.html b/types/API.FieldsUser.html index f0f8b214..b57e3ad8 100644 --- a/types/API.FieldsUser.html +++ b/types/API.FieldsUser.html @@ -1 +1 @@ -FieldsUser | revolt.js

    Type Alias FieldsUser

    FieldsUser: components["schemas"]["FieldsUser"]
    +FieldsUser | revolt.js

    Type Alias FieldsUser

    FieldsUser: components["schemas"]["FieldsUser"]
    diff --git a/types/API.FieldsWebhook.html b/types/API.FieldsWebhook.html index e5682a3b..23f45ac6 100644 --- a/types/API.FieldsWebhook.html +++ b/types/API.FieldsWebhook.html @@ -1 +1 @@ -FieldsWebhook | revolt.js

    Type Alias FieldsWebhook

    FieldsWebhook: components["schemas"]["FieldsWebhook"]
    +FieldsWebhook | revolt.js

    Type Alias FieldsWebhook

    FieldsWebhook: components["schemas"]["FieldsWebhook"]
    diff --git a/types/API.File.html b/types/API.File.html index 6ef3d29e..511c5ddf 100644 --- a/types/API.File.html +++ b/types/API.File.html @@ -1 +1 @@ -File | revolt.js

    Type Alias File

    File: components["schemas"]["File"]
    +File | revolt.js

    Type Alias File

    File: components["schemas"]["File"]
    diff --git a/types/API.FlagResponse.html b/types/API.FlagResponse.html index dc44c5e7..b29fd21e 100644 --- a/types/API.FlagResponse.html +++ b/types/API.FlagResponse.html @@ -1 +1 @@ -FlagResponse | revolt.js

    Type Alias FlagResponse

    FlagResponse: components["schemas"]["FlagResponse"]
    +FlagResponse | revolt.js

    Type Alias FlagResponse

    FlagResponse: components["schemas"]["FlagResponse"]
    diff --git a/types/API.ISO8601_Timestamp.html b/types/API.ISO8601_Timestamp.html index eb7f4cfb..eb130d88 100644 --- a/types/API.ISO8601_Timestamp.html +++ b/types/API.ISO8601_Timestamp.html @@ -1 +1 @@ -ISO8601_Timestamp | revolt.js

    Type Alias ISO8601_Timestamp

    ISO8601_Timestamp: components["schemas"]["ISO8601 Timestamp"]
    +ISO8601_Timestamp | revolt.js

    Type Alias ISO8601_Timestamp

    ISO8601_Timestamp: components["schemas"]["ISO8601 Timestamp"]
    diff --git a/types/API.Id.html b/types/API.Id.html index f61dda65..9c67ac81 100644 --- a/types/API.Id.html +++ b/types/API.Id.html @@ -1 +1 @@ -Id | revolt.js

    Type Alias Id

    Id: components["schemas"]["Id"]
    +Id | revolt.js

    Type Alias Id

    Id: components["schemas"]["Id"]
    diff --git a/types/API.Image.html b/types/API.Image.html index 0cf1b1ad..724271b1 100644 --- a/types/API.Image.html +++ b/types/API.Image.html @@ -1 +1 @@ -Image | revolt.js

    Type Alias Image

    Image: components["schemas"]["Image"]
    +Image | revolt.js

    Type Alias Image

    Image: components["schemas"]["Image"]
    diff --git a/types/API.ImageSize.html b/types/API.ImageSize.html index 4f1ed79f..c7d10946 100644 --- a/types/API.ImageSize.html +++ b/types/API.ImageSize.html @@ -1 +1 @@ -ImageSize | revolt.js

    Type Alias ImageSize

    ImageSize: components["schemas"]["ImageSize"]
    +ImageSize | revolt.js

    Type Alias ImageSize

    ImageSize: components["schemas"]["ImageSize"]
    diff --git a/types/API.Interactions.html b/types/API.Interactions.html index 48791380..fd13b0ca 100644 --- a/types/API.Interactions.html +++ b/types/API.Interactions.html @@ -1 +1 @@ -Interactions | revolt.js

    Type Alias Interactions

    Interactions: components["schemas"]["Interactions"]
    +Interactions | revolt.js

    Type Alias Interactions

    Interactions: components["schemas"]["Interactions"]
    diff --git a/types/API.Invite.html b/types/API.Invite.html index 6b6ffb54..58dbcb48 100644 --- a/types/API.Invite.html +++ b/types/API.Invite.html @@ -1 +1 @@ -Invite | revolt.js

    Type Alias Invite

    Invite: components["schemas"]["Invite"]
    +Invite | revolt.js

    Type Alias Invite

    Invite: components["schemas"]["Invite"]
    diff --git a/types/API.InviteBotDestination.html b/types/API.InviteBotDestination.html index c7b7a954..52209e32 100644 --- a/types/API.InviteBotDestination.html +++ b/types/API.InviteBotDestination.html @@ -1 +1 @@ -InviteBotDestination | revolt.js

    Type Alias InviteBotDestination

    InviteBotDestination: components["schemas"]["InviteBotDestination"]
    +InviteBotDestination | revolt.js

    Type Alias InviteBotDestination

    InviteBotDestination: components["schemas"]["InviteBotDestination"]
    diff --git a/types/API.InviteJoinResponse.html b/types/API.InviteJoinResponse.html index eb7f5023..a7116a57 100644 --- a/types/API.InviteJoinResponse.html +++ b/types/API.InviteJoinResponse.html @@ -1 +1 @@ -InviteJoinResponse | revolt.js

    Type Alias InviteJoinResponse

    InviteJoinResponse: components["schemas"]["InviteJoinResponse"]
    +InviteJoinResponse | revolt.js

    Type Alias InviteJoinResponse

    InviteJoinResponse: components["schemas"]["InviteJoinResponse"]
    diff --git a/types/API.InviteResponse.html b/types/API.InviteResponse.html index 572e08da..d65442b4 100644 --- a/types/API.InviteResponse.html +++ b/types/API.InviteResponse.html @@ -1 +1 @@ -InviteResponse | revolt.js

    Type Alias InviteResponse

    InviteResponse: components["schemas"]["InviteResponse"]
    +InviteResponse | revolt.js

    Type Alias InviteResponse

    InviteResponse: components["schemas"]["InviteResponse"]
    diff --git a/types/API.LegacyCreateVoiceUserResponse.html b/types/API.LegacyCreateVoiceUserResponse.html index f223d61e..7073b6d4 100644 --- a/types/API.LegacyCreateVoiceUserResponse.html +++ b/types/API.LegacyCreateVoiceUserResponse.html @@ -1 +1 @@ -LegacyCreateVoiceUserResponse | revolt.js

    Type Alias LegacyCreateVoiceUserResponse

    LegacyCreateVoiceUserResponse: components["schemas"]["LegacyCreateVoiceUserResponse"]
    +LegacyCreateVoiceUserResponse | revolt.js

    Type Alias LegacyCreateVoiceUserResponse

    LegacyCreateVoiceUserResponse: components["schemas"]["LegacyCreateVoiceUserResponse"]
    diff --git a/types/API.LegacyServerChannelType.html b/types/API.LegacyServerChannelType.html index 6933134b..bfa795dd 100644 --- a/types/API.LegacyServerChannelType.html +++ b/types/API.LegacyServerChannelType.html @@ -1 +1 @@ -LegacyServerChannelType | revolt.js

    Type Alias LegacyServerChannelType

    LegacyServerChannelType: components["schemas"]["LegacyServerChannelType"]
    +LegacyServerChannelType | revolt.js

    Type Alias LegacyServerChannelType

    LegacyServerChannelType: components["schemas"]["LegacyServerChannelType"]
    diff --git a/types/API.LightspeedType.html b/types/API.LightspeedType.html index f5c3f6e8..40214bc2 100644 --- a/types/API.LightspeedType.html +++ b/types/API.LightspeedType.html @@ -1 +1 @@ -LightspeedType | revolt.js

    Type Alias LightspeedType

    LightspeedType: components["schemas"]["LightspeedType"]
    +LightspeedType | revolt.js

    Type Alias LightspeedType

    LightspeedType: components["schemas"]["LightspeedType"]
    diff --git a/types/API.MFAMethod.html b/types/API.MFAMethod.html index d028b963..fe628be4 100644 --- a/types/API.MFAMethod.html +++ b/types/API.MFAMethod.html @@ -1 +1 @@ -MFAMethod | revolt.js

    Type Alias MFAMethod

    MFAMethod: components["schemas"]["MFAMethod"]
    +MFAMethod | revolt.js

    Type Alias MFAMethod

    MFAMethod: components["schemas"]["MFAMethod"]
    diff --git a/types/API.MFAResponse.html b/types/API.MFAResponse.html index d0150fad..afca9e92 100644 --- a/types/API.MFAResponse.html +++ b/types/API.MFAResponse.html @@ -1 +1 @@ -MFAResponse | revolt.js

    Type Alias MFAResponse

    MFAResponse: components["schemas"]["MFAResponse"]
    +MFAResponse | revolt.js

    Type Alias MFAResponse

    MFAResponse: components["schemas"]["MFAResponse"]
    diff --git a/types/API.MFATicket.html b/types/API.MFATicket.html index 57b72d08..f45f4ea8 100644 --- a/types/API.MFATicket.html +++ b/types/API.MFATicket.html @@ -1 +1 @@ -MFATicket | revolt.js

    Type Alias MFATicket

    MFATicket: components["schemas"]["MFATicket"]
    +MFATicket | revolt.js

    Type Alias MFATicket

    MFATicket: components["schemas"]["MFATicket"]
    diff --git a/types/API.Masquerade.html b/types/API.Masquerade.html index c1f510ff..f36990ea 100644 --- a/types/API.Masquerade.html +++ b/types/API.Masquerade.html @@ -1 +1 @@ -Masquerade | revolt.js

    Type Alias Masquerade

    Masquerade: components["schemas"]["Masquerade"]
    +Masquerade | revolt.js

    Type Alias Masquerade

    Masquerade: components["schemas"]["Masquerade"]
    diff --git a/types/API.Member.html b/types/API.Member.html index f73c4309..5ee920ab 100644 --- a/types/API.Member.html +++ b/types/API.Member.html @@ -1 +1 @@ -Member | revolt.js

    Type Alias Member

    Member: components["schemas"]["Member"]
    +Member | revolt.js

    Type Alias Member

    Member: components["schemas"]["Member"]
    diff --git a/types/API.MemberCompositeKey.html b/types/API.MemberCompositeKey.html index a158d1f2..699f54df 100644 --- a/types/API.MemberCompositeKey.html +++ b/types/API.MemberCompositeKey.html @@ -1 +1 @@ -MemberCompositeKey | revolt.js

    Type Alias MemberCompositeKey

    MemberCompositeKey: components["schemas"]["MemberCompositeKey"]
    +MemberCompositeKey | revolt.js

    Type Alias MemberCompositeKey

    MemberCompositeKey: components["schemas"]["MemberCompositeKey"]
    diff --git a/types/API.MemberQueryResponse.html b/types/API.MemberQueryResponse.html index c1866795..35a0b0b7 100644 --- a/types/API.MemberQueryResponse.html +++ b/types/API.MemberQueryResponse.html @@ -1 +1 @@ -MemberQueryResponse | revolt.js

    Type Alias MemberQueryResponse

    MemberQueryResponse: components["schemas"]["MemberQueryResponse"]
    +MemberQueryResponse | revolt.js

    Type Alias MemberQueryResponse

    MemberQueryResponse: components["schemas"]["MemberQueryResponse"]
    diff --git a/types/API.MemberResponse.html b/types/API.MemberResponse.html index bdc34c99..9f20f97f 100644 --- a/types/API.MemberResponse.html +++ b/types/API.MemberResponse.html @@ -1 +1 @@ -MemberResponse | revolt.js

    Type Alias MemberResponse

    MemberResponse: components["schemas"]["MemberResponse"]
    +MemberResponse | revolt.js

    Type Alias MemberResponse

    MemberResponse: components["schemas"]["MemberResponse"]
    diff --git a/types/API.Message.html b/types/API.Message.html index 3db0b2af..01b686ed 100644 --- a/types/API.Message.html +++ b/types/API.Message.html @@ -1 +1 @@ -Message | revolt.js

    Type Alias Message

    Message: components["schemas"]["Message"]
    +Message | revolt.js

    Type Alias Message

    Message: components["schemas"]["Message"]
    diff --git a/types/API.MessageSort.html b/types/API.MessageSort.html index 2751c739..a295b678 100644 --- a/types/API.MessageSort.html +++ b/types/API.MessageSort.html @@ -1 +1 @@ -MessageSort | revolt.js

    Type Alias MessageSort

    MessageSort: components["schemas"]["MessageSort"]
    +MessageSort | revolt.js

    Type Alias MessageSort

    MessageSort: components["schemas"]["MessageSort"]
    diff --git a/types/API.MessageWebhook.html b/types/API.MessageWebhook.html index 9c4e1144..5010bd29 100644 --- a/types/API.MessageWebhook.html +++ b/types/API.MessageWebhook.html @@ -1 +1 @@ -MessageWebhook | revolt.js

    Type Alias MessageWebhook

    MessageWebhook: components["schemas"]["MessageWebhook"]
    +MessageWebhook | revolt.js

    Type Alias MessageWebhook

    MessageWebhook: components["schemas"]["MessageWebhook"]
    diff --git a/types/API.Metadata.html b/types/API.Metadata.html index 59739162..52e4444d 100644 --- a/types/API.Metadata.html +++ b/types/API.Metadata.html @@ -1 +1 @@ -Metadata | revolt.js

    Type Alias Metadata

    Metadata: components["schemas"]["Metadata"]
    +Metadata | revolt.js

    Type Alias Metadata

    Metadata: components["schemas"]["Metadata"]
    diff --git a/types/API.MultiFactorStatus.html b/types/API.MultiFactorStatus.html index 4bfbdbeb..74958f74 100644 --- a/types/API.MultiFactorStatus.html +++ b/types/API.MultiFactorStatus.html @@ -1 +1 @@ -MultiFactorStatus | revolt.js

    Type Alias MultiFactorStatus

    MultiFactorStatus: components["schemas"]["MultiFactorStatus"]
    +MultiFactorStatus | revolt.js

    Type Alias MultiFactorStatus

    MultiFactorStatus: components["schemas"]["MultiFactorStatus"]
    diff --git a/types/API.MutualResponse.html b/types/API.MutualResponse.html index fe83cea8..0a885d2d 100644 --- a/types/API.MutualResponse.html +++ b/types/API.MutualResponse.html @@ -1 +1 @@ -MutualResponse | revolt.js

    Type Alias MutualResponse

    MutualResponse: components["schemas"]["MutualResponse"]
    +MutualResponse | revolt.js

    Type Alias MutualResponse

    MutualResponse: components["schemas"]["MutualResponse"]
    diff --git a/types/API.NewRoleResponse.html b/types/API.NewRoleResponse.html index d34c2b26..9dab1c10 100644 --- a/types/API.NewRoleResponse.html +++ b/types/API.NewRoleResponse.html @@ -1 +1 @@ -NewRoleResponse | revolt.js

    Type Alias NewRoleResponse

    NewRoleResponse: components["schemas"]["NewRoleResponse"]
    +NewRoleResponse | revolt.js

    Type Alias NewRoleResponse

    NewRoleResponse: components["schemas"]["NewRoleResponse"]
    diff --git a/types/API.OptionsBulkDelete.html b/types/API.OptionsBulkDelete.html index 013dad05..de1186a0 100644 --- a/types/API.OptionsBulkDelete.html +++ b/types/API.OptionsBulkDelete.html @@ -1 +1 @@ -OptionsBulkDelete | revolt.js

    Type Alias OptionsBulkDelete

    OptionsBulkDelete: components["schemas"]["OptionsBulkDelete"]
    +OptionsBulkDelete | revolt.js

    Type Alias OptionsBulkDelete

    OptionsBulkDelete: components["schemas"]["OptionsBulkDelete"]
    diff --git a/types/API.OptionsFetchSettings.html b/types/API.OptionsFetchSettings.html index 6535df88..bc9690d1 100644 --- a/types/API.OptionsFetchSettings.html +++ b/types/API.OptionsFetchSettings.html @@ -1 +1 @@ -OptionsFetchSettings | revolt.js

    Type Alias OptionsFetchSettings

    OptionsFetchSettings: components["schemas"]["OptionsFetchSettings"]
    +OptionsFetchSettings | revolt.js

    Type Alias OptionsFetchSettings

    OptionsFetchSettings: components["schemas"]["OptionsFetchSettings"]
    diff --git a/types/API.Override.html b/types/API.Override.html index a0008269..1ccc1c31 100644 --- a/types/API.Override.html +++ b/types/API.Override.html @@ -1 +1 @@ -Override | revolt.js

    Type Alias Override

    Override: components["schemas"]["Override"]
    +Override | revolt.js

    Type Alias Override

    Override: components["schemas"]["Override"]
    diff --git a/types/API.OverrideField.html b/types/API.OverrideField.html index 5ed25ee2..fb9208d2 100644 --- a/types/API.OverrideField.html +++ b/types/API.OverrideField.html @@ -1 +1 @@ -OverrideField | revolt.js

    Type Alias OverrideField

    OverrideField: components["schemas"]["OverrideField"]
    +OverrideField | revolt.js

    Type Alias OverrideField

    OverrideField: components["schemas"]["OverrideField"]
    diff --git a/types/API.OwnedBotsResponse.html b/types/API.OwnedBotsResponse.html index bef36faa..921ecf54 100644 --- a/types/API.OwnedBotsResponse.html +++ b/types/API.OwnedBotsResponse.html @@ -1 +1 @@ -OwnedBotsResponse | revolt.js

    Type Alias OwnedBotsResponse

    OwnedBotsResponse: components["schemas"]["OwnedBotsResponse"]
    +OwnedBotsResponse | revolt.js

    Type Alias OwnedBotsResponse

    OwnedBotsResponse: components["schemas"]["OwnedBotsResponse"]
    diff --git a/types/API.Presence.html b/types/API.Presence.html index fd667cda..e84f4c6a 100644 --- a/types/API.Presence.html +++ b/types/API.Presence.html @@ -1 +1 @@ -Presence | revolt.js

    Type Alias Presence

    Presence: components["schemas"]["Presence"]
    +Presence | revolt.js

    Type Alias Presence

    Presence: components["schemas"]["Presence"]
    diff --git a/types/API.PublicBot.html b/types/API.PublicBot.html index 3ffb1255..05e8835e 100644 --- a/types/API.PublicBot.html +++ b/types/API.PublicBot.html @@ -1 +1 @@ -PublicBot | revolt.js

    Type Alias PublicBot

    PublicBot: components["schemas"]["PublicBot"]
    +PublicBot | revolt.js

    Type Alias PublicBot

    PublicBot: components["schemas"]["PublicBot"]
    diff --git a/types/API.Relationship.html b/types/API.Relationship.html index d3c0bfe7..476ad6d0 100644 --- a/types/API.Relationship.html +++ b/types/API.Relationship.html @@ -1 +1 @@ -Relationship | revolt.js

    Type Alias Relationship

    Relationship: components["schemas"]["Relationship"]
    +Relationship | revolt.js

    Type Alias Relationship

    Relationship: components["schemas"]["Relationship"]
    diff --git a/types/API.RelationshipStatus.html b/types/API.RelationshipStatus.html index cf60d8bf..d65642c6 100644 --- a/types/API.RelationshipStatus.html +++ b/types/API.RelationshipStatus.html @@ -1 +1 @@ -RelationshipStatus | revolt.js

    Type Alias RelationshipStatus

    RelationshipStatus: components["schemas"]["RelationshipStatus"]
    +RelationshipStatus | revolt.js

    Type Alias RelationshipStatus

    RelationshipStatus: components["schemas"]["RelationshipStatus"]
    diff --git a/types/API.ReplyIntent.html b/types/API.ReplyIntent.html index 35d6ff46..1edf871a 100644 --- a/types/API.ReplyIntent.html +++ b/types/API.ReplyIntent.html @@ -1 +1 @@ -ReplyIntent | revolt.js

    Type Alias ReplyIntent

    ReplyIntent: components["schemas"]["ReplyIntent"]
    +ReplyIntent | revolt.js

    Type Alias ReplyIntent

    ReplyIntent: components["schemas"]["ReplyIntent"]
    diff --git a/types/API.ReportedContent.html b/types/API.ReportedContent.html index cf39d284..3fecaf69 100644 --- a/types/API.ReportedContent.html +++ b/types/API.ReportedContent.html @@ -1 +1 @@ -ReportedContent | revolt.js

    Type Alias ReportedContent

    ReportedContent: components["schemas"]["ReportedContent"]
    +ReportedContent | revolt.js

    Type Alias ReportedContent

    ReportedContent: components["schemas"]["ReportedContent"]
    diff --git a/types/API.ResponseLogin.html b/types/API.ResponseLogin.html index 2c5dfbe0..b7077fc2 100644 --- a/types/API.ResponseLogin.html +++ b/types/API.ResponseLogin.html @@ -1 +1 @@ -ResponseLogin | revolt.js

    Type Alias ResponseLogin

    ResponseLogin: components["schemas"]["ResponseLogin"]
    +ResponseLogin | revolt.js

    Type Alias ResponseLogin

    ResponseLogin: components["schemas"]["ResponseLogin"]
    diff --git a/types/API.ResponseTotpSecret.html b/types/API.ResponseTotpSecret.html index f3691701..9f5e55a4 100644 --- a/types/API.ResponseTotpSecret.html +++ b/types/API.ResponseTotpSecret.html @@ -1 +1 @@ -ResponseTotpSecret | revolt.js

    Type Alias ResponseTotpSecret

    ResponseTotpSecret: components["schemas"]["ResponseTotpSecret"]
    +ResponseTotpSecret | revolt.js

    Type Alias ResponseTotpSecret

    ResponseTotpSecret: components["schemas"]["ResponseTotpSecret"]
    diff --git a/types/API.ResponseVerify.html b/types/API.ResponseVerify.html index e562e49c..dab1b27d 100644 --- a/types/API.ResponseVerify.html +++ b/types/API.ResponseVerify.html @@ -1 +1 @@ -ResponseVerify | revolt.js

    Type Alias ResponseVerify

    ResponseVerify: components["schemas"]["ResponseVerify"]
    +ResponseVerify | revolt.js

    Type Alias ResponseVerify

    ResponseVerify: components["schemas"]["ResponseVerify"]
    diff --git a/types/API.ResponseWebhook.html b/types/API.ResponseWebhook.html index 155bfa67..b13822e3 100644 --- a/types/API.ResponseWebhook.html +++ b/types/API.ResponseWebhook.html @@ -1 +1 @@ -ResponseWebhook | revolt.js

    Type Alias ResponseWebhook

    ResponseWebhook: components["schemas"]["ResponseWebhook"]
    +ResponseWebhook | revolt.js

    Type Alias ResponseWebhook

    ResponseWebhook: components["schemas"]["ResponseWebhook"]
    diff --git a/types/API.RevoltConfig.html b/types/API.RevoltConfig.html index 3b0cae06..6af92fc3 100644 --- a/types/API.RevoltConfig.html +++ b/types/API.RevoltConfig.html @@ -1 +1 @@ -RevoltConfig | revolt.js

    Type Alias RevoltConfig

    RevoltConfig: components["schemas"]["RevoltConfig"]
    +RevoltConfig | revolt.js

    Type Alias RevoltConfig

    RevoltConfig: components["schemas"]["RevoltConfig"]
    diff --git a/types/API.RevoltFeatures.html b/types/API.RevoltFeatures.html index d75ab021..14e8aac2 100644 --- a/types/API.RevoltFeatures.html +++ b/types/API.RevoltFeatures.html @@ -1 +1 @@ -RevoltFeatures | revolt.js

    Type Alias RevoltFeatures

    RevoltFeatures: components["schemas"]["RevoltFeatures"]
    +RevoltFeatures | revolt.js

    Type Alias RevoltFeatures

    RevoltFeatures: components["schemas"]["RevoltFeatures"]
    diff --git a/types/API.Role.html b/types/API.Role.html index e32550fe..014ac5fb 100644 --- a/types/API.Role.html +++ b/types/API.Role.html @@ -1 +1 @@ -Role | revolt.js

    Type Alias Role

    Role: components["schemas"]["Role"]
    +Role | revolt.js

    Type Alias Role

    Role: components["schemas"]["Role"]
    diff --git a/types/API.SendableEmbed.html b/types/API.SendableEmbed.html index 66850712..15ba9e99 100644 --- a/types/API.SendableEmbed.html +++ b/types/API.SendableEmbed.html @@ -1 +1 @@ -SendableEmbed | revolt.js

    Type Alias SendableEmbed

    SendableEmbed: components["schemas"]["SendableEmbed"]
    +SendableEmbed | revolt.js

    Type Alias SendableEmbed

    SendableEmbed: components["schemas"]["SendableEmbed"]
    diff --git a/types/API.Server.html b/types/API.Server.html index 8084ec57..83794024 100644 --- a/types/API.Server.html +++ b/types/API.Server.html @@ -1 +1 @@ -Server | revolt.js

    Type Alias Server

    Server: components["schemas"]["Server"]
    +Server | revolt.js

    Type Alias Server

    Server: components["schemas"]["Server"]
    diff --git a/types/API.ServerBan.html b/types/API.ServerBan.html index b8a17923..593caebb 100644 --- a/types/API.ServerBan.html +++ b/types/API.ServerBan.html @@ -1 +1 @@ -ServerBan | revolt.js

    Type Alias ServerBan

    ServerBan: components["schemas"]["ServerBan"]
    +ServerBan | revolt.js

    Type Alias ServerBan

    ServerBan: components["schemas"]["ServerBan"]
    diff --git a/types/API.SessionInfo.html b/types/API.SessionInfo.html index 5a924aea..55a3dcf5 100644 --- a/types/API.SessionInfo.html +++ b/types/API.SessionInfo.html @@ -1 +1 @@ -SessionInfo | revolt.js

    Type Alias SessionInfo

    SessionInfo: components["schemas"]["SessionInfo"]
    +SessionInfo | revolt.js

    Type Alias SessionInfo

    SessionInfo: components["schemas"]["SessionInfo"]
    diff --git a/types/API.Special.html b/types/API.Special.html index dd87cbb9..0eb01912 100644 --- a/types/API.Special.html +++ b/types/API.Special.html @@ -1 +1 @@ -Special | revolt.js

    Type Alias Special

    Special: components["schemas"]["Special"]
    +Special | revolt.js

    Type Alias Special

    Special: components["schemas"]["Special"]
    diff --git a/types/API.SystemMessage.html b/types/API.SystemMessage.html index c31565ee..312e6704 100644 --- a/types/API.SystemMessage.html +++ b/types/API.SystemMessage.html @@ -1 +1 @@ -SystemMessage | revolt.js

    Type Alias SystemMessage

    SystemMessage: components["schemas"]["SystemMessage"]
    +SystemMessage | revolt.js

    Type Alias SystemMessage

    SystemMessage: components["schemas"]["SystemMessage"]
    diff --git a/types/API.SystemMessageChannels.html b/types/API.SystemMessageChannels.html index e51352bc..f529d164 100644 --- a/types/API.SystemMessageChannels.html +++ b/types/API.SystemMessageChannels.html @@ -1 +1 @@ -SystemMessageChannels | revolt.js

    Type Alias SystemMessageChannels

    SystemMessageChannels: components["schemas"]["SystemMessageChannels"]
    +SystemMessageChannels | revolt.js

    Type Alias SystemMessageChannels

    SystemMessageChannels: components["schemas"]["SystemMessageChannels"]
    diff --git a/types/API.TwitchType.html b/types/API.TwitchType.html index 20bc940e..8b926ef9 100644 --- a/types/API.TwitchType.html +++ b/types/API.TwitchType.html @@ -1 +1 @@ -TwitchType | revolt.js

    Type Alias TwitchType

    TwitchType: components["schemas"]["TwitchType"]
    +TwitchType | revolt.js

    Type Alias TwitchType

    TwitchType: components["schemas"]["TwitchType"]
    diff --git a/types/API.User.html b/types/API.User.html index c3b9b93f..abbd2e80 100644 --- a/types/API.User.html +++ b/types/API.User.html @@ -1 +1 @@ -User | revolt.js

    Type Alias User

    User: components["schemas"]["User"]
    +User | revolt.js

    Type Alias User

    User: components["schemas"]["User"]
    diff --git a/types/API.UserProfile.html b/types/API.UserProfile.html index 9a5df4d0..3cb09db1 100644 --- a/types/API.UserProfile.html +++ b/types/API.UserProfile.html @@ -1 +1 @@ -UserProfile | revolt.js

    Type Alias UserProfile

    UserProfile: components["schemas"]["UserProfile"]
    +UserProfile | revolt.js

    Type Alias UserProfile

    UserProfile: components["schemas"]["UserProfile"]
    diff --git a/types/API.UserReportReason.html b/types/API.UserReportReason.html index f54bdac7..b355164a 100644 --- a/types/API.UserReportReason.html +++ b/types/API.UserReportReason.html @@ -1 +1 @@ -UserReportReason | revolt.js

    Type Alias UserReportReason

    UserReportReason: components["schemas"]["UserReportReason"]
    +UserReportReason | revolt.js

    Type Alias UserReportReason

    UserReportReason: components["schemas"]["UserReportReason"]
    diff --git a/types/API.UserStatus.html b/types/API.UserStatus.html index 1234af9c..0cd2f698 100644 --- a/types/API.UserStatus.html +++ b/types/API.UserStatus.html @@ -1 +1 @@ -UserStatus | revolt.js

    Type Alias UserStatus

    UserStatus: components["schemas"]["UserStatus"]
    +UserStatus | revolt.js

    Type Alias UserStatus

    UserStatus: components["schemas"]["UserStatus"]
    diff --git a/types/API.Video.html b/types/API.Video.html index e8855987..9aaa5316 100644 --- a/types/API.Video.html +++ b/types/API.Video.html @@ -1 +1 @@ -Video | revolt.js

    Type Alias Video

    Video: components["schemas"]["Video"]
    +Video | revolt.js

    Type Alias Video

    Video: components["schemas"]["Video"]
    diff --git a/types/API.VoiceFeature.html b/types/API.VoiceFeature.html index 646d466b..a4b4a0b4 100644 --- a/types/API.VoiceFeature.html +++ b/types/API.VoiceFeature.html @@ -1 +1 @@ -VoiceFeature | revolt.js

    Type Alias VoiceFeature

    VoiceFeature: components["schemas"]["VoiceFeature"]
    +VoiceFeature | revolt.js

    Type Alias VoiceFeature

    VoiceFeature: components["schemas"]["VoiceFeature"]
    diff --git a/types/API.WebPushSubscription.html b/types/API.WebPushSubscription.html index 05610647..d1f0c102 100644 --- a/types/API.WebPushSubscription.html +++ b/types/API.WebPushSubscription.html @@ -1 +1 @@ -WebPushSubscription | revolt.js

    Type Alias WebPushSubscription

    WebPushSubscription: components["schemas"]["WebPushSubscription"]
    +WebPushSubscription | revolt.js

    Type Alias WebPushSubscription

    WebPushSubscription: components["schemas"]["WebPushSubscription"]
    diff --git a/types/API.Webhook.html b/types/API.Webhook.html index 043c7e78..1455062a 100644 --- a/types/API.Webhook.html +++ b/types/API.Webhook.html @@ -1 +1 @@ -Webhook | revolt.js

    Type Alias Webhook

    Webhook: components["schemas"]["Webhook"]
    +Webhook | revolt.js

    Type Alias Webhook

    Webhook: components["schemas"]["Webhook"]
    diff --git a/types/ClientOptions.html b/types/ClientOptions.html index bb01d09a..2d9aea42 100644 --- a/types/ClientOptions.html +++ b/types/ClientOptions.html @@ -26,10 +26,10 @@
    false
     
    -
  • retryDelayFunction:function
  • retryDelayFunction:function
  • +
    diff --git a/types/PrivateSession.html b/types/PrivateSession.html index 868ac4d0..db6f18f6 100644 --- a/types/PrivateSession.html +++ b/types/PrivateSession.html @@ -1 +1 @@ -PrivateSession | revolt.js

    Type Alias PrivateSession

    PrivateSession: { _id: string; token: string; user_id: string } | string
    +PrivateSession | revolt.js

    Type Alias PrivateSession

    PrivateSession: { _id: string; token: string; user_id: string } | string
    diff --git a/variables/ALLOW_IN_TIMEOUT.html b/variables/ALLOW_IN_TIMEOUT.html index 1949cca3..4b05d097 100644 --- a/variables/ALLOW_IN_TIMEOUT.html +++ b/variables/ALLOW_IN_TIMEOUT.html @@ -1,2 +1,2 @@ ALLOW_IN_TIMEOUT | revolt.js

    Variable ALLOW_IN_TIMEOUTConst

    ALLOW_IN_TIMEOUT: number = ...

    Permissions allowed for a user while in timeout

    -
    +
    diff --git a/variables/DEFAULT_PERMISSION.html b/variables/DEFAULT_PERMISSION.html index b8847dce..13b5e57b 100644 --- a/variables/DEFAULT_PERMISSION.html +++ b/variables/DEFAULT_PERMISSION.html @@ -1,2 +1,2 @@ DEFAULT_PERMISSION | revolt.js

    Variable DEFAULT_PERMISSIONConst

    DEFAULT_PERMISSION: number = ...

    Default base permissions for channels

    -
    +
    diff --git a/variables/DEFAULT_PERMISSION_DIRECT_MESSAGE.html b/variables/DEFAULT_PERMISSION_DIRECT_MESSAGE.html index b93ebf04..ed5b8718 100644 --- a/variables/DEFAULT_PERMISSION_DIRECT_MESSAGE.html +++ b/variables/DEFAULT_PERMISSION_DIRECT_MESSAGE.html @@ -1,2 +1,2 @@ DEFAULT_PERMISSION_DIRECT_MESSAGE | revolt.js

    Variable DEFAULT_PERMISSION_DIRECT_MESSAGEConst

    DEFAULT_PERMISSION_DIRECT_MESSAGE: number = ...

    Permissions in direct message channels / default permissions for group DMs

    -
    +
    diff --git a/variables/DEFAULT_PERMISSION_SAVED_MESSAGES.html b/variables/DEFAULT_PERMISSION_SAVED_MESSAGES.html index dd6c32ae..e0afbe97 100644 --- a/variables/DEFAULT_PERMISSION_SAVED_MESSAGES.html +++ b/variables/DEFAULT_PERMISSION_SAVED_MESSAGES.html @@ -1,2 +1,2 @@ DEFAULT_PERMISSION_SAVED_MESSAGES | revolt.js

    Variable DEFAULT_PERMISSION_SAVED_MESSAGESConst

    DEFAULT_PERMISSION_SAVED_MESSAGES: number = Permission.GrantAllSafe

    Permissions in saved messages channel

    -
    +
    diff --git a/variables/DEFAULT_PERMISSION_SERVER.html b/variables/DEFAULT_PERMISSION_SERVER.html index e23a3432..e7fde9d0 100644 --- a/variables/DEFAULT_PERMISSION_SERVER.html +++ b/variables/DEFAULT_PERMISSION_SERVER.html @@ -1,2 +1,2 @@ DEFAULT_PERMISSION_SERVER | revolt.js

    Variable DEFAULT_PERMISSION_SERVERConst

    DEFAULT_PERMISSION_SERVER: number = ...

    Permissions in server text / voice channel

    -
    +
    diff --git a/variables/DEFAULT_PERMISSION_VIEW_ONLY.html b/variables/DEFAULT_PERMISSION_VIEW_ONLY.html index 785a4d16..3a2ddd46 100644 --- a/variables/DEFAULT_PERMISSION_VIEW_ONLY.html +++ b/variables/DEFAULT_PERMISSION_VIEW_ONLY.html @@ -1,2 +1,2 @@ DEFAULT_PERMISSION_VIEW_ONLY | revolt.js

    Variable DEFAULT_PERMISSION_VIEW_ONLYConst

    DEFAULT_PERMISSION_VIEW_ONLY: number = ...

    Default permissions if we can only view

    -
    +
    diff --git a/variables/Permission.html b/variables/Permission.html index 4081fb24..cd977d60 100644 --- a/variables/Permission.html +++ b/variables/Permission.html @@ -1,2 +1,2 @@ Permission | revolt.js

    Variable PermissionConst

    Permission: {
        AssignRoles: number;
        BanMembers: number;
        ChangeAvatar: number;
        ChangeNickname: number;
        Connect: number;
        DeafenMembers: number;
        GrantAllSafe: number;
        InviteOthers: number;
        KickMembers: number;
        ManageChannel: number;
        ManageCustomisation: number;
        ManageMessages: number;
        ManageNicknames: number;
        ManagePermissions: number;
        ManageRole: number;
        ManageServer: number;
        ManageWebhooks: number;
        Masquerade: number;
        MentionEveryone: number;
        MentionRoles: number;
        MoveMembers: number;
        MuteMembers: number;
        React: number;
        ReadMessageHistory: number;
        RemoveAvatars: number;
        SendEmbeds: number;
        SendMessage: number;
        Speak: number;
        TimeoutMembers: number;
        UploadFiles: number;
        Video: number;
        ViewChannel: number;
    } = ...

    Permission against Server / Channel

    -

    Type declaration

    • AssignRoles: number
    • BanMembers: number
    • ChangeAvatar: number
    • ChangeNickname: number
    • Connect: number
    • DeafenMembers: number
    • GrantAllSafe: number
    • InviteOthers: number
    • KickMembers: number
    • ManageChannel: number
    • ManageCustomisation: number
    • ManageMessages: number
    • ManageNicknames: number
    • ManagePermissions: number
    • ManageRole: number
    • ManageServer: number
    • ManageWebhooks: number
    • Masquerade: number
    • MentionEveryone: number
    • MentionRoles: number
    • MoveMembers: number
    • MuteMembers: number
    • React: number
    • ReadMessageHistory: number
    • RemoveAvatars: number
    • SendEmbeds: number
    • SendMessage: number
    • Speak: number
    • TimeoutMembers: number
    • UploadFiles: number
    • Video: number
    • ViewChannel: number
    +

    Type declaration

    diff --git a/variables/RE_CHANNELS.html b/variables/RE_CHANNELS.html index df7ca004..4ced792b 100644 --- a/variables/RE_CHANNELS.html +++ b/variables/RE_CHANNELS.html @@ -1,2 +1,2 @@ RE_CHANNELS | revolt.js

    Variable RE_CHANNELSConst

    RE_CHANNELS: RegExp = ...

    Regular expression for channels.

    -
    +
    diff --git a/variables/RE_MENTIONS.html b/variables/RE_MENTIONS.html index 01e4a9a3..48c1c4c5 100644 --- a/variables/RE_MENTIONS.html +++ b/variables/RE_MENTIONS.html @@ -1,2 +1,2 @@ RE_MENTIONS | revolt.js

    Variable RE_MENTIONSConst

    RE_MENTIONS: RegExp = ...

    Regular expression for mentions.

    -
    +
    diff --git a/variables/RE_SPOILER.html b/variables/RE_SPOILER.html index 0ab54852..5d5e138b 100644 --- a/variables/RE_SPOILER.html +++ b/variables/RE_SPOILER.html @@ -1,2 +1,2 @@ RE_SPOILER | revolt.js

    Variable RE_SPOILERConst

    RE_SPOILER: RegExp = ...

    Regular expression for spoilers.

    -
    +
    diff --git a/variables/U32_MAX.html b/variables/U32_MAX.html index ce8b8b15..a33c42d3 100644 --- a/variables/U32_MAX.html +++ b/variables/U32_MAX.html @@ -1,2 +1,2 @@ U32_MAX | revolt.js

    Variable U32_MAXConst

    U32_MAX: number = ...

    Maximum safe value

    -
    +
    diff --git a/variables/UserPermission.html b/variables/UserPermission.html index 4309e124..4b6e1ee7 100644 --- a/variables/UserPermission.html +++ b/variables/UserPermission.html @@ -1,2 +1,2 @@ UserPermission | revolt.js

    Variable UserPermissionConst

    UserPermission: {
        Access: number;
        Invite: number;
        SendMessage: number;
        ViewProfile: number;
    } = ...

    Permission against User

    -

    Type declaration

    • Access: number
    • Invite: number
    • SendMessage: number
    • ViewProfile: number
    +

    Type declaration