diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..9fd45e0 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..630cb6c --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: Close Stale Pull Requests +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-pr-stale: 30 # Mark PR as stale after 30 days of inactivity + days-before-pr-close: 7 # Close PR 7 days after being marked as stale + stale-pr-message: 'This pull request has been marked as stale due to inactivity for 30 days. It will be closed in 7 days if no further activity occurs.' + close-pr-message: 'This pull request has been closed due to inactivity for 7 days after being marked as stale.' + stale-pr-label: 'stale' # Label to add when marking as stale + exempt-pr-labels: 'pinned,security' # PRs with these labels will not be marked as stale \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0104787..d01bd1a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,10 @@ debug/ target/ +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + # These are backup files generated by rustfmt **/*.rs.bk diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1c19ee2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "dc_rest" +version = "10.0.0" +authors = ["CtrlX "] +description = "Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details." +license = "MIT" +edition = "2024" + +[dependencies] +serde = { version = "^1.0", features = ["derive"] } +serde_with = { version = "^3.13", default-features = false, features = ["base64", "std", "macros"] } +serde_json = "^1.0" +serde_repr = "^0.1" +url = "^2.5" +async-trait = "^0.1" +reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] } +reqwest-middleware = { version = "^0.4", features = ["json", "multipart"], optional = true } + +[features] +default = ["native-tls"] +native-tls = ["reqwest/native-tls"] +rustls = ["reqwest/rustls-tls"] +middleware = ["reqwest-middleware"] \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 2bd1eeb..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 DC API - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 83b5db7..aaaeb56 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,722 @@ -# dc-api-rust -Rust wrapper for Discord Bot API. +# Rust API client for dc_rest + +Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. + + +## Overview + +- API version: 10 +- Package version: 10 +- Build date: 2025-07-01T06:33:04.448935044Z[Etc/UTC] + +## Installation + +Put the package under your project folder in a directory named `dc_rest` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +dc_rest = { path = "./dc_rest" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://discord.com/api/v10* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**add_group_dm_user**](docs/DefaultApi.md#add_group_dm_user) | **PUT** /channels/{channel_id}/recipients/{user_id} | +*DefaultApi* | [**add_guild_member**](docs/DefaultApi.md#add_guild_member) | **PUT** /guilds/{guild_id}/members/{user_id} | +*DefaultApi* | [**add_guild_member_role**](docs/DefaultApi.md#add_guild_member_role) | **PUT** /guilds/{guild_id}/members/{user_id}/roles/{role_id} | +*DefaultApi* | [**add_lobby_member**](docs/DefaultApi.md#add_lobby_member) | **PUT** /lobbies/{lobby_id}/members/{user_id} | +*DefaultApi* | [**add_my_message_reaction**](docs/DefaultApi.md#add_my_message_reaction) | **PUT** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me | +*DefaultApi* | [**add_thread_member**](docs/DefaultApi.md#add_thread_member) | **PUT** /channels/{channel_id}/thread-members/{user_id} | +*DefaultApi* | [**applications_get_activity_instance**](docs/DefaultApi.md#applications_get_activity_instance) | **GET** /applications/{application_id}/activity-instances/{instance_id} | +*DefaultApi* | [**ban_user_from_guild**](docs/DefaultApi.md#ban_user_from_guild) | **PUT** /guilds/{guild_id}/bans/{user_id} | +*DefaultApi* | [**bulk_ban_users_from_guild**](docs/DefaultApi.md#bulk_ban_users_from_guild) | **POST** /guilds/{guild_id}/bulk-ban | +*DefaultApi* | [**bulk_delete_messages**](docs/DefaultApi.md#bulk_delete_messages) | **POST** /channels/{channel_id}/messages/bulk-delete | +*DefaultApi* | [**bulk_set_application_commands**](docs/DefaultApi.md#bulk_set_application_commands) | **PUT** /applications/{application_id}/commands | +*DefaultApi* | [**bulk_set_guild_application_commands**](docs/DefaultApi.md#bulk_set_guild_application_commands) | **PUT** /applications/{application_id}/guilds/{guild_id}/commands | +*DefaultApi* | [**bulk_update_guild_channels**](docs/DefaultApi.md#bulk_update_guild_channels) | **PATCH** /guilds/{guild_id}/channels | +*DefaultApi* | [**bulk_update_guild_roles**](docs/DefaultApi.md#bulk_update_guild_roles) | **PATCH** /guilds/{guild_id}/roles | +*DefaultApi* | [**bulk_update_lobby_members**](docs/DefaultApi.md#bulk_update_lobby_members) | **POST** /lobbies/{lobby_id}/members/bulk | +*DefaultApi* | [**consume_entitlement**](docs/DefaultApi.md#consume_entitlement) | **POST** /applications/{application_id}/entitlements/{entitlement_id}/consume | +*DefaultApi* | [**create_application_command**](docs/DefaultApi.md#create_application_command) | **POST** /applications/{application_id}/commands | +*DefaultApi* | [**create_application_emoji**](docs/DefaultApi.md#create_application_emoji) | **POST** /applications/{application_id}/emojis | +*DefaultApi* | [**create_auto_moderation_rule**](docs/DefaultApi.md#create_auto_moderation_rule) | **POST** /guilds/{guild_id}/auto-moderation/rules | +*DefaultApi* | [**create_channel_invite**](docs/DefaultApi.md#create_channel_invite) | **POST** /channels/{channel_id}/invites | +*DefaultApi* | [**create_dm**](docs/DefaultApi.md#create_dm) | **POST** /users/@me/channels | +*DefaultApi* | [**create_entitlement**](docs/DefaultApi.md#create_entitlement) | **POST** /applications/{application_id}/entitlements | +*DefaultApi* | [**create_guild**](docs/DefaultApi.md#create_guild) | **POST** /guilds | +*DefaultApi* | [**create_guild_application_command**](docs/DefaultApi.md#create_guild_application_command) | **POST** /applications/{application_id}/guilds/{guild_id}/commands | +*DefaultApi* | [**create_guild_channel**](docs/DefaultApi.md#create_guild_channel) | **POST** /guilds/{guild_id}/channels | +*DefaultApi* | [**create_guild_emoji**](docs/DefaultApi.md#create_guild_emoji) | **POST** /guilds/{guild_id}/emojis | +*DefaultApi* | [**create_guild_from_template**](docs/DefaultApi.md#create_guild_from_template) | **POST** /guilds/templates/{code} | +*DefaultApi* | [**create_guild_role**](docs/DefaultApi.md#create_guild_role) | **POST** /guilds/{guild_id}/roles | +*DefaultApi* | [**create_guild_scheduled_event**](docs/DefaultApi.md#create_guild_scheduled_event) | **POST** /guilds/{guild_id}/scheduled-events | +*DefaultApi* | [**create_guild_soundboard_sound**](docs/DefaultApi.md#create_guild_soundboard_sound) | **POST** /guilds/{guild_id}/soundboard-sounds | +*DefaultApi* | [**create_guild_sticker**](docs/DefaultApi.md#create_guild_sticker) | **POST** /guilds/{guild_id}/stickers | +*DefaultApi* | [**create_guild_template**](docs/DefaultApi.md#create_guild_template) | **POST** /guilds/{guild_id}/templates | +*DefaultApi* | [**create_interaction_response**](docs/DefaultApi.md#create_interaction_response) | **POST** /interactions/{interaction_id}/{interaction_token}/callback | +*DefaultApi* | [**create_lobby**](docs/DefaultApi.md#create_lobby) | **POST** /lobbies | +*DefaultApi* | [**create_lobby_message**](docs/DefaultApi.md#create_lobby_message) | **POST** /lobbies/{lobby_id}/messages | +*DefaultApi* | [**create_message**](docs/DefaultApi.md#create_message) | **POST** /channels/{channel_id}/messages | +*DefaultApi* | [**create_or_join_lobby**](docs/DefaultApi.md#create_or_join_lobby) | **PUT** /lobbies | +*DefaultApi* | [**create_pin**](docs/DefaultApi.md#create_pin) | **PUT** /channels/{channel_id}/messages/pins/{message_id} | +*DefaultApi* | [**create_stage_instance**](docs/DefaultApi.md#create_stage_instance) | **POST** /stage-instances | +*DefaultApi* | [**create_thread**](docs/DefaultApi.md#create_thread) | **POST** /channels/{channel_id}/threads | +*DefaultApi* | [**create_thread_from_message**](docs/DefaultApi.md#create_thread_from_message) | **POST** /channels/{channel_id}/messages/{message_id}/threads | +*DefaultApi* | [**create_webhook**](docs/DefaultApi.md#create_webhook) | **POST** /channels/{channel_id}/webhooks | +*DefaultApi* | [**crosspost_message**](docs/DefaultApi.md#crosspost_message) | **POST** /channels/{channel_id}/messages/{message_id}/crosspost | +*DefaultApi* | [**delete_all_message_reactions**](docs/DefaultApi.md#delete_all_message_reactions) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions | +*DefaultApi* | [**delete_all_message_reactions_by_emoji**](docs/DefaultApi.md#delete_all_message_reactions_by_emoji) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} | +*DefaultApi* | [**delete_application_command**](docs/DefaultApi.md#delete_application_command) | **DELETE** /applications/{application_id}/commands/{command_id} | +*DefaultApi* | [**delete_application_emoji**](docs/DefaultApi.md#delete_application_emoji) | **DELETE** /applications/{application_id}/emojis/{emoji_id} | +*DefaultApi* | [**delete_application_user_role_connection**](docs/DefaultApi.md#delete_application_user_role_connection) | **DELETE** /users/@me/applications/{application_id}/role-connection | +*DefaultApi* | [**delete_auto_moderation_rule**](docs/DefaultApi.md#delete_auto_moderation_rule) | **DELETE** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +*DefaultApi* | [**delete_channel**](docs/DefaultApi.md#delete_channel) | **DELETE** /channels/{channel_id} | +*DefaultApi* | [**delete_channel_permission_overwrite**](docs/DefaultApi.md#delete_channel_permission_overwrite) | **DELETE** /channels/{channel_id}/permissions/{overwrite_id} | +*DefaultApi* | [**delete_entitlement**](docs/DefaultApi.md#delete_entitlement) | **DELETE** /applications/{application_id}/entitlements/{entitlement_id} | +*DefaultApi* | [**delete_group_dm_user**](docs/DefaultApi.md#delete_group_dm_user) | **DELETE** /channels/{channel_id}/recipients/{user_id} | +*DefaultApi* | [**delete_guild**](docs/DefaultApi.md#delete_guild) | **DELETE** /guilds/{guild_id} | +*DefaultApi* | [**delete_guild_application_command**](docs/DefaultApi.md#delete_guild_application_command) | **DELETE** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +*DefaultApi* | [**delete_guild_emoji**](docs/DefaultApi.md#delete_guild_emoji) | **DELETE** /guilds/{guild_id}/emojis/{emoji_id} | +*DefaultApi* | [**delete_guild_integration**](docs/DefaultApi.md#delete_guild_integration) | **DELETE** /guilds/{guild_id}/integrations/{integration_id} | +*DefaultApi* | [**delete_guild_member**](docs/DefaultApi.md#delete_guild_member) | **DELETE** /guilds/{guild_id}/members/{user_id} | +*DefaultApi* | [**delete_guild_member_role**](docs/DefaultApi.md#delete_guild_member_role) | **DELETE** /guilds/{guild_id}/members/{user_id}/roles/{role_id} | +*DefaultApi* | [**delete_guild_role**](docs/DefaultApi.md#delete_guild_role) | **DELETE** /guilds/{guild_id}/roles/{role_id} | +*DefaultApi* | [**delete_guild_scheduled_event**](docs/DefaultApi.md#delete_guild_scheduled_event) | **DELETE** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +*DefaultApi* | [**delete_guild_soundboard_sound**](docs/DefaultApi.md#delete_guild_soundboard_sound) | **DELETE** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +*DefaultApi* | [**delete_guild_sticker**](docs/DefaultApi.md#delete_guild_sticker) | **DELETE** /guilds/{guild_id}/stickers/{sticker_id} | +*DefaultApi* | [**delete_guild_template**](docs/DefaultApi.md#delete_guild_template) | **DELETE** /guilds/{guild_id}/templates/{code} | +*DefaultApi* | [**delete_lobby_member**](docs/DefaultApi.md#delete_lobby_member) | **DELETE** /lobbies/{lobby_id}/members/{user_id} | +*DefaultApi* | [**delete_message**](docs/DefaultApi.md#delete_message) | **DELETE** /channels/{channel_id}/messages/{message_id} | +*DefaultApi* | [**delete_my_message_reaction**](docs/DefaultApi.md#delete_my_message_reaction) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me | +*DefaultApi* | [**delete_original_webhook_message**](docs/DefaultApi.md#delete_original_webhook_message) | **DELETE** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +*DefaultApi* | [**delete_pin**](docs/DefaultApi.md#delete_pin) | **DELETE** /channels/{channel_id}/messages/pins/{message_id} | +*DefaultApi* | [**delete_stage_instance**](docs/DefaultApi.md#delete_stage_instance) | **DELETE** /stage-instances/{channel_id} | +*DefaultApi* | [**delete_thread_member**](docs/DefaultApi.md#delete_thread_member) | **DELETE** /channels/{channel_id}/thread-members/{user_id} | +*DefaultApi* | [**delete_user_message_reaction**](docs/DefaultApi.md#delete_user_message_reaction) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/{user_id} | +*DefaultApi* | [**delete_webhook**](docs/DefaultApi.md#delete_webhook) | **DELETE** /webhooks/{webhook_id} | +*DefaultApi* | [**delete_webhook_by_token**](docs/DefaultApi.md#delete_webhook_by_token) | **DELETE** /webhooks/{webhook_id}/{webhook_token} | +*DefaultApi* | [**delete_webhook_message**](docs/DefaultApi.md#delete_webhook_message) | **DELETE** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +*DefaultApi* | [**deprecated_create_pin**](docs/DefaultApi.md#deprecated_create_pin) | **PUT** /channels/{channel_id}/pins/{message_id} | +*DefaultApi* | [**deprecated_delete_pin**](docs/DefaultApi.md#deprecated_delete_pin) | **DELETE** /channels/{channel_id}/pins/{message_id} | +*DefaultApi* | [**deprecated_list_pins**](docs/DefaultApi.md#deprecated_list_pins) | **GET** /channels/{channel_id}/pins | +*DefaultApi* | [**edit_lobby**](docs/DefaultApi.md#edit_lobby) | **PATCH** /lobbies/{lobby_id} | +*DefaultApi* | [**edit_lobby_channel_link**](docs/DefaultApi.md#edit_lobby_channel_link) | **PATCH** /lobbies/{lobby_id}/channel-linking | +*DefaultApi* | [**execute_github_compatible_webhook**](docs/DefaultApi.md#execute_github_compatible_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token}/github | +*DefaultApi* | [**execute_slack_compatible_webhook**](docs/DefaultApi.md#execute_slack_compatible_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token}/slack | +*DefaultApi* | [**execute_webhook**](docs/DefaultApi.md#execute_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token} | +*DefaultApi* | [**follow_channel**](docs/DefaultApi.md#follow_channel) | **POST** /channels/{channel_id}/followers | +*DefaultApi* | [**get_active_guild_threads**](docs/DefaultApi.md#get_active_guild_threads) | **GET** /guilds/{guild_id}/threads/active | +*DefaultApi* | [**get_answer_voters**](docs/DefaultApi.md#get_answer_voters) | **GET** /channels/{channel_id}/polls/{message_id}/answers/{answer_id} | +*DefaultApi* | [**get_application**](docs/DefaultApi.md#get_application) | **GET** /applications/{application_id} | +*DefaultApi* | [**get_application_command**](docs/DefaultApi.md#get_application_command) | **GET** /applications/{application_id}/commands/{command_id} | +*DefaultApi* | [**get_application_emoji**](docs/DefaultApi.md#get_application_emoji) | **GET** /applications/{application_id}/emojis/{emoji_id} | +*DefaultApi* | [**get_application_role_connections_metadata**](docs/DefaultApi.md#get_application_role_connections_metadata) | **GET** /applications/{application_id}/role-connections/metadata | +*DefaultApi* | [**get_application_user_role_connection**](docs/DefaultApi.md#get_application_user_role_connection) | **GET** /users/@me/applications/{application_id}/role-connection | +*DefaultApi* | [**get_auto_moderation_rule**](docs/DefaultApi.md#get_auto_moderation_rule) | **GET** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +*DefaultApi* | [**get_bot_gateway**](docs/DefaultApi.md#get_bot_gateway) | **GET** /gateway/bot | +*DefaultApi* | [**get_channel**](docs/DefaultApi.md#get_channel) | **GET** /channels/{channel_id} | +*DefaultApi* | [**get_entitlement**](docs/DefaultApi.md#get_entitlement) | **GET** /applications/{application_id}/entitlements/{entitlement_id} | +*DefaultApi* | [**get_entitlements**](docs/DefaultApi.md#get_entitlements) | **GET** /applications/{application_id}/entitlements | +*DefaultApi* | [**get_gateway**](docs/DefaultApi.md#get_gateway) | **GET** /gateway | +*DefaultApi* | [**get_guild**](docs/DefaultApi.md#get_guild) | **GET** /guilds/{guild_id} | +*DefaultApi* | [**get_guild_application_command**](docs/DefaultApi.md#get_guild_application_command) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +*DefaultApi* | [**get_guild_application_command_permissions**](docs/DefaultApi.md#get_guild_application_command_permissions) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions | +*DefaultApi* | [**get_guild_ban**](docs/DefaultApi.md#get_guild_ban) | **GET** /guilds/{guild_id}/bans/{user_id} | +*DefaultApi* | [**get_guild_emoji**](docs/DefaultApi.md#get_guild_emoji) | **GET** /guilds/{guild_id}/emojis/{emoji_id} | +*DefaultApi* | [**get_guild_member**](docs/DefaultApi.md#get_guild_member) | **GET** /guilds/{guild_id}/members/{user_id} | +*DefaultApi* | [**get_guild_new_member_welcome**](docs/DefaultApi.md#get_guild_new_member_welcome) | **GET** /guilds/{guild_id}/new-member-welcome | +*DefaultApi* | [**get_guild_preview**](docs/DefaultApi.md#get_guild_preview) | **GET** /guilds/{guild_id}/preview | +*DefaultApi* | [**get_guild_role**](docs/DefaultApi.md#get_guild_role) | **GET** /guilds/{guild_id}/roles/{role_id} | +*DefaultApi* | [**get_guild_scheduled_event**](docs/DefaultApi.md#get_guild_scheduled_event) | **GET** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +*DefaultApi* | [**get_guild_soundboard_sound**](docs/DefaultApi.md#get_guild_soundboard_sound) | **GET** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +*DefaultApi* | [**get_guild_sticker**](docs/DefaultApi.md#get_guild_sticker) | **GET** /guilds/{guild_id}/stickers/{sticker_id} | +*DefaultApi* | [**get_guild_template**](docs/DefaultApi.md#get_guild_template) | **GET** /guilds/templates/{code} | +*DefaultApi* | [**get_guild_vanity_url**](docs/DefaultApi.md#get_guild_vanity_url) | **GET** /guilds/{guild_id}/vanity-url | +*DefaultApi* | [**get_guild_webhooks**](docs/DefaultApi.md#get_guild_webhooks) | **GET** /guilds/{guild_id}/webhooks | +*DefaultApi* | [**get_guild_welcome_screen**](docs/DefaultApi.md#get_guild_welcome_screen) | **GET** /guilds/{guild_id}/welcome-screen | +*DefaultApi* | [**get_guild_widget**](docs/DefaultApi.md#get_guild_widget) | **GET** /guilds/{guild_id}/widget.json | +*DefaultApi* | [**get_guild_widget_png**](docs/DefaultApi.md#get_guild_widget_png) | **GET** /guilds/{guild_id}/widget.png | +*DefaultApi* | [**get_guild_widget_settings**](docs/DefaultApi.md#get_guild_widget_settings) | **GET** /guilds/{guild_id}/widget | +*DefaultApi* | [**get_guilds_onboarding**](docs/DefaultApi.md#get_guilds_onboarding) | **GET** /guilds/{guild_id}/onboarding | +*DefaultApi* | [**get_lobby**](docs/DefaultApi.md#get_lobby) | **GET** /lobbies/{lobby_id} | +*DefaultApi* | [**get_lobby_messages**](docs/DefaultApi.md#get_lobby_messages) | **GET** /lobbies/{lobby_id}/messages | +*DefaultApi* | [**get_message**](docs/DefaultApi.md#get_message) | **GET** /channels/{channel_id}/messages/{message_id} | +*DefaultApi* | [**get_my_application**](docs/DefaultApi.md#get_my_application) | **GET** /applications/@me | +*DefaultApi* | [**get_my_guild_member**](docs/DefaultApi.md#get_my_guild_member) | **GET** /users/@me/guilds/{guild_id}/member | +*DefaultApi* | [**get_my_oauth2_application**](docs/DefaultApi.md#get_my_oauth2_application) | **GET** /oauth2/applications/@me | +*DefaultApi* | [**get_my_oauth2_authorization**](docs/DefaultApi.md#get_my_oauth2_authorization) | **GET** /oauth2/@me | +*DefaultApi* | [**get_my_user**](docs/DefaultApi.md#get_my_user) | **GET** /users/@me | +*DefaultApi* | [**get_openid_connect_userinfo**](docs/DefaultApi.md#get_openid_connect_userinfo) | **GET** /oauth2/userinfo | +*DefaultApi* | [**get_original_webhook_message**](docs/DefaultApi.md#get_original_webhook_message) | **GET** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +*DefaultApi* | [**get_public_keys**](docs/DefaultApi.md#get_public_keys) | **GET** /oauth2/keys | +*DefaultApi* | [**get_self_voice_state**](docs/DefaultApi.md#get_self_voice_state) | **GET** /guilds/{guild_id}/voice-states/@me | +*DefaultApi* | [**get_soundboard_default_sounds**](docs/DefaultApi.md#get_soundboard_default_sounds) | **GET** /soundboard-default-sounds | +*DefaultApi* | [**get_stage_instance**](docs/DefaultApi.md#get_stage_instance) | **GET** /stage-instances/{channel_id} | +*DefaultApi* | [**get_sticker**](docs/DefaultApi.md#get_sticker) | **GET** /stickers/{sticker_id} | +*DefaultApi* | [**get_sticker_pack**](docs/DefaultApi.md#get_sticker_pack) | **GET** /sticker-packs/{pack_id} | +*DefaultApi* | [**get_thread_member**](docs/DefaultApi.md#get_thread_member) | **GET** /channels/{channel_id}/thread-members/{user_id} | +*DefaultApi* | [**get_user**](docs/DefaultApi.md#get_user) | **GET** /users/{user_id} | +*DefaultApi* | [**get_voice_state**](docs/DefaultApi.md#get_voice_state) | **GET** /guilds/{guild_id}/voice-states/{user_id} | +*DefaultApi* | [**get_webhook**](docs/DefaultApi.md#get_webhook) | **GET** /webhooks/{webhook_id} | +*DefaultApi* | [**get_webhook_by_token**](docs/DefaultApi.md#get_webhook_by_token) | **GET** /webhooks/{webhook_id}/{webhook_token} | +*DefaultApi* | [**get_webhook_message**](docs/DefaultApi.md#get_webhook_message) | **GET** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +*DefaultApi* | [**invite_resolve**](docs/DefaultApi.md#invite_resolve) | **GET** /invites/{code} | +*DefaultApi* | [**invite_revoke**](docs/DefaultApi.md#invite_revoke) | **DELETE** /invites/{code} | +*DefaultApi* | [**join_thread**](docs/DefaultApi.md#join_thread) | **PUT** /channels/{channel_id}/thread-members/@me | +*DefaultApi* | [**leave_guild**](docs/DefaultApi.md#leave_guild) | **DELETE** /users/@me/guilds/{guild_id} | +*DefaultApi* | [**leave_lobby**](docs/DefaultApi.md#leave_lobby) | **DELETE** /lobbies/{lobby_id}/members/@me | +*DefaultApi* | [**leave_thread**](docs/DefaultApi.md#leave_thread) | **DELETE** /channels/{channel_id}/thread-members/@me | +*DefaultApi* | [**list_application_commands**](docs/DefaultApi.md#list_application_commands) | **GET** /applications/{application_id}/commands | +*DefaultApi* | [**list_application_emojis**](docs/DefaultApi.md#list_application_emojis) | **GET** /applications/{application_id}/emojis | +*DefaultApi* | [**list_auto_moderation_rules**](docs/DefaultApi.md#list_auto_moderation_rules) | **GET** /guilds/{guild_id}/auto-moderation/rules | +*DefaultApi* | [**list_channel_invites**](docs/DefaultApi.md#list_channel_invites) | **GET** /channels/{channel_id}/invites | +*DefaultApi* | [**list_channel_webhooks**](docs/DefaultApi.md#list_channel_webhooks) | **GET** /channels/{channel_id}/webhooks | +*DefaultApi* | [**list_guild_application_command_permissions**](docs/DefaultApi.md#list_guild_application_command_permissions) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/permissions | +*DefaultApi* | [**list_guild_application_commands**](docs/DefaultApi.md#list_guild_application_commands) | **GET** /applications/{application_id}/guilds/{guild_id}/commands | +*DefaultApi* | [**list_guild_audit_log_entries**](docs/DefaultApi.md#list_guild_audit_log_entries) | **GET** /guilds/{guild_id}/audit-logs | +*DefaultApi* | [**list_guild_bans**](docs/DefaultApi.md#list_guild_bans) | **GET** /guilds/{guild_id}/bans | +*DefaultApi* | [**list_guild_channels**](docs/DefaultApi.md#list_guild_channels) | **GET** /guilds/{guild_id}/channels | +*DefaultApi* | [**list_guild_emojis**](docs/DefaultApi.md#list_guild_emojis) | **GET** /guilds/{guild_id}/emojis | +*DefaultApi* | [**list_guild_integrations**](docs/DefaultApi.md#list_guild_integrations) | **GET** /guilds/{guild_id}/integrations | +*DefaultApi* | [**list_guild_invites**](docs/DefaultApi.md#list_guild_invites) | **GET** /guilds/{guild_id}/invites | +*DefaultApi* | [**list_guild_members**](docs/DefaultApi.md#list_guild_members) | **GET** /guilds/{guild_id}/members | +*DefaultApi* | [**list_guild_roles**](docs/DefaultApi.md#list_guild_roles) | **GET** /guilds/{guild_id}/roles | +*DefaultApi* | [**list_guild_scheduled_event_users**](docs/DefaultApi.md#list_guild_scheduled_event_users) | **GET** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users | +*DefaultApi* | [**list_guild_scheduled_events**](docs/DefaultApi.md#list_guild_scheduled_events) | **GET** /guilds/{guild_id}/scheduled-events | +*DefaultApi* | [**list_guild_soundboard_sounds**](docs/DefaultApi.md#list_guild_soundboard_sounds) | **GET** /guilds/{guild_id}/soundboard-sounds | +*DefaultApi* | [**list_guild_stickers**](docs/DefaultApi.md#list_guild_stickers) | **GET** /guilds/{guild_id}/stickers | +*DefaultApi* | [**list_guild_templates**](docs/DefaultApi.md#list_guild_templates) | **GET** /guilds/{guild_id}/templates | +*DefaultApi* | [**list_guild_voice_regions**](docs/DefaultApi.md#list_guild_voice_regions) | **GET** /guilds/{guild_id}/regions | +*DefaultApi* | [**list_message_reactions_by_emoji**](docs/DefaultApi.md#list_message_reactions_by_emoji) | **GET** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} | +*DefaultApi* | [**list_messages**](docs/DefaultApi.md#list_messages) | **GET** /channels/{channel_id}/messages | +*DefaultApi* | [**list_my_connections**](docs/DefaultApi.md#list_my_connections) | **GET** /users/@me/connections | +*DefaultApi* | [**list_my_guilds**](docs/DefaultApi.md#list_my_guilds) | **GET** /users/@me/guilds | +*DefaultApi* | [**list_my_private_archived_threads**](docs/DefaultApi.md#list_my_private_archived_threads) | **GET** /channels/{channel_id}/users/@me/threads/archived/private | +*DefaultApi* | [**list_pins**](docs/DefaultApi.md#list_pins) | **GET** /channels/{channel_id}/messages/pins | +*DefaultApi* | [**list_private_archived_threads**](docs/DefaultApi.md#list_private_archived_threads) | **GET** /channels/{channel_id}/threads/archived/private | +*DefaultApi* | [**list_public_archived_threads**](docs/DefaultApi.md#list_public_archived_threads) | **GET** /channels/{channel_id}/threads/archived/public | +*DefaultApi* | [**list_sticker_packs**](docs/DefaultApi.md#list_sticker_packs) | **GET** /sticker-packs | +*DefaultApi* | [**list_thread_members**](docs/DefaultApi.md#list_thread_members) | **GET** /channels/{channel_id}/thread-members | +*DefaultApi* | [**list_voice_regions**](docs/DefaultApi.md#list_voice_regions) | **GET** /voice/regions | +*DefaultApi* | [**partner_sdk_token**](docs/DefaultApi.md#partner_sdk_token) | **POST** /partner-sdk/token | +*DefaultApi* | [**partner_sdk_unmerge_provisional_account**](docs/DefaultApi.md#partner_sdk_unmerge_provisional_account) | **POST** /partner-sdk/provisional-accounts/unmerge | +*DefaultApi* | [**poll_expire**](docs/DefaultApi.md#poll_expire) | **POST** /channels/{channel_id}/polls/{message_id}/expire | +*DefaultApi* | [**preview_prune_guild**](docs/DefaultApi.md#preview_prune_guild) | **GET** /guilds/{guild_id}/prune | +*DefaultApi* | [**prune_guild**](docs/DefaultApi.md#prune_guild) | **POST** /guilds/{guild_id}/prune | +*DefaultApi* | [**put_guilds_onboarding**](docs/DefaultApi.md#put_guilds_onboarding) | **PUT** /guilds/{guild_id}/onboarding | +*DefaultApi* | [**search_guild_members**](docs/DefaultApi.md#search_guild_members) | **GET** /guilds/{guild_id}/members/search | +*DefaultApi* | [**send_soundboard_sound**](docs/DefaultApi.md#send_soundboard_sound) | **POST** /channels/{channel_id}/send-soundboard-sound | +*DefaultApi* | [**set_channel_permission_overwrite**](docs/DefaultApi.md#set_channel_permission_overwrite) | **PUT** /channels/{channel_id}/permissions/{overwrite_id} | +*DefaultApi* | [**set_guild_application_command_permissions**](docs/DefaultApi.md#set_guild_application_command_permissions) | **PUT** /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions | +*DefaultApi* | [**set_guild_mfa_level**](docs/DefaultApi.md#set_guild_mfa_level) | **POST** /guilds/{guild_id}/mfa | +*DefaultApi* | [**sync_guild_template**](docs/DefaultApi.md#sync_guild_template) | **PUT** /guilds/{guild_id}/templates/{code} | +*DefaultApi* | [**thread_search**](docs/DefaultApi.md#thread_search) | **GET** /channels/{channel_id}/threads/search | +*DefaultApi* | [**trigger_typing_indicator**](docs/DefaultApi.md#trigger_typing_indicator) | **POST** /channels/{channel_id}/typing | +*DefaultApi* | [**unban_user_from_guild**](docs/DefaultApi.md#unban_user_from_guild) | **DELETE** /guilds/{guild_id}/bans/{user_id} | +*DefaultApi* | [**update_application**](docs/DefaultApi.md#update_application) | **PATCH** /applications/{application_id} | +*DefaultApi* | [**update_application_command**](docs/DefaultApi.md#update_application_command) | **PATCH** /applications/{application_id}/commands/{command_id} | +*DefaultApi* | [**update_application_emoji**](docs/DefaultApi.md#update_application_emoji) | **PATCH** /applications/{application_id}/emojis/{emoji_id} | +*DefaultApi* | [**update_application_role_connections_metadata**](docs/DefaultApi.md#update_application_role_connections_metadata) | **PUT** /applications/{application_id}/role-connections/metadata | +*DefaultApi* | [**update_application_user_role_connection**](docs/DefaultApi.md#update_application_user_role_connection) | **PUT** /users/@me/applications/{application_id}/role-connection | +*DefaultApi* | [**update_auto_moderation_rule**](docs/DefaultApi.md#update_auto_moderation_rule) | **PATCH** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +*DefaultApi* | [**update_channel**](docs/DefaultApi.md#update_channel) | **PATCH** /channels/{channel_id} | +*DefaultApi* | [**update_guild**](docs/DefaultApi.md#update_guild) | **PATCH** /guilds/{guild_id} | +*DefaultApi* | [**update_guild_application_command**](docs/DefaultApi.md#update_guild_application_command) | **PATCH** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +*DefaultApi* | [**update_guild_emoji**](docs/DefaultApi.md#update_guild_emoji) | **PATCH** /guilds/{guild_id}/emojis/{emoji_id} | +*DefaultApi* | [**update_guild_member**](docs/DefaultApi.md#update_guild_member) | **PATCH** /guilds/{guild_id}/members/{user_id} | +*DefaultApi* | [**update_guild_role**](docs/DefaultApi.md#update_guild_role) | **PATCH** /guilds/{guild_id}/roles/{role_id} | +*DefaultApi* | [**update_guild_scheduled_event**](docs/DefaultApi.md#update_guild_scheduled_event) | **PATCH** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +*DefaultApi* | [**update_guild_soundboard_sound**](docs/DefaultApi.md#update_guild_soundboard_sound) | **PATCH** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +*DefaultApi* | [**update_guild_sticker**](docs/DefaultApi.md#update_guild_sticker) | **PATCH** /guilds/{guild_id}/stickers/{sticker_id} | +*DefaultApi* | [**update_guild_template**](docs/DefaultApi.md#update_guild_template) | **PATCH** /guilds/{guild_id}/templates/{code} | +*DefaultApi* | [**update_guild_welcome_screen**](docs/DefaultApi.md#update_guild_welcome_screen) | **PATCH** /guilds/{guild_id}/welcome-screen | +*DefaultApi* | [**update_guild_widget_settings**](docs/DefaultApi.md#update_guild_widget_settings) | **PATCH** /guilds/{guild_id}/widget | +*DefaultApi* | [**update_message**](docs/DefaultApi.md#update_message) | **PATCH** /channels/{channel_id}/messages/{message_id} | +*DefaultApi* | [**update_my_application**](docs/DefaultApi.md#update_my_application) | **PATCH** /applications/@me | +*DefaultApi* | [**update_my_guild_member**](docs/DefaultApi.md#update_my_guild_member) | **PATCH** /guilds/{guild_id}/members/@me | +*DefaultApi* | [**update_my_user**](docs/DefaultApi.md#update_my_user) | **PATCH** /users/@me | +*DefaultApi* | [**update_original_webhook_message**](docs/DefaultApi.md#update_original_webhook_message) | **PATCH** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +*DefaultApi* | [**update_self_voice_state**](docs/DefaultApi.md#update_self_voice_state) | **PATCH** /guilds/{guild_id}/voice-states/@me | +*DefaultApi* | [**update_stage_instance**](docs/DefaultApi.md#update_stage_instance) | **PATCH** /stage-instances/{channel_id} | +*DefaultApi* | [**update_voice_state**](docs/DefaultApi.md#update_voice_state) | **PATCH** /guilds/{guild_id}/voice-states/{user_id} | +*DefaultApi* | [**update_webhook**](docs/DefaultApi.md#update_webhook) | **PATCH** /webhooks/{webhook_id} | +*DefaultApi* | [**update_webhook_by_token**](docs/DefaultApi.md#update_webhook_by_token) | **PATCH** /webhooks/{webhook_id}/{webhook_token} | +*DefaultApi* | [**update_webhook_message**](docs/DefaultApi.md#update_webhook_message) | **PATCH** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +*DefaultApi* | [**upload_application_attachment**](docs/DefaultApi.md#upload_application_attachment) | **POST** /applications/{application_id}/attachment | + + +## Documentation For Models + + - [AccountResponse](docs/AccountResponse.md) + - [ActionRowComponentForMessageRequest](docs/ActionRowComponentForMessageRequest.md) + - [ActionRowComponentForMessageRequestComponentsInner](docs/ActionRowComponentForMessageRequestComponentsInner.md) + - [ActionRowComponentForModalRequest](docs/ActionRowComponentForModalRequest.md) + - [ActionRowComponentResponse](docs/ActionRowComponentResponse.md) + - [ActionRowComponentResponseComponentsInner](docs/ActionRowComponentResponseComponentsInner.md) + - [ActivitiesAttachmentResponse](docs/ActivitiesAttachmentResponse.md) + - [AddGroupDmUser201Response](docs/AddGroupDmUser201Response.md) + - [AddGroupDmUserRequest](docs/AddGroupDmUserRequest.md) + - [AddGuildMemberRequest](docs/AddGuildMemberRequest.md) + - [AddLobbyMemberRequest](docs/AddLobbyMemberRequest.md) + - [ApplicationCommandAttachmentOption](docs/ApplicationCommandAttachmentOption.md) + - [ApplicationCommandAttachmentOptionResponse](docs/ApplicationCommandAttachmentOptionResponse.md) + - [ApplicationCommandAutocompleteCallbackRequest](docs/ApplicationCommandAutocompleteCallbackRequest.md) + - [ApplicationCommandAutocompleteCallbackRequestData](docs/ApplicationCommandAutocompleteCallbackRequestData.md) + - [ApplicationCommandBooleanOption](docs/ApplicationCommandBooleanOption.md) + - [ApplicationCommandBooleanOptionResponse](docs/ApplicationCommandBooleanOptionResponse.md) + - [ApplicationCommandChannelOption](docs/ApplicationCommandChannelOption.md) + - [ApplicationCommandChannelOptionResponse](docs/ApplicationCommandChannelOptionResponse.md) + - [ApplicationCommandCreateRequest](docs/ApplicationCommandCreateRequest.md) + - [ApplicationCommandCreateRequestOptionsInner](docs/ApplicationCommandCreateRequestOptionsInner.md) + - [ApplicationCommandIntegerOption](docs/ApplicationCommandIntegerOption.md) + - [ApplicationCommandIntegerOptionResponse](docs/ApplicationCommandIntegerOptionResponse.md) + - [ApplicationCommandInteractionMetadataResponse](docs/ApplicationCommandInteractionMetadataResponse.md) + - [ApplicationCommandMentionableOption](docs/ApplicationCommandMentionableOption.md) + - [ApplicationCommandMentionableOptionResponse](docs/ApplicationCommandMentionableOptionResponse.md) + - [ApplicationCommandNumberOption](docs/ApplicationCommandNumberOption.md) + - [ApplicationCommandNumberOptionResponse](docs/ApplicationCommandNumberOptionResponse.md) + - [ApplicationCommandOptionIntegerChoice](docs/ApplicationCommandOptionIntegerChoice.md) + - [ApplicationCommandOptionIntegerChoiceResponse](docs/ApplicationCommandOptionIntegerChoiceResponse.md) + - [ApplicationCommandOptionNumberChoice](docs/ApplicationCommandOptionNumberChoice.md) + - [ApplicationCommandOptionNumberChoiceResponse](docs/ApplicationCommandOptionNumberChoiceResponse.md) + - [ApplicationCommandOptionStringChoice](docs/ApplicationCommandOptionStringChoice.md) + - [ApplicationCommandOptionStringChoiceResponse](docs/ApplicationCommandOptionStringChoiceResponse.md) + - [ApplicationCommandPatchRequestPartial](docs/ApplicationCommandPatchRequestPartial.md) + - [ApplicationCommandPermission](docs/ApplicationCommandPermission.md) + - [ApplicationCommandResponse](docs/ApplicationCommandResponse.md) + - [ApplicationCommandResponseOptionsInner](docs/ApplicationCommandResponseOptionsInner.md) + - [ApplicationCommandRoleOption](docs/ApplicationCommandRoleOption.md) + - [ApplicationCommandRoleOptionResponse](docs/ApplicationCommandRoleOptionResponse.md) + - [ApplicationCommandStringOption](docs/ApplicationCommandStringOption.md) + - [ApplicationCommandStringOptionResponse](docs/ApplicationCommandStringOptionResponse.md) + - [ApplicationCommandSubcommandGroupOption](docs/ApplicationCommandSubcommandGroupOption.md) + - [ApplicationCommandSubcommandGroupOptionResponse](docs/ApplicationCommandSubcommandGroupOptionResponse.md) + - [ApplicationCommandSubcommandOption](docs/ApplicationCommandSubcommandOption.md) + - [ApplicationCommandSubcommandOptionOptionsInner](docs/ApplicationCommandSubcommandOptionOptionsInner.md) + - [ApplicationCommandSubcommandOptionResponse](docs/ApplicationCommandSubcommandOptionResponse.md) + - [ApplicationCommandSubcommandOptionResponseOptionsInner](docs/ApplicationCommandSubcommandOptionResponseOptionsInner.md) + - [ApplicationCommandUpdateRequest](docs/ApplicationCommandUpdateRequest.md) + - [ApplicationCommandUserOption](docs/ApplicationCommandUserOption.md) + - [ApplicationCommandUserOptionResponse](docs/ApplicationCommandUserOptionResponse.md) + - [ApplicationFormPartial](docs/ApplicationFormPartial.md) + - [ApplicationFormPartialDescription](docs/ApplicationFormPartialDescription.md) + - [ApplicationFormPartialIntegrationTypesConfigValue](docs/ApplicationFormPartialIntegrationTypesConfigValue.md) + - [ApplicationIncomingWebhookResponse](docs/ApplicationIncomingWebhookResponse.md) + - [ApplicationIntegrationTypeConfiguration](docs/ApplicationIntegrationTypeConfiguration.md) + - [ApplicationIntegrationTypeConfigurationResponse](docs/ApplicationIntegrationTypeConfigurationResponse.md) + - [ApplicationOAuth2InstallParams](docs/ApplicationOAuth2InstallParams.md) + - [ApplicationOAuth2InstallParamsResponse](docs/ApplicationOAuth2InstallParamsResponse.md) + - [ApplicationResponse](docs/ApplicationResponse.md) + - [ApplicationRoleConnectionsMetadataItemRequest](docs/ApplicationRoleConnectionsMetadataItemRequest.md) + - [ApplicationRoleConnectionsMetadataItemResponse](docs/ApplicationRoleConnectionsMetadataItemResponse.md) + - [ApplicationUserRoleConnectionResponse](docs/ApplicationUserRoleConnectionResponse.md) + - [AttachmentResponse](docs/AttachmentResponse.md) + - [AuditLogEntryResponse](docs/AuditLogEntryResponse.md) + - [AuditLogObjectChangeResponse](docs/AuditLogObjectChangeResponse.md) + - [BanUserFromGuildRequest](docs/BanUserFromGuildRequest.md) + - [BaseCreateMessageCreateRequest](docs/BaseCreateMessageCreateRequest.md) + - [BaseCreateMessageCreateRequestComponentsInner](docs/BaseCreateMessageCreateRequestComponentsInner.md) + - [BasicApplicationResponse](docs/BasicApplicationResponse.md) + - [BasicMessageResponse](docs/BasicMessageResponse.md) + - [BasicMessageResponseComponentsInner](docs/BasicMessageResponseComponentsInner.md) + - [BasicMessageResponseInteractionMetadata](docs/BasicMessageResponseInteractionMetadata.md) + - [BasicMessageResponseNonce](docs/BasicMessageResponseNonce.md) + - [BlockMessageAction](docs/BlockMessageAction.md) + - [BlockMessageActionMetadata](docs/BlockMessageActionMetadata.md) + - [BlockMessageActionMetadataResponse](docs/BlockMessageActionMetadataResponse.md) + - [BlockMessageActionResponse](docs/BlockMessageActionResponse.md) + - [BotAccountPatchRequest](docs/BotAccountPatchRequest.md) + - [BulkBanUsersFromGuildRequest](docs/BulkBanUsersFromGuildRequest.md) + - [BulkBanUsersResponse](docs/BulkBanUsersResponse.md) + - [BulkDeleteMessagesRequest](docs/BulkDeleteMessagesRequest.md) + - [BulkLobbyMemberRequest](docs/BulkLobbyMemberRequest.md) + - [BulkUpdateGuildChannelsRequestInner](docs/BulkUpdateGuildChannelsRequestInner.md) + - [BulkUpdateGuildRolesRequestInner](docs/BulkUpdateGuildRolesRequestInner.md) + - [ButtonComponentForMessageRequest](docs/ButtonComponentForMessageRequest.md) + - [ButtonComponentResponse](docs/ButtonComponentResponse.md) + - [ChannelFollowerResponse](docs/ChannelFollowerResponse.md) + - [ChannelFollowerWebhookResponse](docs/ChannelFollowerWebhookResponse.md) + - [ChannelPermissionOverwriteRequest](docs/ChannelPermissionOverwriteRequest.md) + - [ChannelPermissionOverwriteResponse](docs/ChannelPermissionOverwriteResponse.md) + - [ChannelSelectComponentForMessageRequest](docs/ChannelSelectComponentForMessageRequest.md) + - [ChannelSelectComponentResponse](docs/ChannelSelectComponentResponse.md) + - [ChannelSelectDefaultValue](docs/ChannelSelectDefaultValue.md) + - [ChannelSelectDefaultValueResponse](docs/ChannelSelectDefaultValueResponse.md) + - [CommandPermissionResponse](docs/CommandPermissionResponse.md) + - [CommandPermissionsResponse](docs/CommandPermissionsResponse.md) + - [ComponentEmojiForMessageRequest](docs/ComponentEmojiForMessageRequest.md) + - [ComponentEmojiResponse](docs/ComponentEmojiResponse.md) + - [ConnectedAccountGuildResponse](docs/ConnectedAccountGuildResponse.md) + - [ConnectedAccountIntegrationResponse](docs/ConnectedAccountIntegrationResponse.md) + - [ConnectedAccountResponse](docs/ConnectedAccountResponse.md) + - [ContainerComponentForMessageRequest](docs/ContainerComponentForMessageRequest.md) + - [ContainerComponentForMessageRequestComponentsInner](docs/ContainerComponentForMessageRequestComponentsInner.md) + - [ContainerComponentResponse](docs/ContainerComponentResponse.md) + - [ContainerComponentResponseComponentsInner](docs/ContainerComponentResponseComponentsInner.md) + - [CreateApplicationEmojiRequest](docs/CreateApplicationEmojiRequest.md) + - [CreateAutoModerationRule200Response](docs/CreateAutoModerationRule200Response.md) + - [CreateAutoModerationRuleRequest](docs/CreateAutoModerationRuleRequest.md) + - [CreateChannelInviteRequest](docs/CreateChannelInviteRequest.md) + - [CreateEntitlementRequestData](docs/CreateEntitlementRequestData.md) + - [CreateForumThreadRequest](docs/CreateForumThreadRequest.md) + - [CreateGroupDmInviteRequest](docs/CreateGroupDmInviteRequest.md) + - [CreateGuildChannelRequest](docs/CreateGuildChannelRequest.md) + - [CreateGuildEmojiRequest](docs/CreateGuildEmojiRequest.md) + - [CreateGuildFromTemplateRequest](docs/CreateGuildFromTemplateRequest.md) + - [CreateGuildInviteRequest](docs/CreateGuildInviteRequest.md) + - [CreateGuildRequestChannelItem](docs/CreateGuildRequestChannelItem.md) + - [CreateGuildRequestRoleItem](docs/CreateGuildRequestRoleItem.md) + - [CreateGuildRoleRequest](docs/CreateGuildRoleRequest.md) + - [CreateGuildScheduledEventRequest](docs/CreateGuildScheduledEventRequest.md) + - [CreateGuildTemplateRequest](docs/CreateGuildTemplateRequest.md) + - [CreateInteractionResponseRequest](docs/CreateInteractionResponseRequest.md) + - [CreateLobbyRequest](docs/CreateLobbyRequest.md) + - [CreateMessageInteractionCallbackRequest](docs/CreateMessageInteractionCallbackRequest.md) + - [CreateMessageInteractionCallbackResponse](docs/CreateMessageInteractionCallbackResponse.md) + - [CreateOrJoinLobbyRequest](docs/CreateOrJoinLobbyRequest.md) + - [CreateOrUpdateThreadTagRequest](docs/CreateOrUpdateThreadTagRequest.md) + - [CreatePrivateChannelRequest](docs/CreatePrivateChannelRequest.md) + - [CreateStageInstanceRequest](docs/CreateStageInstanceRequest.md) + - [CreateTextThreadWithMessageRequest](docs/CreateTextThreadWithMessageRequest.md) + - [CreateTextThreadWithoutMessageRequest](docs/CreateTextThreadWithoutMessageRequest.md) + - [CreateThreadRequest](docs/CreateThreadRequest.md) + - [CreateWebhookRequest](docs/CreateWebhookRequest.md) + - [CreatedThreadResponse](docs/CreatedThreadResponse.md) + - [DefaultKeywordListTriggerMetadata](docs/DefaultKeywordListTriggerMetadata.md) + - [DefaultKeywordListTriggerMetadataResponse](docs/DefaultKeywordListTriggerMetadataResponse.md) + - [DefaultKeywordListUpsertRequest](docs/DefaultKeywordListUpsertRequest.md) + - [DefaultKeywordListUpsertRequestActionsInner](docs/DefaultKeywordListUpsertRequestActionsInner.md) + - [DefaultKeywordListUpsertRequestPartial](docs/DefaultKeywordListUpsertRequestPartial.md) + - [DefaultKeywordRuleResponse](docs/DefaultKeywordRuleResponse.md) + - [DefaultKeywordRuleResponseActionsInner](docs/DefaultKeywordRuleResponseActionsInner.md) + - [DefaultReactionEmojiResponse](docs/DefaultReactionEmojiResponse.md) + - [DiscordIntegrationResponse](docs/DiscordIntegrationResponse.md) + - [EditLobbyChannelLinkRequest](docs/EditLobbyChannelLinkRequest.md) + - [EmbeddedActivityInstance](docs/EmbeddedActivityInstance.md) + - [EmbeddedActivityInstanceLocation](docs/EmbeddedActivityInstanceLocation.md) + - [EmojiResponse](docs/EmojiResponse.md) + - [EntitlementResponse](docs/EntitlementResponse.md) + - [EntityMetadataExternal](docs/EntityMetadataExternal.md) + - [EntityMetadataExternalResponse](docs/EntityMetadataExternalResponse.md) + - [Error](docs/Error.md) + - [ErrorDetails](docs/ErrorDetails.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [ExecuteWebhookRequest](docs/ExecuteWebhookRequest.md) + - [ExternalConnectionIntegrationResponse](docs/ExternalConnectionIntegrationResponse.md) + - [ExternalScheduledEventCreateRequest](docs/ExternalScheduledEventCreateRequest.md) + - [ExternalScheduledEventPatchRequestPartial](docs/ExternalScheduledEventPatchRequestPartial.md) + - [ExternalScheduledEventResponse](docs/ExternalScheduledEventResponse.md) + - [FileComponentForMessageRequest](docs/FileComponentForMessageRequest.md) + - [FileComponentResponse](docs/FileComponentResponse.md) + - [FlagToChannelAction](docs/FlagToChannelAction.md) + - [FlagToChannelActionMetadata](docs/FlagToChannelActionMetadata.md) + - [FlagToChannelActionMetadataResponse](docs/FlagToChannelActionMetadataResponse.md) + - [FlagToChannelActionResponse](docs/FlagToChannelActionResponse.md) + - [FollowChannelRequest](docs/FollowChannelRequest.md) + - [ForumTagResponse](docs/ForumTagResponse.md) + - [FriendInviteResponse](docs/FriendInviteResponse.md) + - [GatewayBotResponse](docs/GatewayBotResponse.md) + - [GatewayBotSessionStartLimitResponse](docs/GatewayBotSessionStartLimitResponse.md) + - [GatewayResponse](docs/GatewayResponse.md) + - [GetChannel200Response](docs/GetChannel200Response.md) + - [GetEntitlementsSkuIdsParameter](docs/GetEntitlementsSkuIdsParameter.md) + - [GetSticker200Response](docs/GetSticker200Response.md) + - [GithubAuthor](docs/GithubAuthor.md) + - [GithubCheckApp](docs/GithubCheckApp.md) + - [GithubCheckPullRequest](docs/GithubCheckPullRequest.md) + - [GithubCheckRun](docs/GithubCheckRun.md) + - [GithubCheckRunOutput](docs/GithubCheckRunOutput.md) + - [GithubCheckSuite](docs/GithubCheckSuite.md) + - [GithubComment](docs/GithubComment.md) + - [GithubCommit](docs/GithubCommit.md) + - [GithubDiscussion](docs/GithubDiscussion.md) + - [GithubIssue](docs/GithubIssue.md) + - [GithubRelease](docs/GithubRelease.md) + - [GithubRepository](docs/GithubRepository.md) + - [GithubReview](docs/GithubReview.md) + - [GithubUser](docs/GithubUser.md) + - [GithubWebhook](docs/GithubWebhook.md) + - [GroupDmInviteResponse](docs/GroupDmInviteResponse.md) + - [GuildAuditLogResponse](docs/GuildAuditLogResponse.md) + - [GuildAuditLogResponseIntegrationsInner](docs/GuildAuditLogResponseIntegrationsInner.md) + - [GuildBanResponse](docs/GuildBanResponse.md) + - [GuildChannelLocation](docs/GuildChannelLocation.md) + - [GuildChannelResponse](docs/GuildChannelResponse.md) + - [GuildCreateRequest](docs/GuildCreateRequest.md) + - [GuildHomeSettingsResponse](docs/GuildHomeSettingsResponse.md) + - [GuildIncomingWebhookResponse](docs/GuildIncomingWebhookResponse.md) + - [GuildInviteResponse](docs/GuildInviteResponse.md) + - [GuildMemberResponse](docs/GuildMemberResponse.md) + - [GuildMfaLevelResponse](docs/GuildMfaLevelResponse.md) + - [GuildOnboardingResponse](docs/GuildOnboardingResponse.md) + - [GuildPatchRequestPartial](docs/GuildPatchRequestPartial.md) + - [GuildPreviewResponse](docs/GuildPreviewResponse.md) + - [GuildProductPurchaseResponse](docs/GuildProductPurchaseResponse.md) + - [GuildPruneResponse](docs/GuildPruneResponse.md) + - [GuildResponse](docs/GuildResponse.md) + - [GuildRoleResponse](docs/GuildRoleResponse.md) + - [GuildRoleTagsResponse](docs/GuildRoleTagsResponse.md) + - [GuildStickerResponse](docs/GuildStickerResponse.md) + - [GuildSubscriptionIntegrationResponse](docs/GuildSubscriptionIntegrationResponse.md) + - [GuildTemplateChannelResponse](docs/GuildTemplateChannelResponse.md) + - [GuildTemplateChannelTags](docs/GuildTemplateChannelTags.md) + - [GuildTemplateResponse](docs/GuildTemplateResponse.md) + - [GuildTemplateRoleResponse](docs/GuildTemplateRoleResponse.md) + - [GuildTemplateSnapshotResponse](docs/GuildTemplateSnapshotResponse.md) + - [GuildWelcomeChannel](docs/GuildWelcomeChannel.md) + - [GuildWelcomeScreenChannelResponse](docs/GuildWelcomeScreenChannelResponse.md) + - [GuildWelcomeScreenResponse](docs/GuildWelcomeScreenResponse.md) + - [GuildWithCountsResponse](docs/GuildWithCountsResponse.md) + - [IncomingWebhookInteractionRequest](docs/IncomingWebhookInteractionRequest.md) + - [IncomingWebhookRequestPartial](docs/IncomingWebhookRequestPartial.md) + - [IncomingWebhookUpdateForInteractionCallbackRequestPartial](docs/IncomingWebhookUpdateForInteractionCallbackRequestPartial.md) + - [IncomingWebhookUpdateRequestPartial](docs/IncomingWebhookUpdateRequestPartial.md) + - [InnerErrors](docs/InnerErrors.md) + - [IntegrationApplicationResponse](docs/IntegrationApplicationResponse.md) + - [InteractionApplicationCommandAutocompleteCallbackIntegerData](docs/InteractionApplicationCommandAutocompleteCallbackIntegerData.md) + - [InteractionApplicationCommandAutocompleteCallbackNumberData](docs/InteractionApplicationCommandAutocompleteCallbackNumberData.md) + - [InteractionApplicationCommandAutocompleteCallbackStringData](docs/InteractionApplicationCommandAutocompleteCallbackStringData.md) + - [InteractionCallbackResponse](docs/InteractionCallbackResponse.md) + - [InteractionCallbackResponseResource](docs/InteractionCallbackResponseResource.md) + - [InteractionResponse](docs/InteractionResponse.md) + - [InviteApplicationResponse](docs/InviteApplicationResponse.md) + - [InviteChannelRecipientResponse](docs/InviteChannelRecipientResponse.md) + - [InviteChannelResponse](docs/InviteChannelResponse.md) + - [InviteGuildResponse](docs/InviteGuildResponse.md) + - [KeywordRuleResponse](docs/KeywordRuleResponse.md) + - [KeywordTriggerMetadata](docs/KeywordTriggerMetadata.md) + - [KeywordTriggerMetadataResponse](docs/KeywordTriggerMetadataResponse.md) + - [KeywordUpsertRequest](docs/KeywordUpsertRequest.md) + - [KeywordUpsertRequestPartial](docs/KeywordUpsertRequestPartial.md) + - [LaunchActivityInteractionCallbackRequest](docs/LaunchActivityInteractionCallbackRequest.md) + - [LaunchActivityInteractionCallbackResponse](docs/LaunchActivityInteractionCallbackResponse.md) + - [ListApplicationEmojisResponse](docs/ListApplicationEmojisResponse.md) + - [ListAutoModerationRules200ResponseInner](docs/ListAutoModerationRules200ResponseInner.md) + - [ListChannelInvites200ResponseInner](docs/ListChannelInvites200ResponseInner.md) + - [ListChannelWebhooks200ResponseInner](docs/ListChannelWebhooks200ResponseInner.md) + - [ListGuildIntegrations200ResponseInner](docs/ListGuildIntegrations200ResponseInner.md) + - [ListGuildScheduledEvents200ResponseInner](docs/ListGuildScheduledEvents200ResponseInner.md) + - [ListGuildSoundboardSoundsResponse](docs/ListGuildSoundboardSoundsResponse.md) + - [LobbyMemberRequest](docs/LobbyMemberRequest.md) + - [LobbyMemberResponse](docs/LobbyMemberResponse.md) + - [LobbyMessageResponse](docs/LobbyMessageResponse.md) + - [LobbyResponse](docs/LobbyResponse.md) + - [MediaGalleryComponentForMessageRequest](docs/MediaGalleryComponentForMessageRequest.md) + - [MediaGalleryComponentResponse](docs/MediaGalleryComponentResponse.md) + - [MediaGalleryItemRequest](docs/MediaGalleryItemRequest.md) + - [MediaGalleryItemResponse](docs/MediaGalleryItemResponse.md) + - [MentionSpamRuleResponse](docs/MentionSpamRuleResponse.md) + - [MentionSpamTriggerMetadata](docs/MentionSpamTriggerMetadata.md) + - [MentionSpamTriggerMetadataResponse](docs/MentionSpamTriggerMetadataResponse.md) + - [MentionSpamUpsertRequest](docs/MentionSpamUpsertRequest.md) + - [MentionSpamUpsertRequestPartial](docs/MentionSpamUpsertRequestPartial.md) + - [MentionableSelectComponentForMessageRequest](docs/MentionableSelectComponentForMessageRequest.md) + - [MentionableSelectComponentForMessageRequestDefaultValuesInner](docs/MentionableSelectComponentForMessageRequestDefaultValuesInner.md) + - [MentionableSelectComponentResponse](docs/MentionableSelectComponentResponse.md) + - [MentionableSelectComponentResponseDefaultValuesInner](docs/MentionableSelectComponentResponseDefaultValuesInner.md) + - [MessageAllowedMentionsRequest](docs/MessageAllowedMentionsRequest.md) + - [MessageAttachmentRequest](docs/MessageAttachmentRequest.md) + - [MessageAttachmentResponse](docs/MessageAttachmentResponse.md) + - [MessageCallResponse](docs/MessageCallResponse.md) + - [MessageComponentInteractionMetadataResponse](docs/MessageComponentInteractionMetadataResponse.md) + - [MessageCreateRequest](docs/MessageCreateRequest.md) + - [MessageEditRequestPartial](docs/MessageEditRequestPartial.md) + - [MessageEmbedAuthorResponse](docs/MessageEmbedAuthorResponse.md) + - [MessageEmbedFieldResponse](docs/MessageEmbedFieldResponse.md) + - [MessageEmbedFooterResponse](docs/MessageEmbedFooterResponse.md) + - [MessageEmbedImageResponse](docs/MessageEmbedImageResponse.md) + - [MessageEmbedProviderResponse](docs/MessageEmbedProviderResponse.md) + - [MessageEmbedResponse](docs/MessageEmbedResponse.md) + - [MessageEmbedVideoResponse](docs/MessageEmbedVideoResponse.md) + - [MessageInteractionResponse](docs/MessageInteractionResponse.md) + - [MessageMentionChannelResponse](docs/MessageMentionChannelResponse.md) + - [MessageReactionCountDetailsResponse](docs/MessageReactionCountDetailsResponse.md) + - [MessageReactionEmojiResponse](docs/MessageReactionEmojiResponse.md) + - [MessageReactionResponse](docs/MessageReactionResponse.md) + - [MessageReferenceRequest](docs/MessageReferenceRequest.md) + - [MessageReferenceResponse](docs/MessageReferenceResponse.md) + - [MessageResponse](docs/MessageResponse.md) + - [MessageRoleSubscriptionDataResponse](docs/MessageRoleSubscriptionDataResponse.md) + - [MessageSnapshotResponse](docs/MessageSnapshotResponse.md) + - [MessageStickerItemResponse](docs/MessageStickerItemResponse.md) + - [MinimalContentMessageResponse](docs/MinimalContentMessageResponse.md) + - [MlSpamRuleResponse](docs/MlSpamRuleResponse.md) + - [MlSpamUpsertRequest](docs/MlSpamUpsertRequest.md) + - [MlSpamUpsertRequestPartial](docs/MlSpamUpsertRequestPartial.md) + - [ModalInteractionCallbackRequest](docs/ModalInteractionCallbackRequest.md) + - [ModalInteractionCallbackRequestData](docs/ModalInteractionCallbackRequestData.md) + - [ModalSubmitInteractionMetadataResponse](docs/ModalSubmitInteractionMetadataResponse.md) + - [ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata](docs/ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata.md) + - [MyGuildResponse](docs/MyGuildResponse.md) + - [NewMemberActionResponse](docs/NewMemberActionResponse.md) + - [OAuth2GetAuthorizationResponse](docs/OAuth2GetAuthorizationResponse.md) + - [OAuth2GetKeys](docs/OAuth2GetKeys.md) + - [OAuth2GetOpenIdConnectUserInfoResponse](docs/OAuth2GetOpenIdConnectUserInfoResponse.md) + - [OAuth2Key](docs/OAuth2Key.md) + - [OnboardingPromptOptionRequest](docs/OnboardingPromptOptionRequest.md) + - [OnboardingPromptOptionResponse](docs/OnboardingPromptOptionResponse.md) + - [OnboardingPromptResponse](docs/OnboardingPromptResponse.md) + - [PartialDiscordIntegrationResponse](docs/PartialDiscordIntegrationResponse.md) + - [PartialExternalConnectionIntegrationResponse](docs/PartialExternalConnectionIntegrationResponse.md) + - [PartialGuildSubscriptionIntegrationResponse](docs/PartialGuildSubscriptionIntegrationResponse.md) + - [PartnerSdkUnmergeProvisionalAccountRequest](docs/PartnerSdkUnmergeProvisionalAccountRequest.md) + - [PinnedMessageResponse](docs/PinnedMessageResponse.md) + - [PinnedMessagesResponse](docs/PinnedMessagesResponse.md) + - [PollAnswerCreateRequest](docs/PollAnswerCreateRequest.md) + - [PollAnswerDetailsResponse](docs/PollAnswerDetailsResponse.md) + - [PollAnswerResponse](docs/PollAnswerResponse.md) + - [PollCreateRequest](docs/PollCreateRequest.md) + - [PollEmoji](docs/PollEmoji.md) + - [PollEmojiCreateRequest](docs/PollEmojiCreateRequest.md) + - [PollMedia](docs/PollMedia.md) + - [PollMediaCreateRequest](docs/PollMediaCreateRequest.md) + - [PollMediaResponse](docs/PollMediaResponse.md) + - [PollResponse](docs/PollResponse.md) + - [PollResultsEntryResponse](docs/PollResultsEntryResponse.md) + - [PollResultsResponse](docs/PollResultsResponse.md) + - [PongInteractionCallbackRequest](docs/PongInteractionCallbackRequest.md) + - [PrivateApplicationResponse](docs/PrivateApplicationResponse.md) + - [PrivateChannelLocation](docs/PrivateChannelLocation.md) + - [PrivateChannelResponse](docs/PrivateChannelResponse.md) + - [PrivateGroupChannelResponse](docs/PrivateGroupChannelResponse.md) + - [PrivateGuildMemberResponse](docs/PrivateGuildMemberResponse.md) + - [ProvisionalTokenResponse](docs/ProvisionalTokenResponse.md) + - [PruneGuildRequest](docs/PruneGuildRequest.md) + - [PruneGuildRequestIncludeRoles](docs/PruneGuildRequestIncludeRoles.md) + - [PurchaseNotificationResponse](docs/PurchaseNotificationResponse.md) + - [QuarantineUserAction](docs/QuarantineUserAction.md) + - [QuarantineUserActionResponse](docs/QuarantineUserActionResponse.md) + - [ResolvedObjectsResponse](docs/ResolvedObjectsResponse.md) + - [ResourceChannelResponse](docs/ResourceChannelResponse.md) + - [RichEmbed](docs/RichEmbed.md) + - [RichEmbedAuthor](docs/RichEmbedAuthor.md) + - [RichEmbedField](docs/RichEmbedField.md) + - [RichEmbedFooter](docs/RichEmbedFooter.md) + - [RichEmbedImage](docs/RichEmbedImage.md) + - [RichEmbedProvider](docs/RichEmbedProvider.md) + - [RichEmbedThumbnail](docs/RichEmbedThumbnail.md) + - [RichEmbedVideo](docs/RichEmbedVideo.md) + - [RoleSelectComponentForMessageRequest](docs/RoleSelectComponentForMessageRequest.md) + - [RoleSelectComponentResponse](docs/RoleSelectComponentResponse.md) + - [RoleSelectDefaultValue](docs/RoleSelectDefaultValue.md) + - [RoleSelectDefaultValueResponse](docs/RoleSelectDefaultValueResponse.md) + - [ScheduledEventResponse](docs/ScheduledEventResponse.md) + - [ScheduledEventUserResponse](docs/ScheduledEventUserResponse.md) + - [SdkMessageRequest](docs/SdkMessageRequest.md) + - [SectionComponentForMessageRequest](docs/SectionComponentForMessageRequest.md) + - [SectionComponentForMessageRequestAccessory](docs/SectionComponentForMessageRequestAccessory.md) + - [SectionComponentResponse](docs/SectionComponentResponse.md) + - [SectionComponentResponseAccessory](docs/SectionComponentResponseAccessory.md) + - [SeparatorComponentForMessageRequest](docs/SeparatorComponentForMessageRequest.md) + - [SeparatorComponentResponse](docs/SeparatorComponentResponse.md) + - [SetChannelPermissionOverwriteRequest](docs/SetChannelPermissionOverwriteRequest.md) + - [SetGuildApplicationCommandPermissionsRequest](docs/SetGuildApplicationCommandPermissionsRequest.md) + - [SetGuildMfaLevelRequest](docs/SetGuildMfaLevelRequest.md) + - [SettingsEmojiResponse](docs/SettingsEmojiResponse.md) + - [SlackWebhook](docs/SlackWebhook.md) + - [SoundboardCreateRequest](docs/SoundboardCreateRequest.md) + - [SoundboardPatchRequestPartial](docs/SoundboardPatchRequestPartial.md) + - [SoundboardSoundResponse](docs/SoundboardSoundResponse.md) + - [SoundboardSoundSendRequest](docs/SoundboardSoundSendRequest.md) + - [SpamLinkRuleResponse](docs/SpamLinkRuleResponse.md) + - [StageInstanceResponse](docs/StageInstanceResponse.md) + - [StageScheduledEventCreateRequest](docs/StageScheduledEventCreateRequest.md) + - [StageScheduledEventPatchRequestPartial](docs/StageScheduledEventPatchRequestPartial.md) + - [StageScheduledEventResponse](docs/StageScheduledEventResponse.md) + - [StandardStickerResponse](docs/StandardStickerResponse.md) + - [StickerPackCollectionResponse](docs/StickerPackCollectionResponse.md) + - [StickerPackResponse](docs/StickerPackResponse.md) + - [StringSelectComponentForMessageRequest](docs/StringSelectComponentForMessageRequest.md) + - [StringSelectComponentResponse](docs/StringSelectComponentResponse.md) + - [StringSelectOptionForMessageRequest](docs/StringSelectOptionForMessageRequest.md) + - [StringSelectOptionResponse](docs/StringSelectOptionResponse.md) + - [TeamMemberResponse](docs/TeamMemberResponse.md) + - [TeamResponse](docs/TeamResponse.md) + - [TextDisplayComponentForMessageRequest](docs/TextDisplayComponentForMessageRequest.md) + - [TextDisplayComponentResponse](docs/TextDisplayComponentResponse.md) + - [TextInputComponentForModalRequest](docs/TextInputComponentForModalRequest.md) + - [TextInputComponentResponse](docs/TextInputComponentResponse.md) + - [ThreadMemberResponse](docs/ThreadMemberResponse.md) + - [ThreadMetadataResponse](docs/ThreadMetadataResponse.md) + - [ThreadResponse](docs/ThreadResponse.md) + - [ThreadSearchResponse](docs/ThreadSearchResponse.md) + - [ThreadSearchTagParameter](docs/ThreadSearchTagParameter.md) + - [ThreadsResponse](docs/ThreadsResponse.md) + - [ThumbnailComponentForMessageRequest](docs/ThumbnailComponentForMessageRequest.md) + - [ThumbnailComponentResponse](docs/ThumbnailComponentResponse.md) + - [UnfurledMediaRequest](docs/UnfurledMediaRequest.md) + - [UnfurledMediaRequestWithAttachmentReferenceRequired](docs/UnfurledMediaRequestWithAttachmentReferenceRequired.md) + - [UnfurledMediaResponse](docs/UnfurledMediaResponse.md) + - [UpdateApplicationEmojiRequest](docs/UpdateApplicationEmojiRequest.md) + - [UpdateApplicationUserRoleConnectionRequest](docs/UpdateApplicationUserRoleConnectionRequest.md) + - [UpdateAutoModerationRuleRequest](docs/UpdateAutoModerationRuleRequest.md) + - [UpdateChannelRequest](docs/UpdateChannelRequest.md) + - [UpdateDefaultReactionEmojiRequest](docs/UpdateDefaultReactionEmojiRequest.md) + - [UpdateDmRequestPartial](docs/UpdateDmRequestPartial.md) + - [UpdateGroupDmRequestPartial](docs/UpdateGroupDmRequestPartial.md) + - [UpdateGuildChannelRequestPartial](docs/UpdateGuildChannelRequestPartial.md) + - [UpdateGuildEmojiRequest](docs/UpdateGuildEmojiRequest.md) + - [UpdateGuildMemberRequest](docs/UpdateGuildMemberRequest.md) + - [UpdateGuildOnboardingRequest](docs/UpdateGuildOnboardingRequest.md) + - [UpdateGuildScheduledEventRequest](docs/UpdateGuildScheduledEventRequest.md) + - [UpdateGuildStickerRequest](docs/UpdateGuildStickerRequest.md) + - [UpdateGuildTemplateRequest](docs/UpdateGuildTemplateRequest.md) + - [UpdateGuildWidgetSettingsRequest](docs/UpdateGuildWidgetSettingsRequest.md) + - [UpdateMessageInteractionCallbackRequest](docs/UpdateMessageInteractionCallbackRequest.md) + - [UpdateMessageInteractionCallbackResponse](docs/UpdateMessageInteractionCallbackResponse.md) + - [UpdateMyGuildMemberRequest](docs/UpdateMyGuildMemberRequest.md) + - [UpdateOnboardingPromptRequest](docs/UpdateOnboardingPromptRequest.md) + - [UpdateSelfVoiceStateRequest](docs/UpdateSelfVoiceStateRequest.md) + - [UpdateStageInstanceRequest](docs/UpdateStageInstanceRequest.md) + - [UpdateThreadRequestPartial](docs/UpdateThreadRequestPartial.md) + - [UpdateThreadTagRequest](docs/UpdateThreadTagRequest.md) + - [UpdateVoiceStateRequest](docs/UpdateVoiceStateRequest.md) + - [UpdateWebhookByTokenRequest](docs/UpdateWebhookByTokenRequest.md) + - [UpdateWebhookRequest](docs/UpdateWebhookRequest.md) + - [UserAvatarDecorationResponse](docs/UserAvatarDecorationResponse.md) + - [UserCollectiblesResponse](docs/UserCollectiblesResponse.md) + - [UserCommunicationDisabledAction](docs/UserCommunicationDisabledAction.md) + - [UserCommunicationDisabledActionMetadata](docs/UserCommunicationDisabledActionMetadata.md) + - [UserCommunicationDisabledActionMetadataResponse](docs/UserCommunicationDisabledActionMetadataResponse.md) + - [UserCommunicationDisabledActionResponse](docs/UserCommunicationDisabledActionResponse.md) + - [UserGuildOnboardingResponse](docs/UserGuildOnboardingResponse.md) + - [UserNameplateResponse](docs/UserNameplateResponse.md) + - [UserPiiResponse](docs/UserPiiResponse.md) + - [UserPrimaryGuildResponse](docs/UserPrimaryGuildResponse.md) + - [UserResponse](docs/UserResponse.md) + - [UserSelectComponentForMessageRequest](docs/UserSelectComponentForMessageRequest.md) + - [UserSelectComponentResponse](docs/UserSelectComponentResponse.md) + - [UserSelectDefaultValue](docs/UserSelectDefaultValue.md) + - [UserSelectDefaultValueResponse](docs/UserSelectDefaultValueResponse.md) + - [VanityUrlErrorResponse](docs/VanityUrlErrorResponse.md) + - [VanityUrlResponse](docs/VanityUrlResponse.md) + - [VoiceRegionResponse](docs/VoiceRegionResponse.md) + - [VoiceScheduledEventCreateRequest](docs/VoiceScheduledEventCreateRequest.md) + - [VoiceScheduledEventPatchRequestPartial](docs/VoiceScheduledEventPatchRequestPartial.md) + - [VoiceScheduledEventResponse](docs/VoiceScheduledEventResponse.md) + - [VoiceStateResponse](docs/VoiceStateResponse.md) + - [WebhookSlackEmbed](docs/WebhookSlackEmbed.md) + - [WebhookSlackEmbedField](docs/WebhookSlackEmbedField.md) + - [WebhookSourceChannelResponse](docs/WebhookSourceChannelResponse.md) + - [WebhookSourceGuildResponse](docs/WebhookSourceGuildResponse.md) + - [WelcomeMessageResponse](docs/WelcomeMessageResponse.md) + - [WelcomeScreenPatchRequestPartial](docs/WelcomeScreenPatchRequestPartial.md) + - [WidgetActivity](docs/WidgetActivity.md) + - [WidgetChannel](docs/WidgetChannel.md) + - [WidgetMember](docs/WidgetMember.md) + - [WidgetResponse](docs/WidgetResponse.md) + - [WidgetSettingsResponse](docs/WidgetSettingsResponse.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + + + diff --git a/docs/AccountResponse.md b/docs/AccountResponse.md new file mode 100644 index 0000000..be74552 --- /dev/null +++ b/docs/AccountResponse.md @@ -0,0 +1,12 @@ +# AccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActionRowComponentForMessageRequest.md b/docs/ActionRowComponentForMessageRequest.md new file mode 100644 index 0000000..83d5faa --- /dev/null +++ b/docs/ActionRowComponentForMessageRequest.md @@ -0,0 +1,12 @@ +# ActionRowComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**components** | [**Vec**](ActionRowComponentForMessageRequest_components_inner.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActionRowComponentForMessageRequestComponentsInner.md b/docs/ActionRowComponentForMessageRequestComponentsInner.md new file mode 100644 index 0000000..53e3f33 --- /dev/null +++ b/docs/ActionRowComponentForMessageRequestComponentsInner.md @@ -0,0 +1,16 @@ +# ActionRowComponentForMessageRequestComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ButtonComponentForMessageRequest | | +| ChannelSelectComponentForMessageRequest | | +| MentionableSelectComponentForMessageRequest | | +| RoleSelectComponentForMessageRequest | | +| StringSelectComponentForMessageRequest | | +| UserSelectComponentForMessageRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActionRowComponentForModalRequest.md b/docs/ActionRowComponentForModalRequest.md new file mode 100644 index 0000000..48e6c77 --- /dev/null +++ b/docs/ActionRowComponentForModalRequest.md @@ -0,0 +1,12 @@ +# ActionRowComponentForModalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**components** | [**Vec**](TextInputComponentForModalRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActionRowComponentResponse.md b/docs/ActionRowComponentResponse.md new file mode 100644 index 0000000..8de5ec0 --- /dev/null +++ b/docs/ActionRowComponentResponse.md @@ -0,0 +1,13 @@ +# ActionRowComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**components** | Option<[**Vec**](ActionRowComponentResponse_components_inner.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActionRowComponentResponseComponentsInner.md b/docs/ActionRowComponentResponseComponentsInner.md new file mode 100644 index 0000000..cc773e1 --- /dev/null +++ b/docs/ActionRowComponentResponseComponentsInner.md @@ -0,0 +1,17 @@ +# ActionRowComponentResponseComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ButtonComponentResponse | | +| ChannelSelectComponentResponse | | +| MentionableSelectComponentResponse | | +| RoleSelectComponentResponse | | +| StringSelectComponentResponse | | +| TextInputComponentResponse | | +| UserSelectComponentResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActivitiesAttachmentResponse.md b/docs/ActivitiesAttachmentResponse.md new file mode 100644 index 0000000..d9be7c5 --- /dev/null +++ b/docs/ActivitiesAttachmentResponse.md @@ -0,0 +1,11 @@ +# ActivitiesAttachmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachment** | [**models::AttachmentResponse**](AttachmentResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddGroupDmUser201Response.md b/docs/AddGroupDmUser201Response.md new file mode 100644 index 0000000..61d5533 --- /dev/null +++ b/docs/AddGroupDmUser201Response.md @@ -0,0 +1,12 @@ +# AddGroupDmUser201Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| PrivateChannelResponse | | +| PrivateGroupChannelResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddGroupDmUserRequest.md b/docs/AddGroupDmUserRequest.md new file mode 100644 index 0000000..16ec230 --- /dev/null +++ b/docs/AddGroupDmUserRequest.md @@ -0,0 +1,12 @@ +# AddGroupDmUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | Option<**String**> | | [optional] +**nick** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddGuildMemberRequest.md b/docs/AddGuildMemberRequest.md new file mode 100644 index 0000000..78c412b --- /dev/null +++ b/docs/AddGuildMemberRequest.md @@ -0,0 +1,16 @@ +# AddGuildMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nick** | Option<**String**> | | [optional] +**roles** | Option<**Vec**> | | [optional] +**mute** | Option<**bool**> | | [optional] +**deaf** | Option<**bool**> | | [optional] +**access_token** | **String** | | +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddLobbyMemberRequest.md b/docs/AddLobbyMemberRequest.md new file mode 100644 index 0000000..4bbfec5 --- /dev/null +++ b/docs/AddLobbyMemberRequest.md @@ -0,0 +1,12 @@ +# AddLobbyMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandAttachmentOption.md b/docs/ApplicationCommandAttachmentOption.md new file mode 100644 index 0000000..44eaf5a --- /dev/null +++ b/docs/ApplicationCommandAttachmentOption.md @@ -0,0 +1,16 @@ +# ApplicationCommandAttachmentOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandAttachmentOptionResponse.md b/docs/ApplicationCommandAttachmentOptionResponse.md new file mode 100644 index 0000000..92f88cf --- /dev/null +++ b/docs/ApplicationCommandAttachmentOptionResponse.md @@ -0,0 +1,18 @@ +# ApplicationCommandAttachmentOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandAutocompleteCallbackRequest.md b/docs/ApplicationCommandAutocompleteCallbackRequest.md new file mode 100644 index 0000000..49edfb0 --- /dev/null +++ b/docs/ApplicationCommandAutocompleteCallbackRequest.md @@ -0,0 +1,12 @@ +# ApplicationCommandAutocompleteCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**data** | [**models::ApplicationCommandAutocompleteCallbackRequestData**](ApplicationCommandAutocompleteCallbackRequest_data.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandAutocompleteCallbackRequestData.md b/docs/ApplicationCommandAutocompleteCallbackRequestData.md new file mode 100644 index 0000000..adecaf8 --- /dev/null +++ b/docs/ApplicationCommandAutocompleteCallbackRequestData.md @@ -0,0 +1,11 @@ +# ApplicationCommandAutocompleteCallbackRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**choices** | Option<[**Vec**](ApplicationCommandOptionStringChoice.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandBooleanOption.md b/docs/ApplicationCommandBooleanOption.md new file mode 100644 index 0000000..ee90298 --- /dev/null +++ b/docs/ApplicationCommandBooleanOption.md @@ -0,0 +1,16 @@ +# ApplicationCommandBooleanOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandBooleanOptionResponse.md b/docs/ApplicationCommandBooleanOptionResponse.md new file mode 100644 index 0000000..3c9ea13 --- /dev/null +++ b/docs/ApplicationCommandBooleanOptionResponse.md @@ -0,0 +1,18 @@ +# ApplicationCommandBooleanOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandChannelOption.md b/docs/ApplicationCommandChannelOption.md new file mode 100644 index 0000000..d2df873 --- /dev/null +++ b/docs/ApplicationCommandChannelOption.md @@ -0,0 +1,17 @@ +# ApplicationCommandChannelOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**channel_types** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandChannelOptionResponse.md b/docs/ApplicationCommandChannelOptionResponse.md new file mode 100644 index 0000000..8d88c09 --- /dev/null +++ b/docs/ApplicationCommandChannelOptionResponse.md @@ -0,0 +1,19 @@ +# ApplicationCommandChannelOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**channel_types** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandCreateRequest.md b/docs/ApplicationCommandCreateRequest.md new file mode 100644 index 0000000..ffec0f8 --- /dev/null +++ b/docs/ApplicationCommandCreateRequest.md @@ -0,0 +1,21 @@ +# ApplicationCommandCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandCreateRequest_options_inner.md)> | | [optional] +**default_member_permissions** | Option<**i32**> | | [optional] +**dm_permission** | Option<**bool**> | | [optional] +**contexts** | Option<**Vec**> | | [optional] +**integration_types** | Option<**Vec**> | | [optional] +**handler** | Option<**i32**> | | [optional] +**r#type** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandCreateRequestOptionsInner.md b/docs/ApplicationCommandCreateRequestOptionsInner.md new file mode 100644 index 0000000..6f84086 --- /dev/null +++ b/docs/ApplicationCommandCreateRequestOptionsInner.md @@ -0,0 +1,21 @@ +# ApplicationCommandCreateRequestOptionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandAttachmentOption | | +| ApplicationCommandBooleanOption | | +| ApplicationCommandChannelOption | | +| ApplicationCommandIntegerOption | | +| ApplicationCommandMentionableOption | | +| ApplicationCommandNumberOption | | +| ApplicationCommandRoleOption | | +| ApplicationCommandStringOption | | +| ApplicationCommandSubcommandGroupOption | | +| ApplicationCommandSubcommandOption | | +| ApplicationCommandUserOption | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandIntegerOption.md b/docs/ApplicationCommandIntegerOption.md new file mode 100644 index 0000000..5c2cc32 --- /dev/null +++ b/docs/ApplicationCommandIntegerOption.md @@ -0,0 +1,20 @@ +# ApplicationCommandIntegerOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionIntegerChoice.md)> | | [optional] +**min_value** | Option<**i64**> | | [optional] +**max_value** | Option<**i64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandIntegerOptionResponse.md b/docs/ApplicationCommandIntegerOptionResponse.md new file mode 100644 index 0000000..699575c --- /dev/null +++ b/docs/ApplicationCommandIntegerOptionResponse.md @@ -0,0 +1,22 @@ +# ApplicationCommandIntegerOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionIntegerChoiceResponse.md)> | | [optional] +**min_value** | Option<**i64**> | | [optional] +**max_value** | Option<**i64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandInteractionMetadataResponse.md b/docs/ApplicationCommandInteractionMetadataResponse.md new file mode 100644 index 0000000..eda2d9b --- /dev/null +++ b/docs/ApplicationCommandInteractionMetadataResponse.md @@ -0,0 +1,17 @@ +# ApplicationCommandInteractionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**authorizing_integration_owners** | **std::collections::HashMap** | | +**original_response_message_id** | Option<**String**> | | [optional] +**target_user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**target_message_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandMentionableOption.md b/docs/ApplicationCommandMentionableOption.md new file mode 100644 index 0000000..c72bc0a --- /dev/null +++ b/docs/ApplicationCommandMentionableOption.md @@ -0,0 +1,16 @@ +# ApplicationCommandMentionableOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandMentionableOptionResponse.md b/docs/ApplicationCommandMentionableOptionResponse.md new file mode 100644 index 0000000..5593674 --- /dev/null +++ b/docs/ApplicationCommandMentionableOptionResponse.md @@ -0,0 +1,18 @@ +# ApplicationCommandMentionableOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandNumberOption.md b/docs/ApplicationCommandNumberOption.md new file mode 100644 index 0000000..8c822b7 --- /dev/null +++ b/docs/ApplicationCommandNumberOption.md @@ -0,0 +1,20 @@ +# ApplicationCommandNumberOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionNumberChoice.md)> | | [optional] +**min_value** | Option<**f64**> | | [optional] +**max_value** | Option<**f64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandNumberOptionResponse.md b/docs/ApplicationCommandNumberOptionResponse.md new file mode 100644 index 0000000..0fe12da --- /dev/null +++ b/docs/ApplicationCommandNumberOptionResponse.md @@ -0,0 +1,22 @@ +# ApplicationCommandNumberOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionNumberChoiceResponse.md)> | | [optional] +**min_value** | Option<**f64**> | | [optional] +**max_value** | Option<**f64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionIntegerChoice.md b/docs/ApplicationCommandOptionIntegerChoice.md new file mode 100644 index 0000000..15ae18a --- /dev/null +++ b/docs/ApplicationCommandOptionIntegerChoice.md @@ -0,0 +1,13 @@ +# ApplicationCommandOptionIntegerChoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionIntegerChoiceResponse.md b/docs/ApplicationCommandOptionIntegerChoiceResponse.md new file mode 100644 index 0000000..0a7f9b2 --- /dev/null +++ b/docs/ApplicationCommandOptionIntegerChoiceResponse.md @@ -0,0 +1,14 @@ +# ApplicationCommandOptionIntegerChoiceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionNumberChoice.md b/docs/ApplicationCommandOptionNumberChoice.md new file mode 100644 index 0000000..1e0ea35 --- /dev/null +++ b/docs/ApplicationCommandOptionNumberChoice.md @@ -0,0 +1,13 @@ +# ApplicationCommandOptionNumberChoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionNumberChoiceResponse.md b/docs/ApplicationCommandOptionNumberChoiceResponse.md new file mode 100644 index 0000000..884db52 --- /dev/null +++ b/docs/ApplicationCommandOptionNumberChoiceResponse.md @@ -0,0 +1,14 @@ +# ApplicationCommandOptionNumberChoiceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionStringChoice.md b/docs/ApplicationCommandOptionStringChoice.md new file mode 100644 index 0000000..82cb1f7 --- /dev/null +++ b/docs/ApplicationCommandOptionStringChoice.md @@ -0,0 +1,13 @@ +# ApplicationCommandOptionStringChoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandOptionStringChoiceResponse.md b/docs/ApplicationCommandOptionStringChoiceResponse.md new file mode 100644 index 0000000..51660af --- /dev/null +++ b/docs/ApplicationCommandOptionStringChoiceResponse.md @@ -0,0 +1,14 @@ +# ApplicationCommandOptionStringChoiceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**value** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandPatchRequestPartial.md b/docs/ApplicationCommandPatchRequestPartial.md new file mode 100644 index 0000000..5e59dcf --- /dev/null +++ b/docs/ApplicationCommandPatchRequestPartial.md @@ -0,0 +1,20 @@ +# ApplicationCommandPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandCreateRequest_options_inner.md)> | | [optional] +**default_member_permissions** | Option<**i32**> | | [optional] +**dm_permission** | Option<**bool**> | | [optional] +**contexts** | Option<**Vec**> | | [optional] +**integration_types** | Option<**Vec**> | | [optional] +**handler** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandPermission.md b/docs/ApplicationCommandPermission.md new file mode 100644 index 0000000..d706cd8 --- /dev/null +++ b/docs/ApplicationCommandPermission.md @@ -0,0 +1,13 @@ +# ApplicationCommandPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**permission** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandResponse.md b/docs/ApplicationCommandResponse.md new file mode 100644 index 0000000..dee86c6 --- /dev/null +++ b/docs/ApplicationCommandResponse.md @@ -0,0 +1,27 @@ +# ApplicationCommandResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**application_id** | **String** | | +**version** | **String** | | +**default_member_permissions** | Option<**String**> | | [optional] +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**dm_permission** | Option<**bool**> | | [optional] +**contexts** | Option<**Vec**> | | [optional] +**integration_types** | Option<**Vec**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandResponse_options_inner.md)> | | [optional] +**nsfw** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandResponseOptionsInner.md b/docs/ApplicationCommandResponseOptionsInner.md new file mode 100644 index 0000000..a3ead1e --- /dev/null +++ b/docs/ApplicationCommandResponseOptionsInner.md @@ -0,0 +1,21 @@ +# ApplicationCommandResponseOptionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandAttachmentOptionResponse | | +| ApplicationCommandBooleanOptionResponse | | +| ApplicationCommandChannelOptionResponse | | +| ApplicationCommandIntegerOptionResponse | | +| ApplicationCommandMentionableOptionResponse | | +| ApplicationCommandNumberOptionResponse | | +| ApplicationCommandRoleOptionResponse | | +| ApplicationCommandStringOptionResponse | | +| ApplicationCommandSubcommandGroupOptionResponse | | +| ApplicationCommandSubcommandOptionResponse | | +| ApplicationCommandUserOptionResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandRoleOption.md b/docs/ApplicationCommandRoleOption.md new file mode 100644 index 0000000..e52f670 --- /dev/null +++ b/docs/ApplicationCommandRoleOption.md @@ -0,0 +1,16 @@ +# ApplicationCommandRoleOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandRoleOptionResponse.md b/docs/ApplicationCommandRoleOptionResponse.md new file mode 100644 index 0000000..ef6880c --- /dev/null +++ b/docs/ApplicationCommandRoleOptionResponse.md @@ -0,0 +1,18 @@ +# ApplicationCommandRoleOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandStringOption.md b/docs/ApplicationCommandStringOption.md new file mode 100644 index 0000000..0970dd5 --- /dev/null +++ b/docs/ApplicationCommandStringOption.md @@ -0,0 +1,20 @@ +# ApplicationCommandStringOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**min_length** | Option<**i32**> | | [optional] +**max_length** | Option<**i32**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionStringChoice.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandStringOptionResponse.md b/docs/ApplicationCommandStringOptionResponse.md new file mode 100644 index 0000000..5924a76 --- /dev/null +++ b/docs/ApplicationCommandStringOptionResponse.md @@ -0,0 +1,22 @@ +# ApplicationCommandStringOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**autocomplete** | Option<**bool**> | | [optional] +**choices** | Option<[**Vec**](ApplicationCommandOptionStringChoiceResponse.md)> | | [optional] +**min_length** | Option<**i32**> | | [optional] +**max_length** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandGroupOption.md b/docs/ApplicationCommandSubcommandGroupOption.md new file mode 100644 index 0000000..be78ed5 --- /dev/null +++ b/docs/ApplicationCommandSubcommandGroupOption.md @@ -0,0 +1,17 @@ +# ApplicationCommandSubcommandGroupOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandSubcommandOption.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandGroupOptionResponse.md b/docs/ApplicationCommandSubcommandGroupOptionResponse.md new file mode 100644 index 0000000..393766a --- /dev/null +++ b/docs/ApplicationCommandSubcommandGroupOptionResponse.md @@ -0,0 +1,19 @@ +# ApplicationCommandSubcommandGroupOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandSubcommandOptionResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandOption.md b/docs/ApplicationCommandSubcommandOption.md new file mode 100644 index 0000000..1ef59ad --- /dev/null +++ b/docs/ApplicationCommandSubcommandOption.md @@ -0,0 +1,17 @@ +# ApplicationCommandSubcommandOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandSubcommandOption_options_inner.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandOptionOptionsInner.md b/docs/ApplicationCommandSubcommandOptionOptionsInner.md new file mode 100644 index 0000000..710d1ed --- /dev/null +++ b/docs/ApplicationCommandSubcommandOptionOptionsInner.md @@ -0,0 +1,19 @@ +# ApplicationCommandSubcommandOptionOptionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandAttachmentOption | | +| ApplicationCommandBooleanOption | | +| ApplicationCommandChannelOption | | +| ApplicationCommandIntegerOption | | +| ApplicationCommandMentionableOption | | +| ApplicationCommandNumberOption | | +| ApplicationCommandRoleOption | | +| ApplicationCommandStringOption | | +| ApplicationCommandUserOption | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandOptionResponse.md b/docs/ApplicationCommandSubcommandOptionResponse.md new file mode 100644 index 0000000..1d6c764 --- /dev/null +++ b/docs/ApplicationCommandSubcommandOptionResponse.md @@ -0,0 +1,19 @@ +# ApplicationCommandSubcommandOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandSubcommandOptionResponse_options_inner.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandSubcommandOptionResponseOptionsInner.md b/docs/ApplicationCommandSubcommandOptionResponseOptionsInner.md new file mode 100644 index 0000000..11cbc6c --- /dev/null +++ b/docs/ApplicationCommandSubcommandOptionResponseOptionsInner.md @@ -0,0 +1,19 @@ +# ApplicationCommandSubcommandOptionResponseOptionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandAttachmentOptionResponse | | +| ApplicationCommandBooleanOptionResponse | | +| ApplicationCommandChannelOptionResponse | | +| ApplicationCommandIntegerOptionResponse | | +| ApplicationCommandMentionableOptionResponse | | +| ApplicationCommandNumberOptionResponse | | +| ApplicationCommandRoleOptionResponse | | +| ApplicationCommandStringOptionResponse | | +| ApplicationCommandUserOptionResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandUpdateRequest.md b/docs/ApplicationCommandUpdateRequest.md new file mode 100644 index 0000000..b2740cb --- /dev/null +++ b/docs/ApplicationCommandUpdateRequest.md @@ -0,0 +1,22 @@ +# ApplicationCommandUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**options** | Option<[**Vec**](ApplicationCommandCreateRequest_options_inner.md)> | | [optional] +**default_member_permissions** | Option<**i32**> | | [optional] +**dm_permission** | Option<**bool**> | | [optional] +**contexts** | Option<**Vec**> | | [optional] +**integration_types** | Option<**Vec**> | | [optional] +**handler** | Option<**i32**> | | [optional] +**r#type** | Option<**i32**> | | [optional] +**id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandUserOption.md b/docs/ApplicationCommandUserOption.md new file mode 100644 index 0000000..eb74a30 --- /dev/null +++ b/docs/ApplicationCommandUserOption.md @@ -0,0 +1,16 @@ +# ApplicationCommandUserOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationCommandUserOptionResponse.md b/docs/ApplicationCommandUserOptionResponse.md new file mode 100644 index 0000000..bf1f7d6 --- /dev/null +++ b/docs/ApplicationCommandUserOptionResponse.md @@ -0,0 +1,18 @@ +# ApplicationCommandUserOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**name** | **String** | | +**name_localized** | Option<**String**> | | [optional] +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localized** | Option<**String**> | | [optional] +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] +**required** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationFormPartial.md b/docs/ApplicationFormPartial.md new file mode 100644 index 0000000..71f2c4e --- /dev/null +++ b/docs/ApplicationFormPartial.md @@ -0,0 +1,24 @@ +# ApplicationFormPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<[**models::ApplicationFormPartialDescription**](ApplicationFormPartial_description.md)> | | [optional] +**icon** | Option<**String**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**team_id** | Option<**String**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**interactions_endpoint_url** | Option<**String**> | | [optional] +**explicit_content_filter** | Option<**i32**> | | [optional] +**max_participants** | Option<**i32**> | | [optional] +**r#type** | Option<**i32**> | | [optional] +**tags** | Option<**Vec**> | | [optional] +**custom_install_url** | Option<**String**> | | [optional] +**install_params** | Option<[**models::ApplicationOAuth2InstallParams**](ApplicationOAuth2InstallParams.md)> | | [optional] +**role_connections_verification_url** | Option<**String**> | | [optional] +**integration_types_config** | Option<[**std::collections::HashMap**](ApplicationFormPartial_integration_types_config_value.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationFormPartialDescription.md b/docs/ApplicationFormPartialDescription.md new file mode 100644 index 0000000..c0a351e --- /dev/null +++ b/docs/ApplicationFormPartialDescription.md @@ -0,0 +1,12 @@ +# ApplicationFormPartialDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default** | **String** | | +**localizations** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationFormPartialIntegrationTypesConfigValue.md b/docs/ApplicationFormPartialIntegrationTypesConfigValue.md new file mode 100644 index 0000000..984b601 --- /dev/null +++ b/docs/ApplicationFormPartialIntegrationTypesConfigValue.md @@ -0,0 +1,11 @@ +# ApplicationFormPartialIntegrationTypesConfigValue + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationIntegrationTypeConfiguration | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationIncomingWebhookResponse.md b/docs/ApplicationIncomingWebhookResponse.md new file mode 100644 index 0000000..df600e1 --- /dev/null +++ b/docs/ApplicationIncomingWebhookResponse.md @@ -0,0 +1,18 @@ +# ApplicationIncomingWebhookResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | Option<**String**> | | [optional] +**avatar** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**id** | **String** | | +**name** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationIntegrationTypeConfiguration.md b/docs/ApplicationIntegrationTypeConfiguration.md new file mode 100644 index 0000000..fd65cb1 --- /dev/null +++ b/docs/ApplicationIntegrationTypeConfiguration.md @@ -0,0 +1,11 @@ +# ApplicationIntegrationTypeConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oauth2_install_params** | Option<[**models::ApplicationOAuth2InstallParams**](ApplicationOAuth2InstallParams.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationIntegrationTypeConfigurationResponse.md b/docs/ApplicationIntegrationTypeConfigurationResponse.md new file mode 100644 index 0000000..ec30e16 --- /dev/null +++ b/docs/ApplicationIntegrationTypeConfigurationResponse.md @@ -0,0 +1,11 @@ +# ApplicationIntegrationTypeConfigurationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oauth2_install_params** | Option<[**models::ApplicationOAuth2InstallParamsResponse**](ApplicationOAuth2InstallParamsResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationOAuth2InstallParams.md b/docs/ApplicationOAuth2InstallParams.md new file mode 100644 index 0000000..329b10a --- /dev/null +++ b/docs/ApplicationOAuth2InstallParams.md @@ -0,0 +1,12 @@ +# ApplicationOAuth2InstallParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scopes** | Option<**Vec**> | | [optional] +**permissions** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationOAuth2InstallParamsResponse.md b/docs/ApplicationOAuth2InstallParamsResponse.md new file mode 100644 index 0000000..2f69432 --- /dev/null +++ b/docs/ApplicationOAuth2InstallParamsResponse.md @@ -0,0 +1,12 @@ +# ApplicationOAuth2InstallParamsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scopes** | **Vec** | | +**permissions** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationResponse.md b/docs/ApplicationResponse.md new file mode 100644 index 0000000..1a724c6 --- /dev/null +++ b/docs/ApplicationResponse.md @@ -0,0 +1,32 @@ +# ApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**primary_sku_id** | Option<**String**> | | [optional] +**bot** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**slug** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**rpc_origins** | Option<**Vec**> | | [optional] +**bot_public** | Option<**bool**> | | [optional] +**bot_require_code_grant** | Option<**bool**> | | [optional] +**terms_of_service_url** | Option<**String**> | | [optional] +**privacy_policy_url** | Option<**String**> | | [optional] +**custom_install_url** | Option<**String**> | | [optional] +**install_params** | Option<[**models::ApplicationOAuth2InstallParamsResponse**](ApplicationOAuth2InstallParamsResponse.md)> | | [optional] +**integration_types_config** | Option<[**std::collections::HashMap**](ApplicationIntegrationTypeConfigurationResponse.md)> | | [optional] +**verify_key** | **String** | | +**flags** | **i32** | | +**max_participants** | Option<**i32**> | | [optional] +**tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationRoleConnectionsMetadataItemRequest.md b/docs/ApplicationRoleConnectionsMetadataItemRequest.md new file mode 100644 index 0000000..473e862 --- /dev/null +++ b/docs/ApplicationRoleConnectionsMetadataItemRequest.md @@ -0,0 +1,16 @@ +# ApplicationRoleConnectionsMetadataItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**key** | **String** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationRoleConnectionsMetadataItemResponse.md b/docs/ApplicationRoleConnectionsMetadataItemResponse.md new file mode 100644 index 0000000..09e3087 --- /dev/null +++ b/docs/ApplicationRoleConnectionsMetadataItemResponse.md @@ -0,0 +1,16 @@ +# ApplicationRoleConnectionsMetadataItemResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**key** | **String** | | +**name** | **String** | | +**name_localizations** | Option<**std::collections::HashMap**> | | [optional] +**description** | **String** | | +**description_localizations** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationUserRoleConnectionResponse.md b/docs/ApplicationUserRoleConnectionResponse.md new file mode 100644 index 0000000..cb351b8 --- /dev/null +++ b/docs/ApplicationUserRoleConnectionResponse.md @@ -0,0 +1,13 @@ +# ApplicationUserRoleConnectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**platform_name** | Option<**String**> | | [optional] +**platform_username** | Option<**String**> | | [optional] +**metadata** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttachmentResponse.md b/docs/AttachmentResponse.md new file mode 100644 index 0000000..974b4d0 --- /dev/null +++ b/docs/AttachmentResponse.md @@ -0,0 +1,26 @@ +# AttachmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**filename** | **String** | | +**size** | **i32** | | +**url** | **String** | | +**proxy_url** | **String** | | +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**duration_secs** | Option<**f64**> | | [optional] +**waveform** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**content_type** | Option<**String**> | | [optional] +**ephemeral** | Option<**bool**> | | [optional] +**title** | Option<**String**> | | [optional] +**application** | Option<[**models::ApplicationResponse**](ApplicationResponse.md)> | | [optional] +**clip_created_at** | Option<**String**> | | [optional] +**clip_participants** | Option<[**Vec**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditLogEntryResponse.md b/docs/AuditLogEntryResponse.md new file mode 100644 index 0000000..01277d1 --- /dev/null +++ b/docs/AuditLogEntryResponse.md @@ -0,0 +1,17 @@ +# AuditLogEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**action_type** | Option<**i32**> | | +**user_id** | Option<**String**> | | [optional] +**target_id** | Option<**String**> | | [optional] +**changes** | Option<[**Vec**](AuditLogObjectChangeResponse.md)> | | [optional] +**options** | Option<**std::collections::HashMap**> | | [optional] +**reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditLogObjectChangeResponse.md b/docs/AuditLogObjectChangeResponse.md new file mode 100644 index 0000000..91020e1 --- /dev/null +++ b/docs/AuditLogObjectChangeResponse.md @@ -0,0 +1,13 @@ +# AuditLogObjectChangeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | Option<**String**> | | [optional] +**new_value** | Option<[**serde_json::Value**](.md)> | | [optional] +**old_value** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BanUserFromGuildRequest.md b/docs/BanUserFromGuildRequest.md new file mode 100644 index 0000000..dd2db56 --- /dev/null +++ b/docs/BanUserFromGuildRequest.md @@ -0,0 +1,12 @@ +# BanUserFromGuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete_message_seconds** | Option<**i32**> | | [optional] +**delete_message_days** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BaseCreateMessageCreateRequest.md b/docs/BaseCreateMessageCreateRequest.md new file mode 100644 index 0000000..a6e1c02 --- /dev/null +++ b/docs/BaseCreateMessageCreateRequest.md @@ -0,0 +1,19 @@ +# BaseCreateMessageCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**sticker_ids** | Option<**Vec**> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**confetti_potion** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BaseCreateMessageCreateRequestComponentsInner.md b/docs/BaseCreateMessageCreateRequestComponentsInner.md new file mode 100644 index 0000000..5a5a069 --- /dev/null +++ b/docs/BaseCreateMessageCreateRequestComponentsInner.md @@ -0,0 +1,17 @@ +# BaseCreateMessageCreateRequestComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ActionRowComponentForMessageRequest | | +| ContainerComponentForMessageRequest | | +| FileComponentForMessageRequest | | +| MediaGalleryComponentForMessageRequest | | +| SectionComponentForMessageRequest | | +| SeparatorComponentForMessageRequest | | +| TextDisplayComponentForMessageRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicApplicationResponse.md b/docs/BasicApplicationResponse.md new file mode 100644 index 0000000..097d999 --- /dev/null +++ b/docs/BasicApplicationResponse.md @@ -0,0 +1,18 @@ +# BasicApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**primary_sku_id** | Option<**String**> | | [optional] +**bot** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicMessageResponse.md b/docs/BasicMessageResponse.md new file mode 100644 index 0000000..c4a92a7 --- /dev/null +++ b/docs/BasicMessageResponse.md @@ -0,0 +1,45 @@ +# BasicMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**content** | **String** | | +**mentions** | [**Vec**](UserResponse.md) | | +**mention_roles** | **Vec** | | +**attachments** | [**Vec**](MessageAttachmentResponse.md) | | +**embeds** | [**Vec**](MessageEmbedResponse.md) | | +**timestamp** | **String** | | +**edited_timestamp** | Option<**String**> | | [optional] +**flags** | **i32** | | +**components** | [**Vec**](BasicMessageResponse_components_inner.md) | | +**resolved** | Option<[**models::ResolvedObjectsResponse**](ResolvedObjectsResponse.md)> | | [optional] +**stickers** | Option<[**Vec**](get_sticker_200_response.md)> | | [optional] +**sticker_items** | Option<[**Vec**](MessageStickerItemResponse.md)> | | [optional] +**id** | **String** | | +**channel_id** | **String** | | +**author** | [**models::UserResponse**](UserResponse.md) | | +**pinned** | **bool** | | +**mention_everyone** | **bool** | | +**tts** | **bool** | | +**call** | Option<[**models::MessageCallResponse**](MessageCallResponse.md)> | | [optional] +**activity** | Option<[**serde_json::Value**](.md)> | | [optional] +**application** | Option<[**models::BasicApplicationResponse**](BasicApplicationResponse.md)> | | [optional] +**application_id** | Option<**String**> | | [optional] +**interaction** | Option<[**models::MessageInteractionResponse**](MessageInteractionResponse.md)> | | [optional] +**nonce** | Option<[**models::BasicMessageResponseNonce**](BasicMessageResponse_nonce.md)> | | [optional] +**webhook_id** | Option<**String**> | | [optional] +**message_reference** | Option<[**models::MessageReferenceResponse**](MessageReferenceResponse.md)> | | [optional] +**thread** | Option<[**models::ThreadResponse**](ThreadResponse.md)> | | [optional] +**mention_channels** | Option<[**Vec**](MessageMentionChannelResponse.md)> | | [optional] +**role_subscription_data** | Option<[**models::MessageRoleSubscriptionDataResponse**](MessageRoleSubscriptionDataResponse.md)> | | [optional] +**purchase_notification** | Option<[**models::PurchaseNotificationResponse**](PurchaseNotificationResponse.md)> | | [optional] +**position** | Option<**i32**> | | [optional] +**poll** | Option<[**models::PollResponse**](PollResponse.md)> | | [optional] +**interaction_metadata** | Option<[**models::BasicMessageResponseInteractionMetadata**](BasicMessageResponse_interaction_metadata.md)> | | [optional] +**message_snapshots** | Option<[**Vec**](MessageSnapshotResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicMessageResponseComponentsInner.md b/docs/BasicMessageResponseComponentsInner.md new file mode 100644 index 0000000..cc1ce89 --- /dev/null +++ b/docs/BasicMessageResponseComponentsInner.md @@ -0,0 +1,17 @@ +# BasicMessageResponseComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ActionRowComponentResponse | | +| ContainerComponentResponse | | +| FileComponentResponse | | +| MediaGalleryComponentResponse | | +| SectionComponentResponse | | +| SeparatorComponentResponse | | +| TextDisplayComponentResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicMessageResponseInteractionMetadata.md b/docs/BasicMessageResponseInteractionMetadata.md new file mode 100644 index 0000000..ca252a5 --- /dev/null +++ b/docs/BasicMessageResponseInteractionMetadata.md @@ -0,0 +1,13 @@ +# BasicMessageResponseInteractionMetadata + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandInteractionMetadataResponse | | +| MessageComponentInteractionMetadataResponse | | +| ModalSubmitInteractionMetadataResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicMessageResponseNonce.md b/docs/BasicMessageResponseNonce.md new file mode 100644 index 0000000..6240546 --- /dev/null +++ b/docs/BasicMessageResponseNonce.md @@ -0,0 +1,12 @@ +# BasicMessageResponseNonce + +## Enum Variants + +| Name | Description | +|---- | -----| +| String | | +| i64 | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BlockMessageAction.md b/docs/BlockMessageAction.md new file mode 100644 index 0000000..45494f2 --- /dev/null +++ b/docs/BlockMessageAction.md @@ -0,0 +1,12 @@ +# BlockMessageAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | Option<[**models::BlockMessageActionMetadata**](BlockMessageActionMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BlockMessageActionMetadata.md b/docs/BlockMessageActionMetadata.md new file mode 100644 index 0000000..fe6815c --- /dev/null +++ b/docs/BlockMessageActionMetadata.md @@ -0,0 +1,11 @@ +# BlockMessageActionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_message** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BlockMessageActionMetadataResponse.md b/docs/BlockMessageActionMetadataResponse.md new file mode 100644 index 0000000..3f5328d --- /dev/null +++ b/docs/BlockMessageActionMetadataResponse.md @@ -0,0 +1,11 @@ +# BlockMessageActionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_message** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BlockMessageActionResponse.md b/docs/BlockMessageActionResponse.md new file mode 100644 index 0000000..421878f --- /dev/null +++ b/docs/BlockMessageActionResponse.md @@ -0,0 +1,12 @@ +# BlockMessageActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**models::BlockMessageActionMetadataResponse**](BlockMessageActionMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BotAccountPatchRequest.md b/docs/BotAccountPatchRequest.md new file mode 100644 index 0000000..b1feeaf --- /dev/null +++ b/docs/BotAccountPatchRequest.md @@ -0,0 +1,13 @@ +# BotAccountPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **String** | | +**avatar** | Option<**String**> | | [optional] +**banner** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkBanUsersFromGuildRequest.md b/docs/BulkBanUsersFromGuildRequest.md new file mode 100644 index 0000000..d9d475c --- /dev/null +++ b/docs/BulkBanUsersFromGuildRequest.md @@ -0,0 +1,12 @@ +# BulkBanUsersFromGuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_ids** | **Vec** | | +**delete_message_seconds** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkBanUsersResponse.md b/docs/BulkBanUsersResponse.md new file mode 100644 index 0000000..7cb1cc3 --- /dev/null +++ b/docs/BulkBanUsersResponse.md @@ -0,0 +1,12 @@ +# BulkBanUsersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banned_users** | **Vec** | | +**failed_users** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkDeleteMessagesRequest.md b/docs/BulkDeleteMessagesRequest.md new file mode 100644 index 0000000..93ce98b --- /dev/null +++ b/docs/BulkDeleteMessagesRequest.md @@ -0,0 +1,11 @@ +# BulkDeleteMessagesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messages** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkLobbyMemberRequest.md b/docs/BulkLobbyMemberRequest.md new file mode 100644 index 0000000..e804bae --- /dev/null +++ b/docs/BulkLobbyMemberRequest.md @@ -0,0 +1,14 @@ +# BulkLobbyMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**remove_member** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkUpdateGuildChannelsRequestInner.md b/docs/BulkUpdateGuildChannelsRequestInner.md new file mode 100644 index 0000000..fa68370 --- /dev/null +++ b/docs/BulkUpdateGuildChannelsRequestInner.md @@ -0,0 +1,14 @@ +# BulkUpdateGuildChannelsRequestInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**position** | Option<**i32**> | | [optional] +**parent_id** | Option<**String**> | | [optional] +**lock_permissions** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BulkUpdateGuildRolesRequestInner.md b/docs/BulkUpdateGuildRolesRequestInner.md new file mode 100644 index 0000000..76651ca --- /dev/null +++ b/docs/BulkUpdateGuildRolesRequestInner.md @@ -0,0 +1,12 @@ +# BulkUpdateGuildRolesRequestInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**position** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ButtonComponentForMessageRequest.md b/docs/ButtonComponentForMessageRequest.md new file mode 100644 index 0000000..2626058 --- /dev/null +++ b/docs/ButtonComponentForMessageRequest.md @@ -0,0 +1,18 @@ +# ButtonComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | Option<**String**> | | [optional] +**style** | Option<**i32**> | | +**label** | Option<**String**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**url** | Option<**String**> | | [optional] +**sku_id** | Option<**String**> | | [optional] +**emoji** | Option<[**models::ComponentEmojiForMessageRequest**](ComponentEmojiForMessageRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ButtonComponentResponse.md b/docs/ButtonComponentResponse.md new file mode 100644 index 0000000..7c569a6 --- /dev/null +++ b/docs/ButtonComponentResponse.md @@ -0,0 +1,19 @@ +# ButtonComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | Option<**String**> | | [optional] +**style** | Option<**i32**> | | +**label** | Option<**String**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**emoji** | Option<[**models::ComponentEmojiResponse**](ComponentEmojiResponse.md)> | | [optional] +**url** | Option<**String**> | | [optional] +**sku_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelFollowerResponse.md b/docs/ChannelFollowerResponse.md new file mode 100644 index 0000000..0d609e8 --- /dev/null +++ b/docs/ChannelFollowerResponse.md @@ -0,0 +1,12 @@ +# ChannelFollowerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | +**webhook_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelFollowerWebhookResponse.md b/docs/ChannelFollowerWebhookResponse.md new file mode 100644 index 0000000..65fc68e --- /dev/null +++ b/docs/ChannelFollowerWebhookResponse.md @@ -0,0 +1,20 @@ +# ChannelFollowerWebhookResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | Option<**String**> | | [optional] +**avatar** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**id** | **String** | | +**name** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**source_guild** | Option<[**models::WebhookSourceGuildResponse**](WebhookSourceGuildResponse.md)> | | [optional] +**source_channel** | Option<[**models::WebhookSourceChannelResponse**](WebhookSourceChannelResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelPermissionOverwriteRequest.md b/docs/ChannelPermissionOverwriteRequest.md new file mode 100644 index 0000000..87e8dcb --- /dev/null +++ b/docs/ChannelPermissionOverwriteRequest.md @@ -0,0 +1,14 @@ +# ChannelPermissionOverwriteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**allow** | Option<**i32**> | | [optional] +**deny** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelPermissionOverwriteResponse.md b/docs/ChannelPermissionOverwriteResponse.md new file mode 100644 index 0000000..6185a6b --- /dev/null +++ b/docs/ChannelPermissionOverwriteResponse.md @@ -0,0 +1,14 @@ +# ChannelPermissionOverwriteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**i32**> | | +**allow** | **String** | | +**deny** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelSelectComponentForMessageRequest.md b/docs/ChannelSelectComponentForMessageRequest.md new file mode 100644 index 0000000..fedb878 --- /dev/null +++ b/docs/ChannelSelectComponentForMessageRequest.md @@ -0,0 +1,18 @@ +# ChannelSelectComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](ChannelSelectDefaultValue.md)> | | [optional] +**channel_types** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelSelectComponentResponse.md b/docs/ChannelSelectComponentResponse.md new file mode 100644 index 0000000..7029511 --- /dev/null +++ b/docs/ChannelSelectComponentResponse.md @@ -0,0 +1,19 @@ +# ChannelSelectComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**channel_types** | Option<**Vec**> | | [optional] +**default_values** | Option<[**Vec**](ChannelSelectDefaultValueResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelSelectDefaultValue.md b/docs/ChannelSelectDefaultValue.md new file mode 100644 index 0000000..859437a --- /dev/null +++ b/docs/ChannelSelectDefaultValue.md @@ -0,0 +1,12 @@ +# ChannelSelectDefaultValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelSelectDefaultValueResponse.md b/docs/ChannelSelectDefaultValueResponse.md new file mode 100644 index 0000000..03cc340 --- /dev/null +++ b/docs/ChannelSelectDefaultValueResponse.md @@ -0,0 +1,12 @@ +# ChannelSelectDefaultValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommandPermissionResponse.md b/docs/CommandPermissionResponse.md new file mode 100644 index 0000000..fd5704a --- /dev/null +++ b/docs/CommandPermissionResponse.md @@ -0,0 +1,13 @@ +# CommandPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**permission** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommandPermissionsResponse.md b/docs/CommandPermissionsResponse.md new file mode 100644 index 0000000..df4d8b2 --- /dev/null +++ b/docs/CommandPermissionsResponse.md @@ -0,0 +1,14 @@ +# CommandPermissionsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**application_id** | **String** | | +**guild_id** | **String** | | +**permissions** | [**Vec**](CommandPermissionResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComponentEmojiForMessageRequest.md b/docs/ComponentEmojiForMessageRequest.md new file mode 100644 index 0000000..e59b019 --- /dev/null +++ b/docs/ComponentEmojiForMessageRequest.md @@ -0,0 +1,12 @@ +# ComponentEmojiForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComponentEmojiResponse.md b/docs/ComponentEmojiResponse.md new file mode 100644 index 0000000..6645fd3 --- /dev/null +++ b/docs/ComponentEmojiResponse.md @@ -0,0 +1,13 @@ +# ComponentEmojiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | **String** | | +**animated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConnectedAccountGuildResponse.md b/docs/ConnectedAccountGuildResponse.md new file mode 100644 index 0000000..623cdb5 --- /dev/null +++ b/docs/ConnectedAccountGuildResponse.md @@ -0,0 +1,13 @@ +# ConnectedAccountGuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**icon** | Option<**String**> | | [optional] +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConnectedAccountIntegrationResponse.md b/docs/ConnectedAccountIntegrationResponse.md new file mode 100644 index 0000000..3ff282c --- /dev/null +++ b/docs/ConnectedAccountIntegrationResponse.md @@ -0,0 +1,14 @@ +# ConnectedAccountIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**String**> | | +**account** | [**models::AccountResponse**](AccountResponse.md) | | +**guild** | [**models::ConnectedAccountGuildResponse**](ConnectedAccountGuildResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConnectedAccountResponse.md b/docs/ConnectedAccountResponse.md new file mode 100644 index 0000000..d203ea3 --- /dev/null +++ b/docs/ConnectedAccountResponse.md @@ -0,0 +1,20 @@ +# ConnectedAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | Option<**String**> | | [optional] +**r#type** | Option<**String**> | | +**friend_sync** | **bool** | | +**integrations** | Option<[**Vec**](ConnectedAccountIntegrationResponse.md)> | | [optional] +**show_activity** | **bool** | | +**two_way_link** | **bool** | | +**verified** | **bool** | | +**visibility** | Option<**i32**> | | +**revoked** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerComponentForMessageRequest.md b/docs/ContainerComponentForMessageRequest.md new file mode 100644 index 0000000..7230c76 --- /dev/null +++ b/docs/ContainerComponentForMessageRequest.md @@ -0,0 +1,14 @@ +# ContainerComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**accent_color** | Option<**i32**> | | [optional] +**components** | [**Vec**](ContainerComponentForMessageRequest_components_inner.md) | | +**spoiler** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerComponentForMessageRequestComponentsInner.md b/docs/ContainerComponentForMessageRequestComponentsInner.md new file mode 100644 index 0000000..5c269d0 --- /dev/null +++ b/docs/ContainerComponentForMessageRequestComponentsInner.md @@ -0,0 +1,16 @@ +# ContainerComponentForMessageRequestComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ActionRowComponentForMessageRequest | | +| FileComponentForMessageRequest | | +| MediaGalleryComponentForMessageRequest | | +| SectionComponentForMessageRequest | | +| SeparatorComponentForMessageRequest | | +| TextDisplayComponentForMessageRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerComponentResponse.md b/docs/ContainerComponentResponse.md new file mode 100644 index 0000000..6ebbe14 --- /dev/null +++ b/docs/ContainerComponentResponse.md @@ -0,0 +1,15 @@ +# ContainerComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**accent_color** | Option<**i32**> | | [optional] +**components** | [**Vec**](ContainerComponentResponse_components_inner.md) | | +**spoiler** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerComponentResponseComponentsInner.md b/docs/ContainerComponentResponseComponentsInner.md new file mode 100644 index 0000000..c9a9147 --- /dev/null +++ b/docs/ContainerComponentResponseComponentsInner.md @@ -0,0 +1,16 @@ +# ContainerComponentResponseComponentsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ActionRowComponentResponse | | +| FileComponentResponse | | +| MediaGalleryComponentResponse | | +| SectionComponentResponse | | +| SeparatorComponentResponse | | +| TextDisplayComponentResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateApplicationEmojiRequest.md b/docs/CreateApplicationEmojiRequest.md new file mode 100644 index 0000000..d368f22 --- /dev/null +++ b/docs/CreateApplicationEmojiRequest.md @@ -0,0 +1,12 @@ +# CreateApplicationEmojiRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**image** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAutoModerationRule200Response.md b/docs/CreateAutoModerationRule200Response.md new file mode 100644 index 0000000..5315aa8 --- /dev/null +++ b/docs/CreateAutoModerationRule200Response.md @@ -0,0 +1,15 @@ +# CreateAutoModerationRule200Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| DefaultKeywordRuleResponse | | +| KeywordRuleResponse | | +| MentionSpamRuleResponse | | +| MlSpamRuleResponse | | +| SpamLinkRuleResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAutoModerationRuleRequest.md b/docs/CreateAutoModerationRuleRequest.md new file mode 100644 index 0000000..4d285f7 --- /dev/null +++ b/docs/CreateAutoModerationRuleRequest.md @@ -0,0 +1,14 @@ +# CreateAutoModerationRuleRequest + +## Enum Variants + +| Name | Description | +|---- | -----| +| DefaultKeywordListUpsertRequest | | +| KeywordUpsertRequest | | +| MentionSpamUpsertRequest | | +| MlSpamUpsertRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateChannelInviteRequest.md b/docs/CreateChannelInviteRequest.md new file mode 100644 index 0000000..e3507cb --- /dev/null +++ b/docs/CreateChannelInviteRequest.md @@ -0,0 +1,17 @@ +# CreateChannelInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_age** | Option<**i32**> | | [optional] +**temporary** | Option<**bool**> | | [optional] +**max_uses** | Option<**i32**> | | [optional] +**unique** | Option<**bool**> | | [optional] +**target_user_id** | Option<**String**> | | [optional] +**target_application_id** | Option<**String**> | | [optional] +**target_type** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateEntitlementRequestData.md b/docs/CreateEntitlementRequestData.md new file mode 100644 index 0000000..a57996f --- /dev/null +++ b/docs/CreateEntitlementRequestData.md @@ -0,0 +1,13 @@ +# CreateEntitlementRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sku_id** | **String** | | +**owner_id** | **String** | | +**owner_type** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateForumThreadRequest.md b/docs/CreateForumThreadRequest.md new file mode 100644 index 0000000..17094ee --- /dev/null +++ b/docs/CreateForumThreadRequest.md @@ -0,0 +1,15 @@ +# CreateForumThreadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**auto_archive_duration** | Option<**i32**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] +**message** | [**models::BaseCreateMessageCreateRequest**](BaseCreateMessageCreateRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGroupDmInviteRequest.md b/docs/CreateGroupDmInviteRequest.md new file mode 100644 index 0000000..102a229 --- /dev/null +++ b/docs/CreateGroupDmInviteRequest.md @@ -0,0 +1,11 @@ +# CreateGroupDmInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_age** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildChannelRequest.md b/docs/CreateGuildChannelRequest.md new file mode 100644 index 0000000..edd18f9 --- /dev/null +++ b/docs/CreateGuildChannelRequest.md @@ -0,0 +1,29 @@ +# CreateGuildChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**name** | **String** | | +**position** | Option<**i32**> | | [optional] +**topic** | Option<**String**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**parent_id** | Option<**String**> | | [optional] +**permission_overwrites** | Option<[**Vec**](ChannelPermissionOverwriteRequest.md)> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**default_reaction_emoji** | Option<[**models::UpdateDefaultReactionEmojiRequest**](UpdateDefaultReactionEmojiRequest.md)> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**available_tags** | Option<[**Vec**](CreateOrUpdateThreadTagRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildEmojiRequest.md b/docs/CreateGuildEmojiRequest.md new file mode 100644 index 0000000..f6f4874 --- /dev/null +++ b/docs/CreateGuildEmojiRequest.md @@ -0,0 +1,13 @@ +# CreateGuildEmojiRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**image** | **String** | | +**roles** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildFromTemplateRequest.md b/docs/CreateGuildFromTemplateRequest.md new file mode 100644 index 0000000..3b98812 --- /dev/null +++ b/docs/CreateGuildFromTemplateRequest.md @@ -0,0 +1,12 @@ +# CreateGuildFromTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**icon** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildInviteRequest.md b/docs/CreateGuildInviteRequest.md new file mode 100644 index 0000000..fef19b8 --- /dev/null +++ b/docs/CreateGuildInviteRequest.md @@ -0,0 +1,17 @@ +# CreateGuildInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_age** | Option<**i32**> | | [optional] +**temporary** | Option<**bool**> | | [optional] +**max_uses** | Option<**i32**> | | [optional] +**unique** | Option<**bool**> | | [optional] +**target_user_id** | Option<**String**> | | [optional] +**target_application_id** | Option<**String**> | | [optional] +**target_type** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildRequestChannelItem.md b/docs/CreateGuildRequestChannelItem.md new file mode 100644 index 0000000..51b8788 --- /dev/null +++ b/docs/CreateGuildRequestChannelItem.md @@ -0,0 +1,30 @@ +# CreateGuildRequestChannelItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**name** | **String** | | +**position** | Option<**i32**> | | [optional] +**topic** | Option<**String**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**parent_id** | Option<**String**> | | [optional] +**permission_overwrites** | Option<[**Vec**](ChannelPermissionOverwriteRequest.md)> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**default_reaction_emoji** | Option<[**models::UpdateDefaultReactionEmojiRequest**](UpdateDefaultReactionEmojiRequest.md)> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**id** | Option<**String**> | | [optional] +**available_tags** | Option<[**Vec**](CreateOrUpdateThreadTagRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildRequestRoleItem.md b/docs/CreateGuildRequestRoleItem.md new file mode 100644 index 0000000..b096bbf --- /dev/null +++ b/docs/CreateGuildRequestRoleItem.md @@ -0,0 +1,17 @@ +# CreateGuildRequestRoleItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**name** | Option<**String**> | | [optional] +**permissions** | Option<**i32**> | | [optional] +**color** | Option<**i32**> | | [optional] +**hoist** | Option<**bool**> | | [optional] +**mentionable** | Option<**bool**> | | [optional] +**unicode_emoji** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildRoleRequest.md b/docs/CreateGuildRoleRequest.md new file mode 100644 index 0000000..44b11ea --- /dev/null +++ b/docs/CreateGuildRoleRequest.md @@ -0,0 +1,17 @@ +# CreateGuildRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**permissions** | Option<**i32**> | | [optional] +**color** | Option<**i32**> | | [optional] +**hoist** | Option<**bool**> | | [optional] +**mentionable** | Option<**bool**> | | [optional] +**icon** | Option<**String**> | | [optional] +**unicode_emoji** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildScheduledEventRequest.md b/docs/CreateGuildScheduledEventRequest.md new file mode 100644 index 0000000..838726a --- /dev/null +++ b/docs/CreateGuildScheduledEventRequest.md @@ -0,0 +1,13 @@ +# CreateGuildScheduledEventRequest + +## Enum Variants + +| Name | Description | +|---- | -----| +| ExternalScheduledEventCreateRequest | | +| StageScheduledEventCreateRequest | | +| VoiceScheduledEventCreateRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateGuildTemplateRequest.md b/docs/CreateGuildTemplateRequest.md new file mode 100644 index 0000000..ed119b7 --- /dev/null +++ b/docs/CreateGuildTemplateRequest.md @@ -0,0 +1,12 @@ +# CreateGuildTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateInteractionResponseRequest.md b/docs/CreateInteractionResponseRequest.md new file mode 100644 index 0000000..1db55ba --- /dev/null +++ b/docs/CreateInteractionResponseRequest.md @@ -0,0 +1,12 @@ +# CreateInteractionResponseRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**data** | [**models::IncomingWebhookUpdateForInteractionCallbackRequestPartial**](IncomingWebhookUpdateForInteractionCallbackRequestPartial.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateLobbyRequest.md b/docs/CreateLobbyRequest.md new file mode 100644 index 0000000..c7675f2 --- /dev/null +++ b/docs/CreateLobbyRequest.md @@ -0,0 +1,13 @@ +# CreateLobbyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**idle_timeout_seconds** | Option<**i32**> | | [optional] +**members** | Option<[**Vec**](LobbyMemberRequest.md)> | | [optional] +**metadata** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateMessageInteractionCallbackRequest.md b/docs/CreateMessageInteractionCallbackRequest.md new file mode 100644 index 0000000..0d7d0c1 --- /dev/null +++ b/docs/CreateMessageInteractionCallbackRequest.md @@ -0,0 +1,12 @@ +# CreateMessageInteractionCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**data** | Option<[**models::IncomingWebhookInteractionRequest**](IncomingWebhookInteractionRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateMessageInteractionCallbackResponse.md b/docs/CreateMessageInteractionCallbackResponse.md new file mode 100644 index 0000000..036e0a1 --- /dev/null +++ b/docs/CreateMessageInteractionCallbackResponse.md @@ -0,0 +1,12 @@ +# CreateMessageInteractionCallbackResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**message** | [**models::MessageResponse**](MessageResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrJoinLobbyRequest.md b/docs/CreateOrJoinLobbyRequest.md new file mode 100644 index 0000000..6424fe9 --- /dev/null +++ b/docs/CreateOrJoinLobbyRequest.md @@ -0,0 +1,14 @@ +# CreateOrJoinLobbyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**idle_timeout_seconds** | Option<**i32**> | | [optional] +**lobby_metadata** | Option<**std::collections::HashMap**> | | [optional] +**member_metadata** | Option<**std::collections::HashMap**> | | [optional] +**secret** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrUpdateThreadTagRequest.md b/docs/CreateOrUpdateThreadTagRequest.md new file mode 100644 index 0000000..b1fec12 --- /dev/null +++ b/docs/CreateOrUpdateThreadTagRequest.md @@ -0,0 +1,14 @@ +# CreateOrUpdateThreadTagRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**moderated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreatePrivateChannelRequest.md b/docs/CreatePrivateChannelRequest.md new file mode 100644 index 0000000..2aa4b72 --- /dev/null +++ b/docs/CreatePrivateChannelRequest.md @@ -0,0 +1,13 @@ +# CreatePrivateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recipient_id** | Option<**String**> | | [optional] +**access_tokens** | Option<**Vec**> | | [optional] +**nicks** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateStageInstanceRequest.md b/docs/CreateStageInstanceRequest.md new file mode 100644 index 0000000..4db3ca5 --- /dev/null +++ b/docs/CreateStageInstanceRequest.md @@ -0,0 +1,15 @@ +# CreateStageInstanceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topic** | **String** | | +**channel_id** | **String** | | +**privacy_level** | Option<**i32**> | | [optional] +**guild_scheduled_event_id** | Option<**String**> | | [optional] +**send_start_notification** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateTextThreadWithMessageRequest.md b/docs/CreateTextThreadWithMessageRequest.md new file mode 100644 index 0000000..5e2e69f --- /dev/null +++ b/docs/CreateTextThreadWithMessageRequest.md @@ -0,0 +1,13 @@ +# CreateTextThreadWithMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**auto_archive_duration** | Option<**i32**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateTextThreadWithoutMessageRequest.md b/docs/CreateTextThreadWithoutMessageRequest.md new file mode 100644 index 0000000..5a2d5cf --- /dev/null +++ b/docs/CreateTextThreadWithoutMessageRequest.md @@ -0,0 +1,15 @@ +# CreateTextThreadWithoutMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**auto_archive_duration** | Option<**i32**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**r#type** | Option<**i32**> | | [optional] +**invitable** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateThreadRequest.md b/docs/CreateThreadRequest.md new file mode 100644 index 0000000..4b13892 --- /dev/null +++ b/docs/CreateThreadRequest.md @@ -0,0 +1,17 @@ +# CreateThreadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**auto_archive_duration** | Option<**i32**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] +**message** | [**models::BaseCreateMessageCreateRequest**](BaseCreateMessageCreateRequest.md) | | +**r#type** | Option<**i32**> | | [optional] +**invitable** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateWebhookRequest.md b/docs/CreateWebhookRequest.md new file mode 100644 index 0000000..b6c0c5b --- /dev/null +++ b/docs/CreateWebhookRequest.md @@ -0,0 +1,12 @@ +# CreateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**avatar** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreatedThreadResponse.md b/docs/CreatedThreadResponse.md new file mode 100644 index 0000000..9502922 --- /dev/null +++ b/docs/CreatedThreadResponse.md @@ -0,0 +1,31 @@ +# CreatedThreadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**last_message_id** | Option<**String**> | | [optional] +**flags** | **i32** | | +**last_pin_timestamp** | Option<**String**> | | [optional] +**guild_id** | **String** | | +**name** | **String** | | +**parent_id** | Option<**String**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**permissions** | Option<**String**> | | [optional] +**owner_id** | **String** | | +**thread_metadata** | Option<[**models::ThreadMetadataResponse**](ThreadMetadataResponse.md)> | | [optional] +**message_count** | **i32** | | +**member_count** | **i32** | | +**total_message_sent** | **i32** | | +**applied_tags** | Option<**Vec**> | | [optional] +**member** | Option<[**models::ThreadMemberResponse**](ThreadMemberResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md new file mode 100644 index 0000000..1a17bcb --- /dev/null +++ b/docs/DefaultApi.md @@ -0,0 +1,6681 @@ +# \DefaultApi + +All URIs are relative to *https://discord.com/api/v10* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_group_dm_user**](DefaultApi.md#add_group_dm_user) | **PUT** /channels/{channel_id}/recipients/{user_id} | +[**add_guild_member**](DefaultApi.md#add_guild_member) | **PUT** /guilds/{guild_id}/members/{user_id} | +[**add_guild_member_role**](DefaultApi.md#add_guild_member_role) | **PUT** /guilds/{guild_id}/members/{user_id}/roles/{role_id} | +[**add_lobby_member**](DefaultApi.md#add_lobby_member) | **PUT** /lobbies/{lobby_id}/members/{user_id} | +[**add_my_message_reaction**](DefaultApi.md#add_my_message_reaction) | **PUT** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me | +[**add_thread_member**](DefaultApi.md#add_thread_member) | **PUT** /channels/{channel_id}/thread-members/{user_id} | +[**applications_get_activity_instance**](DefaultApi.md#applications_get_activity_instance) | **GET** /applications/{application_id}/activity-instances/{instance_id} | +[**ban_user_from_guild**](DefaultApi.md#ban_user_from_guild) | **PUT** /guilds/{guild_id}/bans/{user_id} | +[**bulk_ban_users_from_guild**](DefaultApi.md#bulk_ban_users_from_guild) | **POST** /guilds/{guild_id}/bulk-ban | +[**bulk_delete_messages**](DefaultApi.md#bulk_delete_messages) | **POST** /channels/{channel_id}/messages/bulk-delete | +[**bulk_set_application_commands**](DefaultApi.md#bulk_set_application_commands) | **PUT** /applications/{application_id}/commands | +[**bulk_set_guild_application_commands**](DefaultApi.md#bulk_set_guild_application_commands) | **PUT** /applications/{application_id}/guilds/{guild_id}/commands | +[**bulk_update_guild_channels**](DefaultApi.md#bulk_update_guild_channels) | **PATCH** /guilds/{guild_id}/channels | +[**bulk_update_guild_roles**](DefaultApi.md#bulk_update_guild_roles) | **PATCH** /guilds/{guild_id}/roles | +[**bulk_update_lobby_members**](DefaultApi.md#bulk_update_lobby_members) | **POST** /lobbies/{lobby_id}/members/bulk | +[**consume_entitlement**](DefaultApi.md#consume_entitlement) | **POST** /applications/{application_id}/entitlements/{entitlement_id}/consume | +[**create_application_command**](DefaultApi.md#create_application_command) | **POST** /applications/{application_id}/commands | +[**create_application_emoji**](DefaultApi.md#create_application_emoji) | **POST** /applications/{application_id}/emojis | +[**create_auto_moderation_rule**](DefaultApi.md#create_auto_moderation_rule) | **POST** /guilds/{guild_id}/auto-moderation/rules | +[**create_channel_invite**](DefaultApi.md#create_channel_invite) | **POST** /channels/{channel_id}/invites | +[**create_dm**](DefaultApi.md#create_dm) | **POST** /users/@me/channels | +[**create_entitlement**](DefaultApi.md#create_entitlement) | **POST** /applications/{application_id}/entitlements | +[**create_guild**](DefaultApi.md#create_guild) | **POST** /guilds | +[**create_guild_application_command**](DefaultApi.md#create_guild_application_command) | **POST** /applications/{application_id}/guilds/{guild_id}/commands | +[**create_guild_channel**](DefaultApi.md#create_guild_channel) | **POST** /guilds/{guild_id}/channels | +[**create_guild_emoji**](DefaultApi.md#create_guild_emoji) | **POST** /guilds/{guild_id}/emojis | +[**create_guild_from_template**](DefaultApi.md#create_guild_from_template) | **POST** /guilds/templates/{code} | +[**create_guild_role**](DefaultApi.md#create_guild_role) | **POST** /guilds/{guild_id}/roles | +[**create_guild_scheduled_event**](DefaultApi.md#create_guild_scheduled_event) | **POST** /guilds/{guild_id}/scheduled-events | +[**create_guild_soundboard_sound**](DefaultApi.md#create_guild_soundboard_sound) | **POST** /guilds/{guild_id}/soundboard-sounds | +[**create_guild_sticker**](DefaultApi.md#create_guild_sticker) | **POST** /guilds/{guild_id}/stickers | +[**create_guild_template**](DefaultApi.md#create_guild_template) | **POST** /guilds/{guild_id}/templates | +[**create_interaction_response**](DefaultApi.md#create_interaction_response) | **POST** /interactions/{interaction_id}/{interaction_token}/callback | +[**create_lobby**](DefaultApi.md#create_lobby) | **POST** /lobbies | +[**create_lobby_message**](DefaultApi.md#create_lobby_message) | **POST** /lobbies/{lobby_id}/messages | +[**create_message**](DefaultApi.md#create_message) | **POST** /channels/{channel_id}/messages | +[**create_or_join_lobby**](DefaultApi.md#create_or_join_lobby) | **PUT** /lobbies | +[**create_pin**](DefaultApi.md#create_pin) | **PUT** /channels/{channel_id}/messages/pins/{message_id} | +[**create_stage_instance**](DefaultApi.md#create_stage_instance) | **POST** /stage-instances | +[**create_thread**](DefaultApi.md#create_thread) | **POST** /channels/{channel_id}/threads | +[**create_thread_from_message**](DefaultApi.md#create_thread_from_message) | **POST** /channels/{channel_id}/messages/{message_id}/threads | +[**create_webhook**](DefaultApi.md#create_webhook) | **POST** /channels/{channel_id}/webhooks | +[**crosspost_message**](DefaultApi.md#crosspost_message) | **POST** /channels/{channel_id}/messages/{message_id}/crosspost | +[**delete_all_message_reactions**](DefaultApi.md#delete_all_message_reactions) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions | +[**delete_all_message_reactions_by_emoji**](DefaultApi.md#delete_all_message_reactions_by_emoji) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} | +[**delete_application_command**](DefaultApi.md#delete_application_command) | **DELETE** /applications/{application_id}/commands/{command_id} | +[**delete_application_emoji**](DefaultApi.md#delete_application_emoji) | **DELETE** /applications/{application_id}/emojis/{emoji_id} | +[**delete_application_user_role_connection**](DefaultApi.md#delete_application_user_role_connection) | **DELETE** /users/@me/applications/{application_id}/role-connection | +[**delete_auto_moderation_rule**](DefaultApi.md#delete_auto_moderation_rule) | **DELETE** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +[**delete_channel**](DefaultApi.md#delete_channel) | **DELETE** /channels/{channel_id} | +[**delete_channel_permission_overwrite**](DefaultApi.md#delete_channel_permission_overwrite) | **DELETE** /channels/{channel_id}/permissions/{overwrite_id} | +[**delete_entitlement**](DefaultApi.md#delete_entitlement) | **DELETE** /applications/{application_id}/entitlements/{entitlement_id} | +[**delete_group_dm_user**](DefaultApi.md#delete_group_dm_user) | **DELETE** /channels/{channel_id}/recipients/{user_id} | +[**delete_guild**](DefaultApi.md#delete_guild) | **DELETE** /guilds/{guild_id} | +[**delete_guild_application_command**](DefaultApi.md#delete_guild_application_command) | **DELETE** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +[**delete_guild_emoji**](DefaultApi.md#delete_guild_emoji) | **DELETE** /guilds/{guild_id}/emojis/{emoji_id} | +[**delete_guild_integration**](DefaultApi.md#delete_guild_integration) | **DELETE** /guilds/{guild_id}/integrations/{integration_id} | +[**delete_guild_member**](DefaultApi.md#delete_guild_member) | **DELETE** /guilds/{guild_id}/members/{user_id} | +[**delete_guild_member_role**](DefaultApi.md#delete_guild_member_role) | **DELETE** /guilds/{guild_id}/members/{user_id}/roles/{role_id} | +[**delete_guild_role**](DefaultApi.md#delete_guild_role) | **DELETE** /guilds/{guild_id}/roles/{role_id} | +[**delete_guild_scheduled_event**](DefaultApi.md#delete_guild_scheduled_event) | **DELETE** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +[**delete_guild_soundboard_sound**](DefaultApi.md#delete_guild_soundboard_sound) | **DELETE** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +[**delete_guild_sticker**](DefaultApi.md#delete_guild_sticker) | **DELETE** /guilds/{guild_id}/stickers/{sticker_id} | +[**delete_guild_template**](DefaultApi.md#delete_guild_template) | **DELETE** /guilds/{guild_id}/templates/{code} | +[**delete_lobby_member**](DefaultApi.md#delete_lobby_member) | **DELETE** /lobbies/{lobby_id}/members/{user_id} | +[**delete_message**](DefaultApi.md#delete_message) | **DELETE** /channels/{channel_id}/messages/{message_id} | +[**delete_my_message_reaction**](DefaultApi.md#delete_my_message_reaction) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me | +[**delete_original_webhook_message**](DefaultApi.md#delete_original_webhook_message) | **DELETE** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +[**delete_pin**](DefaultApi.md#delete_pin) | **DELETE** /channels/{channel_id}/messages/pins/{message_id} | +[**delete_stage_instance**](DefaultApi.md#delete_stage_instance) | **DELETE** /stage-instances/{channel_id} | +[**delete_thread_member**](DefaultApi.md#delete_thread_member) | **DELETE** /channels/{channel_id}/thread-members/{user_id} | +[**delete_user_message_reaction**](DefaultApi.md#delete_user_message_reaction) | **DELETE** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/{user_id} | +[**delete_webhook**](DefaultApi.md#delete_webhook) | **DELETE** /webhooks/{webhook_id} | +[**delete_webhook_by_token**](DefaultApi.md#delete_webhook_by_token) | **DELETE** /webhooks/{webhook_id}/{webhook_token} | +[**delete_webhook_message**](DefaultApi.md#delete_webhook_message) | **DELETE** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +[**deprecated_create_pin**](DefaultApi.md#deprecated_create_pin) | **PUT** /channels/{channel_id}/pins/{message_id} | +[**deprecated_delete_pin**](DefaultApi.md#deprecated_delete_pin) | **DELETE** /channels/{channel_id}/pins/{message_id} | +[**deprecated_list_pins**](DefaultApi.md#deprecated_list_pins) | **GET** /channels/{channel_id}/pins | +[**edit_lobby**](DefaultApi.md#edit_lobby) | **PATCH** /lobbies/{lobby_id} | +[**edit_lobby_channel_link**](DefaultApi.md#edit_lobby_channel_link) | **PATCH** /lobbies/{lobby_id}/channel-linking | +[**execute_github_compatible_webhook**](DefaultApi.md#execute_github_compatible_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token}/github | +[**execute_slack_compatible_webhook**](DefaultApi.md#execute_slack_compatible_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token}/slack | +[**execute_webhook**](DefaultApi.md#execute_webhook) | **POST** /webhooks/{webhook_id}/{webhook_token} | +[**follow_channel**](DefaultApi.md#follow_channel) | **POST** /channels/{channel_id}/followers | +[**get_active_guild_threads**](DefaultApi.md#get_active_guild_threads) | **GET** /guilds/{guild_id}/threads/active | +[**get_answer_voters**](DefaultApi.md#get_answer_voters) | **GET** /channels/{channel_id}/polls/{message_id}/answers/{answer_id} | +[**get_application**](DefaultApi.md#get_application) | **GET** /applications/{application_id} | +[**get_application_command**](DefaultApi.md#get_application_command) | **GET** /applications/{application_id}/commands/{command_id} | +[**get_application_emoji**](DefaultApi.md#get_application_emoji) | **GET** /applications/{application_id}/emojis/{emoji_id} | +[**get_application_role_connections_metadata**](DefaultApi.md#get_application_role_connections_metadata) | **GET** /applications/{application_id}/role-connections/metadata | +[**get_application_user_role_connection**](DefaultApi.md#get_application_user_role_connection) | **GET** /users/@me/applications/{application_id}/role-connection | +[**get_auto_moderation_rule**](DefaultApi.md#get_auto_moderation_rule) | **GET** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +[**get_bot_gateway**](DefaultApi.md#get_bot_gateway) | **GET** /gateway/bot | +[**get_channel**](DefaultApi.md#get_channel) | **GET** /channels/{channel_id} | +[**get_entitlement**](DefaultApi.md#get_entitlement) | **GET** /applications/{application_id}/entitlements/{entitlement_id} | +[**get_entitlements**](DefaultApi.md#get_entitlements) | **GET** /applications/{application_id}/entitlements | +[**get_gateway**](DefaultApi.md#get_gateway) | **GET** /gateway | +[**get_guild**](DefaultApi.md#get_guild) | **GET** /guilds/{guild_id} | +[**get_guild_application_command**](DefaultApi.md#get_guild_application_command) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +[**get_guild_application_command_permissions**](DefaultApi.md#get_guild_application_command_permissions) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions | +[**get_guild_ban**](DefaultApi.md#get_guild_ban) | **GET** /guilds/{guild_id}/bans/{user_id} | +[**get_guild_emoji**](DefaultApi.md#get_guild_emoji) | **GET** /guilds/{guild_id}/emojis/{emoji_id} | +[**get_guild_member**](DefaultApi.md#get_guild_member) | **GET** /guilds/{guild_id}/members/{user_id} | +[**get_guild_new_member_welcome**](DefaultApi.md#get_guild_new_member_welcome) | **GET** /guilds/{guild_id}/new-member-welcome | +[**get_guild_preview**](DefaultApi.md#get_guild_preview) | **GET** /guilds/{guild_id}/preview | +[**get_guild_role**](DefaultApi.md#get_guild_role) | **GET** /guilds/{guild_id}/roles/{role_id} | +[**get_guild_scheduled_event**](DefaultApi.md#get_guild_scheduled_event) | **GET** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +[**get_guild_soundboard_sound**](DefaultApi.md#get_guild_soundboard_sound) | **GET** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +[**get_guild_sticker**](DefaultApi.md#get_guild_sticker) | **GET** /guilds/{guild_id}/stickers/{sticker_id} | +[**get_guild_template**](DefaultApi.md#get_guild_template) | **GET** /guilds/templates/{code} | +[**get_guild_vanity_url**](DefaultApi.md#get_guild_vanity_url) | **GET** /guilds/{guild_id}/vanity-url | +[**get_guild_webhooks**](DefaultApi.md#get_guild_webhooks) | **GET** /guilds/{guild_id}/webhooks | +[**get_guild_welcome_screen**](DefaultApi.md#get_guild_welcome_screen) | **GET** /guilds/{guild_id}/welcome-screen | +[**get_guild_widget**](DefaultApi.md#get_guild_widget) | **GET** /guilds/{guild_id}/widget.json | +[**get_guild_widget_png**](DefaultApi.md#get_guild_widget_png) | **GET** /guilds/{guild_id}/widget.png | +[**get_guild_widget_settings**](DefaultApi.md#get_guild_widget_settings) | **GET** /guilds/{guild_id}/widget | +[**get_guilds_onboarding**](DefaultApi.md#get_guilds_onboarding) | **GET** /guilds/{guild_id}/onboarding | +[**get_lobby**](DefaultApi.md#get_lobby) | **GET** /lobbies/{lobby_id} | +[**get_lobby_messages**](DefaultApi.md#get_lobby_messages) | **GET** /lobbies/{lobby_id}/messages | +[**get_message**](DefaultApi.md#get_message) | **GET** /channels/{channel_id}/messages/{message_id} | +[**get_my_application**](DefaultApi.md#get_my_application) | **GET** /applications/@me | +[**get_my_guild_member**](DefaultApi.md#get_my_guild_member) | **GET** /users/@me/guilds/{guild_id}/member | +[**get_my_oauth2_application**](DefaultApi.md#get_my_oauth2_application) | **GET** /oauth2/applications/@me | +[**get_my_oauth2_authorization**](DefaultApi.md#get_my_oauth2_authorization) | **GET** /oauth2/@me | +[**get_my_user**](DefaultApi.md#get_my_user) | **GET** /users/@me | +[**get_openid_connect_userinfo**](DefaultApi.md#get_openid_connect_userinfo) | **GET** /oauth2/userinfo | +[**get_original_webhook_message**](DefaultApi.md#get_original_webhook_message) | **GET** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +[**get_public_keys**](DefaultApi.md#get_public_keys) | **GET** /oauth2/keys | +[**get_self_voice_state**](DefaultApi.md#get_self_voice_state) | **GET** /guilds/{guild_id}/voice-states/@me | +[**get_soundboard_default_sounds**](DefaultApi.md#get_soundboard_default_sounds) | **GET** /soundboard-default-sounds | +[**get_stage_instance**](DefaultApi.md#get_stage_instance) | **GET** /stage-instances/{channel_id} | +[**get_sticker**](DefaultApi.md#get_sticker) | **GET** /stickers/{sticker_id} | +[**get_sticker_pack**](DefaultApi.md#get_sticker_pack) | **GET** /sticker-packs/{pack_id} | +[**get_thread_member**](DefaultApi.md#get_thread_member) | **GET** /channels/{channel_id}/thread-members/{user_id} | +[**get_user**](DefaultApi.md#get_user) | **GET** /users/{user_id} | +[**get_voice_state**](DefaultApi.md#get_voice_state) | **GET** /guilds/{guild_id}/voice-states/{user_id} | +[**get_webhook**](DefaultApi.md#get_webhook) | **GET** /webhooks/{webhook_id} | +[**get_webhook_by_token**](DefaultApi.md#get_webhook_by_token) | **GET** /webhooks/{webhook_id}/{webhook_token} | +[**get_webhook_message**](DefaultApi.md#get_webhook_message) | **GET** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +[**invite_resolve**](DefaultApi.md#invite_resolve) | **GET** /invites/{code} | +[**invite_revoke**](DefaultApi.md#invite_revoke) | **DELETE** /invites/{code} | +[**join_thread**](DefaultApi.md#join_thread) | **PUT** /channels/{channel_id}/thread-members/@me | +[**leave_guild**](DefaultApi.md#leave_guild) | **DELETE** /users/@me/guilds/{guild_id} | +[**leave_lobby**](DefaultApi.md#leave_lobby) | **DELETE** /lobbies/{lobby_id}/members/@me | +[**leave_thread**](DefaultApi.md#leave_thread) | **DELETE** /channels/{channel_id}/thread-members/@me | +[**list_application_commands**](DefaultApi.md#list_application_commands) | **GET** /applications/{application_id}/commands | +[**list_application_emojis**](DefaultApi.md#list_application_emojis) | **GET** /applications/{application_id}/emojis | +[**list_auto_moderation_rules**](DefaultApi.md#list_auto_moderation_rules) | **GET** /guilds/{guild_id}/auto-moderation/rules | +[**list_channel_invites**](DefaultApi.md#list_channel_invites) | **GET** /channels/{channel_id}/invites | +[**list_channel_webhooks**](DefaultApi.md#list_channel_webhooks) | **GET** /channels/{channel_id}/webhooks | +[**list_guild_application_command_permissions**](DefaultApi.md#list_guild_application_command_permissions) | **GET** /applications/{application_id}/guilds/{guild_id}/commands/permissions | +[**list_guild_application_commands**](DefaultApi.md#list_guild_application_commands) | **GET** /applications/{application_id}/guilds/{guild_id}/commands | +[**list_guild_audit_log_entries**](DefaultApi.md#list_guild_audit_log_entries) | **GET** /guilds/{guild_id}/audit-logs | +[**list_guild_bans**](DefaultApi.md#list_guild_bans) | **GET** /guilds/{guild_id}/bans | +[**list_guild_channels**](DefaultApi.md#list_guild_channels) | **GET** /guilds/{guild_id}/channels | +[**list_guild_emojis**](DefaultApi.md#list_guild_emojis) | **GET** /guilds/{guild_id}/emojis | +[**list_guild_integrations**](DefaultApi.md#list_guild_integrations) | **GET** /guilds/{guild_id}/integrations | +[**list_guild_invites**](DefaultApi.md#list_guild_invites) | **GET** /guilds/{guild_id}/invites | +[**list_guild_members**](DefaultApi.md#list_guild_members) | **GET** /guilds/{guild_id}/members | +[**list_guild_roles**](DefaultApi.md#list_guild_roles) | **GET** /guilds/{guild_id}/roles | +[**list_guild_scheduled_event_users**](DefaultApi.md#list_guild_scheduled_event_users) | **GET** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users | +[**list_guild_scheduled_events**](DefaultApi.md#list_guild_scheduled_events) | **GET** /guilds/{guild_id}/scheduled-events | +[**list_guild_soundboard_sounds**](DefaultApi.md#list_guild_soundboard_sounds) | **GET** /guilds/{guild_id}/soundboard-sounds | +[**list_guild_stickers**](DefaultApi.md#list_guild_stickers) | **GET** /guilds/{guild_id}/stickers | +[**list_guild_templates**](DefaultApi.md#list_guild_templates) | **GET** /guilds/{guild_id}/templates | +[**list_guild_voice_regions**](DefaultApi.md#list_guild_voice_regions) | **GET** /guilds/{guild_id}/regions | +[**list_message_reactions_by_emoji**](DefaultApi.md#list_message_reactions_by_emoji) | **GET** /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} | +[**list_messages**](DefaultApi.md#list_messages) | **GET** /channels/{channel_id}/messages | +[**list_my_connections**](DefaultApi.md#list_my_connections) | **GET** /users/@me/connections | +[**list_my_guilds**](DefaultApi.md#list_my_guilds) | **GET** /users/@me/guilds | +[**list_my_private_archived_threads**](DefaultApi.md#list_my_private_archived_threads) | **GET** /channels/{channel_id}/users/@me/threads/archived/private | +[**list_pins**](DefaultApi.md#list_pins) | **GET** /channels/{channel_id}/messages/pins | +[**list_private_archived_threads**](DefaultApi.md#list_private_archived_threads) | **GET** /channels/{channel_id}/threads/archived/private | +[**list_public_archived_threads**](DefaultApi.md#list_public_archived_threads) | **GET** /channels/{channel_id}/threads/archived/public | +[**list_sticker_packs**](DefaultApi.md#list_sticker_packs) | **GET** /sticker-packs | +[**list_thread_members**](DefaultApi.md#list_thread_members) | **GET** /channels/{channel_id}/thread-members | +[**list_voice_regions**](DefaultApi.md#list_voice_regions) | **GET** /voice/regions | +[**partner_sdk_token**](DefaultApi.md#partner_sdk_token) | **POST** /partner-sdk/token | +[**partner_sdk_unmerge_provisional_account**](DefaultApi.md#partner_sdk_unmerge_provisional_account) | **POST** /partner-sdk/provisional-accounts/unmerge | +[**poll_expire**](DefaultApi.md#poll_expire) | **POST** /channels/{channel_id}/polls/{message_id}/expire | +[**preview_prune_guild**](DefaultApi.md#preview_prune_guild) | **GET** /guilds/{guild_id}/prune | +[**prune_guild**](DefaultApi.md#prune_guild) | **POST** /guilds/{guild_id}/prune | +[**put_guilds_onboarding**](DefaultApi.md#put_guilds_onboarding) | **PUT** /guilds/{guild_id}/onboarding | +[**search_guild_members**](DefaultApi.md#search_guild_members) | **GET** /guilds/{guild_id}/members/search | +[**send_soundboard_sound**](DefaultApi.md#send_soundboard_sound) | **POST** /channels/{channel_id}/send-soundboard-sound | +[**set_channel_permission_overwrite**](DefaultApi.md#set_channel_permission_overwrite) | **PUT** /channels/{channel_id}/permissions/{overwrite_id} | +[**set_guild_application_command_permissions**](DefaultApi.md#set_guild_application_command_permissions) | **PUT** /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions | +[**set_guild_mfa_level**](DefaultApi.md#set_guild_mfa_level) | **POST** /guilds/{guild_id}/mfa | +[**sync_guild_template**](DefaultApi.md#sync_guild_template) | **PUT** /guilds/{guild_id}/templates/{code} | +[**thread_search**](DefaultApi.md#thread_search) | **GET** /channels/{channel_id}/threads/search | +[**trigger_typing_indicator**](DefaultApi.md#trigger_typing_indicator) | **POST** /channels/{channel_id}/typing | +[**unban_user_from_guild**](DefaultApi.md#unban_user_from_guild) | **DELETE** /guilds/{guild_id}/bans/{user_id} | +[**update_application**](DefaultApi.md#update_application) | **PATCH** /applications/{application_id} | +[**update_application_command**](DefaultApi.md#update_application_command) | **PATCH** /applications/{application_id}/commands/{command_id} | +[**update_application_emoji**](DefaultApi.md#update_application_emoji) | **PATCH** /applications/{application_id}/emojis/{emoji_id} | +[**update_application_role_connections_metadata**](DefaultApi.md#update_application_role_connections_metadata) | **PUT** /applications/{application_id}/role-connections/metadata | +[**update_application_user_role_connection**](DefaultApi.md#update_application_user_role_connection) | **PUT** /users/@me/applications/{application_id}/role-connection | +[**update_auto_moderation_rule**](DefaultApi.md#update_auto_moderation_rule) | **PATCH** /guilds/{guild_id}/auto-moderation/rules/{rule_id} | +[**update_channel**](DefaultApi.md#update_channel) | **PATCH** /channels/{channel_id} | +[**update_guild**](DefaultApi.md#update_guild) | **PATCH** /guilds/{guild_id} | +[**update_guild_application_command**](DefaultApi.md#update_guild_application_command) | **PATCH** /applications/{application_id}/guilds/{guild_id}/commands/{command_id} | +[**update_guild_emoji**](DefaultApi.md#update_guild_emoji) | **PATCH** /guilds/{guild_id}/emojis/{emoji_id} | +[**update_guild_member**](DefaultApi.md#update_guild_member) | **PATCH** /guilds/{guild_id}/members/{user_id} | +[**update_guild_role**](DefaultApi.md#update_guild_role) | **PATCH** /guilds/{guild_id}/roles/{role_id} | +[**update_guild_scheduled_event**](DefaultApi.md#update_guild_scheduled_event) | **PATCH** /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} | +[**update_guild_soundboard_sound**](DefaultApi.md#update_guild_soundboard_sound) | **PATCH** /guilds/{guild_id}/soundboard-sounds/{sound_id} | +[**update_guild_sticker**](DefaultApi.md#update_guild_sticker) | **PATCH** /guilds/{guild_id}/stickers/{sticker_id} | +[**update_guild_template**](DefaultApi.md#update_guild_template) | **PATCH** /guilds/{guild_id}/templates/{code} | +[**update_guild_welcome_screen**](DefaultApi.md#update_guild_welcome_screen) | **PATCH** /guilds/{guild_id}/welcome-screen | +[**update_guild_widget_settings**](DefaultApi.md#update_guild_widget_settings) | **PATCH** /guilds/{guild_id}/widget | +[**update_message**](DefaultApi.md#update_message) | **PATCH** /channels/{channel_id}/messages/{message_id} | +[**update_my_application**](DefaultApi.md#update_my_application) | **PATCH** /applications/@me | +[**update_my_guild_member**](DefaultApi.md#update_my_guild_member) | **PATCH** /guilds/{guild_id}/members/@me | +[**update_my_user**](DefaultApi.md#update_my_user) | **PATCH** /users/@me | +[**update_original_webhook_message**](DefaultApi.md#update_original_webhook_message) | **PATCH** /webhooks/{webhook_id}/{webhook_token}/messages/@original | +[**update_self_voice_state**](DefaultApi.md#update_self_voice_state) | **PATCH** /guilds/{guild_id}/voice-states/@me | +[**update_stage_instance**](DefaultApi.md#update_stage_instance) | **PATCH** /stage-instances/{channel_id} | +[**update_voice_state**](DefaultApi.md#update_voice_state) | **PATCH** /guilds/{guild_id}/voice-states/{user_id} | +[**update_webhook**](DefaultApi.md#update_webhook) | **PATCH** /webhooks/{webhook_id} | +[**update_webhook_by_token**](DefaultApi.md#update_webhook_by_token) | **PATCH** /webhooks/{webhook_id}/{webhook_token} | +[**update_webhook_message**](DefaultApi.md#update_webhook_message) | **PATCH** /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} | +[**upload_application_attachment**](DefaultApi.md#upload_application_attachment) | **POST** /applications/{application_id}/attachment | + + + +## add_group_dm_user + +> models::AddGroupDmUser201Response add_group_dm_user(channel_id, user_id, add_group_dm_user_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**add_group_dm_user_request** | [**AddGroupDmUserRequest**](AddGroupDmUserRequest.md) | | [required] | + +### Return type + +[**models::AddGroupDmUser201Response**](add_group_dm_user_201_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_guild_member + +> models::GuildMemberResponse add_guild_member(guild_id, user_id, add_guild_member_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**add_guild_member_request** | [**AddGuildMemberRequest**](AddGuildMemberRequest.md) | | [required] | + +### Return type + +[**models::GuildMemberResponse**](GuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_guild_member_role + +> add_guild_member_role(guild_id, user_id, role_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**role_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_lobby_member + +> models::LobbyMemberResponse add_lobby_member(lobby_id, user_id, add_lobby_member_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**add_lobby_member_request** | [**AddLobbyMemberRequest**](AddLobbyMemberRequest.md) | | [required] | + +### Return type + +[**models::LobbyMemberResponse**](LobbyMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_my_message_reaction + +> add_my_message_reaction(channel_id, message_id, emoji_name) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**emoji_name** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## add_thread_member + +> add_thread_member(channel_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## applications_get_activity_instance + +> models::EmbeddedActivityInstance applications_get_activity_instance(application_id, instance_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**instance_id** | **String** | | [required] | + +### Return type + +[**models::EmbeddedActivityInstance**](EmbeddedActivityInstance.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## ban_user_from_guild + +> ban_user_from_guild(guild_id, user_id, ban_user_from_guild_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**ban_user_from_guild_request** | [**BanUserFromGuildRequest**](BanUserFromGuildRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_ban_users_from_guild + +> models::BulkBanUsersResponse bulk_ban_users_from_guild(guild_id, bulk_ban_users_from_guild_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**bulk_ban_users_from_guild_request** | [**BulkBanUsersFromGuildRequest**](BulkBanUsersFromGuildRequest.md) | | [required] | + +### Return type + +[**models::BulkBanUsersResponse**](BulkBanUsersResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_delete_messages + +> bulk_delete_messages(channel_id, bulk_delete_messages_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**bulk_delete_messages_request** | [**BulkDeleteMessagesRequest**](BulkDeleteMessagesRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_set_application_commands + +> Vec bulk_set_application_commands(application_id, application_command_update_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**application_command_update_request** | Option<[**Vec**](ApplicationCommandUpdateRequest.md)> | | [required] | + +### Return type + +[**Vec**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_set_guild_application_commands + +> Vec bulk_set_guild_application_commands(application_id, guild_id, application_command_update_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**application_command_update_request** | Option<[**Vec**](ApplicationCommandUpdateRequest.md)> | | [required] | + +### Return type + +[**Vec**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_update_guild_channels + +> bulk_update_guild_channels(guild_id, bulk_update_guild_channels_request_inner) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**bulk_update_guild_channels_request_inner** | [**Vec**](bulk_update_guild_channels_request_inner.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_update_guild_roles + +> Vec bulk_update_guild_roles(guild_id, bulk_update_guild_roles_request_inner) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**bulk_update_guild_roles_request_inner** | [**Vec**](bulk_update_guild_roles_request_inner.md) | | [required] | + +### Return type + +[**Vec**](GuildRoleResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## bulk_update_lobby_members + +> Vec bulk_update_lobby_members(lobby_id, bulk_lobby_member_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**bulk_lobby_member_request** | Option<[**Vec**](BulkLobbyMemberRequest.md)> | | [required] | + +### Return type + +[**Vec**](LobbyMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## consume_entitlement + +> consume_entitlement(application_id, entitlement_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**entitlement_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_application_command + +> models::ApplicationCommandResponse create_application_command(application_id, application_command_create_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**application_command_create_request** | [**ApplicationCommandCreateRequest**](ApplicationCommandCreateRequest.md) | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_application_emoji + +> models::EmojiResponse create_application_emoji(application_id, create_application_emoji_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**create_application_emoji_request** | [**CreateApplicationEmojiRequest**](CreateApplicationEmojiRequest.md) | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_auto_moderation_rule + +> models::CreateAutoModerationRule200Response create_auto_moderation_rule(guild_id, create_auto_moderation_rule_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_auto_moderation_rule_request** | [**CreateAutoModerationRuleRequest**](CreateAutoModerationRuleRequest.md) | | [required] | + +### Return type + +[**models::CreateAutoModerationRule200Response**](create_auto_moderation_rule_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_channel_invite + +> models::ListChannelInvites200ResponseInner create_channel_invite(channel_id, create_channel_invite_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**create_channel_invite_request** | [**CreateChannelInviteRequest**](CreateChannelInviteRequest.md) | | [required] | + +### Return type + +[**models::ListChannelInvites200ResponseInner**](list_channel_invites_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_dm + +> models::AddGroupDmUser201Response create_dm(create_private_channel_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_private_channel_request** | [**CreatePrivateChannelRequest**](CreatePrivateChannelRequest.md) | | [required] | + +### Return type + +[**models::AddGroupDmUser201Response**](add_group_dm_user_201_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_entitlement + +> models::EntitlementResponse create_entitlement(application_id, create_entitlement_request_data) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**create_entitlement_request_data** | [**CreateEntitlementRequestData**](CreateEntitlementRequestData.md) | | [required] | + +### Return type + +[**models::EntitlementResponse**](EntitlementResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild + +> models::GuildResponse create_guild(guild_create_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_create_request** | [**GuildCreateRequest**](GuildCreateRequest.md) | | [required] | + +### Return type + +[**models::GuildResponse**](GuildResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_application_command + +> models::ApplicationCommandResponse create_guild_application_command(application_id, guild_id, application_command_create_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**application_command_create_request** | [**ApplicationCommandCreateRequest**](ApplicationCommandCreateRequest.md) | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_channel + +> models::GuildChannelResponse create_guild_channel(guild_id, create_guild_channel_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_guild_channel_request** | [**CreateGuildChannelRequest**](CreateGuildChannelRequest.md) | | [required] | + +### Return type + +[**models::GuildChannelResponse**](GuildChannelResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_emoji + +> models::EmojiResponse create_guild_emoji(guild_id, create_guild_emoji_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_guild_emoji_request** | [**CreateGuildEmojiRequest**](CreateGuildEmojiRequest.md) | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_from_template + +> models::GuildResponse create_guild_from_template(code, create_guild_from_template_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**code** | **String** | | [required] | +**create_guild_from_template_request** | [**CreateGuildFromTemplateRequest**](CreateGuildFromTemplateRequest.md) | | [required] | + +### Return type + +[**models::GuildResponse**](GuildResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_role + +> models::GuildRoleResponse create_guild_role(guild_id, create_guild_role_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_guild_role_request** | [**CreateGuildRoleRequest**](CreateGuildRoleRequest.md) | | [required] | + +### Return type + +[**models::GuildRoleResponse**](GuildRoleResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_scheduled_event + +> models::ListGuildScheduledEvents200ResponseInner create_guild_scheduled_event(guild_id, create_guild_scheduled_event_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_guild_scheduled_event_request** | [**CreateGuildScheduledEventRequest**](CreateGuildScheduledEventRequest.md) | | [required] | + +### Return type + +[**models::ListGuildScheduledEvents200ResponseInner**](list_guild_scheduled_events_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_soundboard_sound + +> models::SoundboardSoundResponse create_guild_soundboard_sound(guild_id, soundboard_create_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**soundboard_create_request** | [**SoundboardCreateRequest**](SoundboardCreateRequest.md) | | [required] | + +### Return type + +[**models::SoundboardSoundResponse**](SoundboardSoundResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_sticker + +> models::GuildStickerResponse create_guild_sticker(guild_id, name, tags, file, description) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**name** | **String** | | [required] | +**tags** | **String** | | [required] | +**file** | **String** | | [required] | +**description** | Option<**String**> | | | + +### Return type + +[**models::GuildStickerResponse**](GuildStickerResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_guild_template + +> models::GuildTemplateResponse create_guild_template(guild_id, create_guild_template_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**create_guild_template_request** | [**CreateGuildTemplateRequest**](CreateGuildTemplateRequest.md) | | [required] | + +### Return type + +[**models::GuildTemplateResponse**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_interaction_response + +> models::InteractionCallbackResponse create_interaction_response(interaction_id, interaction_token, create_interaction_response_request, with_response) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**interaction_id** | **String** | | [required] | +**interaction_token** | **String** | | [required] | +**create_interaction_response_request** | [**CreateInteractionResponseRequest**](CreateInteractionResponseRequest.md) | | [required] | +**with_response** | Option<**bool**> | | | + +### Return type + +[**models::InteractionCallbackResponse**](InteractionCallbackResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_lobby + +> models::LobbyResponse create_lobby(create_lobby_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_lobby_request** | [**CreateLobbyRequest**](CreateLobbyRequest.md) | | [required] | + +### Return type + +[**models::LobbyResponse**](LobbyResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_lobby_message + +> models::LobbyMessageResponse create_lobby_message(lobby_id, sdk_message_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**sdk_message_request** | [**SdkMessageRequest**](SdkMessageRequest.md) | | [required] | + +### Return type + +[**models::LobbyMessageResponse**](LobbyMessageResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_message + +> models::MessageResponse create_message(channel_id, message_create_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_create_request** | [**MessageCreateRequest**](MessageCreateRequest.md) | | [required] | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_or_join_lobby + +> models::LobbyResponse create_or_join_lobby(create_or_join_lobby_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_or_join_lobby_request** | [**CreateOrJoinLobbyRequest**](CreateOrJoinLobbyRequest.md) | | [required] | + +### Return type + +[**models::LobbyResponse**](LobbyResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_pin + +> create_pin(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_stage_instance + +> models::StageInstanceResponse create_stage_instance(create_stage_instance_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**create_stage_instance_request** | [**CreateStageInstanceRequest**](CreateStageInstanceRequest.md) | | [required] | + +### Return type + +[**models::StageInstanceResponse**](StageInstanceResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_thread + +> models::CreatedThreadResponse create_thread(channel_id, create_thread_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**create_thread_request** | [**CreateThreadRequest**](CreateThreadRequest.md) | | [required] | + +### Return type + +[**models::CreatedThreadResponse**](CreatedThreadResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_thread_from_message + +> models::ThreadResponse create_thread_from_message(channel_id, message_id, create_text_thread_with_message_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**create_text_thread_with_message_request** | [**CreateTextThreadWithMessageRequest**](CreateTextThreadWithMessageRequest.md) | | [required] | + +### Return type + +[**models::ThreadResponse**](ThreadResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_webhook + +> models::GuildIncomingWebhookResponse create_webhook(channel_id, create_webhook_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**create_webhook_request** | [**CreateWebhookRequest**](CreateWebhookRequest.md) | | [required] | + +### Return type + +[**models::GuildIncomingWebhookResponse**](GuildIncomingWebhookResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## crosspost_message + +> models::MessageResponse crosspost_message(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_all_message_reactions + +> delete_all_message_reactions(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_all_message_reactions_by_emoji + +> delete_all_message_reactions_by_emoji(channel_id, message_id, emoji_name) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**emoji_name** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_application_command + +> delete_application_command(application_id, command_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**command_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_application_emoji + +> delete_application_emoji(application_id, emoji_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_application_user_role_connection + +> delete_application_user_role_connection(application_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_auto_moderation_rule + +> delete_auto_moderation_rule(guild_id, rule_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**rule_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_channel + +> models::GetChannel200Response delete_channel(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**models::GetChannel200Response**](get_channel_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_channel_permission_overwrite + +> delete_channel_permission_overwrite(channel_id, overwrite_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**overwrite_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_entitlement + +> delete_entitlement(application_id, entitlement_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**entitlement_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_group_dm_user + +> delete_group_dm_user(channel_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild + +> delete_guild(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_application_command + +> delete_guild_application_command(application_id, guild_id, command_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**command_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_emoji + +> delete_guild_emoji(guild_id, emoji_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_integration + +> delete_guild_integration(guild_id, integration_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**integration_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_member + +> delete_guild_member(guild_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_member_role + +> delete_guild_member_role(guild_id, user_id, role_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**role_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_role + +> delete_guild_role(guild_id, role_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**role_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_scheduled_event + +> delete_guild_scheduled_event(guild_id, guild_scheduled_event_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**guild_scheduled_event_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_soundboard_sound + +> delete_guild_soundboard_sound(guild_id, sound_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sound_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_sticker + +> delete_guild_sticker(guild_id, sticker_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sticker_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_guild_template + +> models::GuildTemplateResponse delete_guild_template(guild_id, code) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**code** | **String** | | [required] | + +### Return type + +[**models::GuildTemplateResponse**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_lobby_member + +> delete_lobby_member(lobby_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_message + +> delete_message(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_my_message_reaction + +> delete_my_message_reaction(channel_id, message_id, emoji_name) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**emoji_name** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_original_webhook_message + +> delete_original_webhook_message(webhook_id, webhook_token, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**thread_id** | Option<**String**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_pin + +> delete_pin(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_stage_instance + +> delete_stage_instance(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_thread_member + +> delete_thread_member(channel_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_user_message_reaction + +> delete_user_message_reaction(channel_id, message_id, emoji_name, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**emoji_name** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_webhook + +> delete_webhook(webhook_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_webhook_by_token + +> delete_webhook_by_token(webhook_id, webhook_token) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_webhook_message + +> delete_webhook_message(webhook_id, webhook_token, message_id, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**message_id** | **String** | | [required] | +**thread_id** | Option<**String**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## deprecated_create_pin + +> deprecated_create_pin(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## deprecated_delete_pin + +> deprecated_delete_pin(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## deprecated_list_pins + +> Vec deprecated_list_pins(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**Vec**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## edit_lobby + +> models::LobbyResponse edit_lobby(lobby_id, create_lobby_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**create_lobby_request** | [**CreateLobbyRequest**](CreateLobbyRequest.md) | | [required] | + +### Return type + +[**models::LobbyResponse**](LobbyResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## edit_lobby_channel_link + +> models::LobbyResponse edit_lobby_channel_link(lobby_id, edit_lobby_channel_link_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**edit_lobby_channel_link_request** | [**EditLobbyChannelLinkRequest**](EditLobbyChannelLinkRequest.md) | | [required] | + +### Return type + +[**models::LobbyResponse**](LobbyResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## execute_github_compatible_webhook + +> execute_github_compatible_webhook(webhook_id, webhook_token, github_webhook, wait, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**github_webhook** | [**GithubWebhook**](GithubWebhook.md) | | [required] | +**wait** | Option<**bool**> | | | +**thread_id** | Option<**String**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## execute_slack_compatible_webhook + +> String execute_slack_compatible_webhook(webhook_id, webhook_token, slack_webhook, wait, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**slack_webhook** | [**SlackWebhook**](SlackWebhook.md) | | [required] | +**wait** | Option<**bool**> | | | +**thread_id** | Option<**String**> | | | + +### Return type + +**String** + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## execute_webhook + +> models::MessageResponse execute_webhook(webhook_id, webhook_token, execute_webhook_request, wait, thread_id, with_components) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**execute_webhook_request** | [**ExecuteWebhookRequest**](ExecuteWebhookRequest.md) | | [required] | +**wait** | Option<**bool**> | | | +**thread_id** | Option<**String**> | | | +**with_components** | Option<**bool**> | | | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## follow_channel + +> models::ChannelFollowerResponse follow_channel(channel_id, follow_channel_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**follow_channel_request** | [**FollowChannelRequest**](FollowChannelRequest.md) | | [required] | + +### Return type + +[**models::ChannelFollowerResponse**](ChannelFollowerResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_active_guild_threads + +> models::ThreadsResponse get_active_guild_threads(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::ThreadsResponse**](ThreadsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_answer_voters + +> models::PollAnswerDetailsResponse get_answer_voters(channel_id, message_id, answer_id, after, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**answer_id** | **i32** | | [required] | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::PollAnswerDetailsResponse**](PollAnswerDetailsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_application + +> models::PrivateApplicationResponse get_application(application_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | + +### Return type + +[**models::PrivateApplicationResponse**](PrivateApplicationResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_application_command + +> models::ApplicationCommandResponse get_application_command(application_id, command_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**command_id** | **String** | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_application_emoji + +> models::EmojiResponse get_application_emoji(application_id, emoji_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_application_role_connections_metadata + +> Vec get_application_role_connections_metadata(application_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | + +### Return type + +[**Vec**](ApplicationRoleConnectionsMetadataItemResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_application_user_role_connection + +> models::ApplicationUserRoleConnectionResponse get_application_user_role_connection(application_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | + +### Return type + +[**models::ApplicationUserRoleConnectionResponse**](ApplicationUserRoleConnectionResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_auto_moderation_rule + +> models::CreateAutoModerationRule200Response get_auto_moderation_rule(guild_id, rule_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**rule_id** | **String** | | [required] | + +### Return type + +[**models::CreateAutoModerationRule200Response**](create_auto_moderation_rule_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_bot_gateway + +> models::GatewayBotResponse get_bot_gateway() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::GatewayBotResponse**](GatewayBotResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_channel + +> models::GetChannel200Response get_channel(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**models::GetChannel200Response**](get_channel_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_entitlement + +> models::EntitlementResponse get_entitlement(application_id, entitlement_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**entitlement_id** | **String** | | [required] | + +### Return type + +[**models::EntitlementResponse**](EntitlementResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_entitlements + +> Vec get_entitlements(sku_ids, application_id, user_id, guild_id, before, after, limit, exclude_ended, exclude_deleted, only_active) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sku_ids** | **String** | | [required] | +**application_id** | **String** | | [required] | +**user_id** | Option<**String**> | | | +**guild_id** | Option<**String**> | | | +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | +**exclude_ended** | Option<**bool**> | | | +**exclude_deleted** | Option<**bool**> | | | +**only_active** | Option<**bool**> | | | + +### Return type + +[**Vec**](EntitlementResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_gateway + +> models::GatewayResponse get_gateway() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::GatewayResponse**](GatewayResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild + +> models::GuildWithCountsResponse get_guild(guild_id, with_counts) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**with_counts** | Option<**bool**> | | | + +### Return type + +[**models::GuildWithCountsResponse**](GuildWithCountsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_application_command + +> models::ApplicationCommandResponse get_guild_application_command(application_id, guild_id, command_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**command_id** | **String** | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_application_command_permissions + +> models::CommandPermissionsResponse get_guild_application_command_permissions(application_id, guild_id, command_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**command_id** | **String** | | [required] | + +### Return type + +[**models::CommandPermissionsResponse**](CommandPermissionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_ban + +> models::GuildBanResponse get_guild_ban(guild_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + +[**models::GuildBanResponse**](GuildBanResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_emoji + +> models::EmojiResponse get_guild_emoji(guild_id, emoji_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_member + +> models::GuildMemberResponse get_guild_member(guild_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + +[**models::GuildMemberResponse**](GuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_new_member_welcome + +> models::GuildHomeSettingsResponse get_guild_new_member_welcome(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::GuildHomeSettingsResponse**](GuildHomeSettingsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_preview + +> models::GuildPreviewResponse get_guild_preview(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::GuildPreviewResponse**](GuildPreviewResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_role + +> models::GuildRoleResponse get_guild_role(guild_id, role_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**role_id** | **String** | | [required] | + +### Return type + +[**models::GuildRoleResponse**](GuildRoleResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_scheduled_event + +> models::ListGuildScheduledEvents200ResponseInner get_guild_scheduled_event(guild_id, guild_scheduled_event_id, with_user_count) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**guild_scheduled_event_id** | **String** | | [required] | +**with_user_count** | Option<**bool**> | | | + +### Return type + +[**models::ListGuildScheduledEvents200ResponseInner**](list_guild_scheduled_events_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_soundboard_sound + +> models::SoundboardSoundResponse get_guild_soundboard_sound(guild_id, sound_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sound_id** | **String** | | [required] | + +### Return type + +[**models::SoundboardSoundResponse**](SoundboardSoundResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_sticker + +> models::GuildStickerResponse get_guild_sticker(guild_id, sticker_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sticker_id** | **String** | | [required] | + +### Return type + +[**models::GuildStickerResponse**](GuildStickerResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_template + +> models::GuildTemplateResponse get_guild_template(code) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**code** | **String** | | [required] | + +### Return type + +[**models::GuildTemplateResponse**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_vanity_url + +> models::VanityUrlResponse get_guild_vanity_url(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::VanityUrlResponse**](VanityURLResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_webhooks + +> Vec get_guild_webhooks(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_welcome_screen + +> models::GuildWelcomeScreenResponse get_guild_welcome_screen(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::GuildWelcomeScreenResponse**](GuildWelcomeScreenResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_widget + +> models::WidgetResponse get_guild_widget(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::WidgetResponse**](WidgetResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_widget_png + +> String get_guild_widget_png(guild_id, style) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**style** | Option<**String**> | | | + +### Return type + +**String** + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: image/png, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guild_widget_settings + +> models::WidgetSettingsResponse get_guild_widget_settings(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::WidgetSettingsResponse**](WidgetSettingsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_guilds_onboarding + +> models::UserGuildOnboardingResponse get_guilds_onboarding(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::UserGuildOnboardingResponse**](UserGuildOnboardingResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_lobby + +> models::LobbyResponse get_lobby(lobby_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | + +### Return type + +[**models::LobbyResponse**](LobbyResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_lobby_messages + +> Vec get_lobby_messages(lobby_id, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | +**limit** | Option<**i32**> | | | + +### Return type + +[**Vec**](LobbyMessageResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_message + +> models::MessageResponse get_message(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_my_application + +> models::PrivateApplicationResponse get_my_application() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::PrivateApplicationResponse**](PrivateApplicationResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_my_guild_member + +> models::PrivateGuildMemberResponse get_my_guild_member(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::PrivateGuildMemberResponse**](PrivateGuildMemberResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_my_oauth2_application + +> models::PrivateApplicationResponse get_my_oauth2_application() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::PrivateApplicationResponse**](PrivateApplicationResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_my_oauth2_authorization + +> models::OAuth2GetAuthorizationResponse get_my_oauth2_authorization() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::OAuth2GetAuthorizationResponse**](OAuth2GetAuthorizationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_my_user + +> models::UserPiiResponse get_my_user() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::UserPiiResponse**](UserPIIResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_openid_connect_userinfo + +> models::OAuth2GetOpenIdConnectUserInfoResponse get_openid_connect_userinfo() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::OAuth2GetOpenIdConnectUserInfoResponse**](OAuth2GetOpenIDConnectUserInfoResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_original_webhook_message + +> models::MessageResponse get_original_webhook_message(webhook_id, webhook_token, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**thread_id** | Option<**String**> | | | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_public_keys + +> models::OAuth2GetKeys get_public_keys() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::OAuth2GetKeys**](OAuth2GetKeys.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_self_voice_state + +> models::VoiceStateResponse get_self_voice_state(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::VoiceStateResponse**](VoiceStateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_soundboard_default_sounds + +> Vec get_soundboard_default_sounds() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](SoundboardSoundResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_stage_instance + +> models::StageInstanceResponse get_stage_instance(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**models::StageInstanceResponse**](StageInstanceResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_sticker + +> models::GetSticker200Response get_sticker(sticker_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sticker_id** | **String** | | [required] | + +### Return type + +[**models::GetSticker200Response**](get_sticker_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_sticker_pack + +> models::StickerPackResponse get_sticker_pack(pack_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**pack_id** | **String** | | [required] | + +### Return type + +[**models::StickerPackResponse**](StickerPackResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_thread_member + +> models::ThreadMemberResponse get_thread_member(channel_id, user_id, with_member) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**with_member** | Option<**bool**> | | | + +### Return type + +[**models::ThreadMemberResponse**](ThreadMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_user + +> models::UserResponse get_user(user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_id** | **String** | | [required] | + +### Return type + +[**models::UserResponse**](UserResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_voice_state + +> models::VoiceStateResponse get_voice_state(guild_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + +[**models::VoiceStateResponse**](VoiceStateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_webhook + +> models::ListChannelWebhooks200ResponseInner get_webhook(webhook_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | + +### Return type + +[**models::ListChannelWebhooks200ResponseInner**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_webhook_by_token + +> models::ListChannelWebhooks200ResponseInner get_webhook_by_token(webhook_id, webhook_token) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | + +### Return type + +[**models::ListChannelWebhooks200ResponseInner**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_webhook_message + +> models::MessageResponse get_webhook_message(webhook_id, webhook_token, message_id, thread_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**message_id** | **String** | | [required] | +**thread_id** | Option<**String**> | | | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## invite_resolve + +> models::ListChannelInvites200ResponseInner invite_resolve(code, with_counts, guild_scheduled_event_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**code** | **String** | | [required] | +**with_counts** | Option<**bool**> | | | +**guild_scheduled_event_id** | Option<**String**> | | | + +### Return type + +[**models::ListChannelInvites200ResponseInner**](list_channel_invites_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## invite_revoke + +> models::ListChannelInvites200ResponseInner invite_revoke(code) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**code** | **String** | | [required] | + +### Return type + +[**models::ListChannelInvites200ResponseInner**](list_channel_invites_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## join_thread + +> join_thread(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## leave_guild + +> leave_guild(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## leave_lobby + +> leave_lobby(lobby_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## leave_thread + +> leave_thread(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_application_commands + +> Vec list_application_commands(application_id, with_localizations) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**with_localizations** | Option<**bool**> | | | + +### Return type + +[**Vec**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_application_emojis + +> models::ListApplicationEmojisResponse list_application_emojis(application_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | + +### Return type + +[**models::ListApplicationEmojisResponse**](ListApplicationEmojisResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_auto_moderation_rules + +> Vec list_auto_moderation_rules(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_auto_moderation_rules_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_channel_invites + +> Vec list_channel_invites(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_channel_invites_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_channel_webhooks + +> Vec list_channel_webhooks(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_application_command_permissions + +> Vec list_guild_application_command_permissions(application_id, guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](CommandPermissionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_application_commands + +> Vec list_guild_application_commands(application_id, guild_id, with_localizations) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**with_localizations** | Option<**bool**> | | | + +### Return type + +[**Vec**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_audit_log_entries + +> models::GuildAuditLogResponse list_guild_audit_log_entries(guild_id, user_id, target_id, action_type, before, after, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | Option<**String**> | | | +**target_id** | Option<**String**> | | | +**action_type** | Option<**i32**> | | | +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::GuildAuditLogResponse**](GuildAuditLogResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_bans + +> Vec list_guild_bans(guild_id, limit, before, after) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**limit** | Option<**i32**> | | | +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | + +### Return type + +[**Vec**](GuildBanResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_channels + +> Vec list_guild_channels(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](get_channel_200_response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_emojis + +> Vec list_guild_emojis(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_integrations + +> Vec list_guild_integrations(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_guild_integrations_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_invites + +> Vec list_guild_invites(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](list_channel_invites_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_members + +> Vec list_guild_members(guild_id, limit, after) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**limit** | Option<**i32**> | | | +**after** | Option<**i32**> | | | + +### Return type + +[**Vec**](GuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_roles + +> Vec list_guild_roles(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](GuildRoleResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_scheduled_event_users + +> Vec list_guild_scheduled_event_users(guild_id, guild_scheduled_event_id, with_member, limit, before, after) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**guild_scheduled_event_id** | **String** | | [required] | +**with_member** | Option<**bool**> | | | +**limit** | Option<**i32**> | | | +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | + +### Return type + +[**Vec**](ScheduledEventUserResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_scheduled_events + +> Vec list_guild_scheduled_events(guild_id, with_user_count) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**with_user_count** | Option<**bool**> | | | + +### Return type + +[**Vec**](list_guild_scheduled_events_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_soundboard_sounds + +> models::ListGuildSoundboardSoundsResponse list_guild_soundboard_sounds(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**models::ListGuildSoundboardSoundsResponse**](ListGuildSoundboardSoundsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_stickers + +> Vec list_guild_stickers(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](GuildStickerResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_templates + +> Vec list_guild_templates(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_guild_voice_regions + +> Vec list_guild_voice_regions(guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](VoiceRegionResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_message_reactions_by_emoji + +> Vec list_message_reactions_by_emoji(channel_id, message_id, emoji_name, after, limit, r#type) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**emoji_name** | **String** | | [required] | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | +**r#type** | Option<**i32**> | | | + +### Return type + +[**Vec**](UserResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_messages + +> Vec list_messages(channel_id, around, before, after, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**around** | Option<**String**> | | | +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**Vec**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_my_connections + +> Vec list_my_connections() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](ConnectedAccountResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_my_guilds + +> Vec list_my_guilds(before, after, limit, with_counts) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**before** | Option<**String**> | | | +**after** | Option<**String**> | | | +**limit** | Option<**i32**> | | | +**with_counts** | Option<**bool**> | | | + +### Return type + +[**Vec**](MyGuildResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_my_private_archived_threads + +> models::ThreadsResponse list_my_private_archived_threads(channel_id, before, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**before** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::ThreadsResponse**](ThreadsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_pins + +> models::PinnedMessagesResponse list_pins(channel_id, before, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**before** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::PinnedMessagesResponse**](PinnedMessagesResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_private_archived_threads + +> models::ThreadsResponse list_private_archived_threads(channel_id, before, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**before** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::ThreadsResponse**](ThreadsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_public_archived_threads + +> models::ThreadsResponse list_public_archived_threads(channel_id, before, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**before** | Option<**String**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::ThreadsResponse**](ThreadsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sticker_packs + +> models::StickerPackCollectionResponse list_sticker_packs() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::StickerPackCollectionResponse**](StickerPackCollectionResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_thread_members + +> Vec list_thread_members(channel_id, with_member, limit, after) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**with_member** | Option<**bool**> | | | +**limit** | Option<**i32**> | | | +**after** | Option<**String**> | | | + +### Return type + +[**Vec**](ThreadMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_voice_regions + +> Vec list_voice_regions() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Vec**](VoiceRegionResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## partner_sdk_token + +> models::ProvisionalTokenResponse partner_sdk_token(partner_sdk_unmerge_provisional_account_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**partner_sdk_unmerge_provisional_account_request** | [**PartnerSdkUnmergeProvisionalAccountRequest**](PartnerSdkUnmergeProvisionalAccountRequest.md) | | [required] | + +### Return type + +[**models::ProvisionalTokenResponse**](ProvisionalTokenResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## partner_sdk_unmerge_provisional_account + +> partner_sdk_unmerge_provisional_account(partner_sdk_unmerge_provisional_account_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**partner_sdk_unmerge_provisional_account_request** | [**PartnerSdkUnmergeProvisionalAccountRequest**](PartnerSdkUnmergeProvisionalAccountRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## poll_expire + +> models::MessageResponse poll_expire(channel_id, message_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## preview_prune_guild + +> models::GuildPruneResponse preview_prune_guild(guild_id, days, include_roles) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**days** | Option<**i32**> | | | +**include_roles** | Option<**String**> | | | + +### Return type + +[**models::GuildPruneResponse**](GuildPruneResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## prune_guild + +> models::GuildPruneResponse prune_guild(guild_id, prune_guild_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**prune_guild_request** | [**PruneGuildRequest**](PruneGuildRequest.md) | | [required] | + +### Return type + +[**models::GuildPruneResponse**](GuildPruneResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## put_guilds_onboarding + +> models::GuildOnboardingResponse put_guilds_onboarding(guild_id, update_guild_onboarding_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**update_guild_onboarding_request** | [**UpdateGuildOnboardingRequest**](UpdateGuildOnboardingRequest.md) | | [required] | + +### Return type + +[**models::GuildOnboardingResponse**](GuildOnboardingResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## search_guild_members + +> Vec search_guild_members(limit, query, guild_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**limit** | **i32** | | [required] | +**query** | **String** | | [required] | +**guild_id** | **String** | | [required] | + +### Return type + +[**Vec**](GuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## send_soundboard_sound + +> send_soundboard_sound(channel_id, soundboard_sound_send_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**soundboard_sound_send_request** | [**SoundboardSoundSendRequest**](SoundboardSoundSendRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## set_channel_permission_overwrite + +> set_channel_permission_overwrite(channel_id, overwrite_id, set_channel_permission_overwrite_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**overwrite_id** | **String** | | [required] | +**set_channel_permission_overwrite_request** | [**SetChannelPermissionOverwriteRequest**](SetChannelPermissionOverwriteRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## set_guild_application_command_permissions + +> models::CommandPermissionsResponse set_guild_application_command_permissions(application_id, guild_id, command_id, set_guild_application_command_permissions_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**command_id** | **String** | | [required] | +**set_guild_application_command_permissions_request** | [**SetGuildApplicationCommandPermissionsRequest**](SetGuildApplicationCommandPermissionsRequest.md) | | [required] | + +### Return type + +[**models::CommandPermissionsResponse**](CommandPermissionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## set_guild_mfa_level + +> models::GuildMfaLevelResponse set_guild_mfa_level(guild_id, set_guild_mfa_level_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**set_guild_mfa_level_request** | [**SetGuildMfaLevelRequest**](SetGuildMfaLevelRequest.md) | | [required] | + +### Return type + +[**models::GuildMfaLevelResponse**](GuildMFALevelResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## sync_guild_template + +> models::GuildTemplateResponse sync_guild_template(guild_id, code) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**code** | **String** | | [required] | + +### Return type + +[**models::GuildTemplateResponse**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## thread_search + +> models::ThreadSearchResponse thread_search(channel_id, name, slop, min_id, max_id, tag, tag_setting, archived, sort_by, sort_order, limit, offset) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**name** | Option<**String**> | | | +**slop** | Option<**i32**> | | | +**min_id** | Option<**String**> | | | +**max_id** | Option<**String**> | | | +**tag** | Option<**String**> | | | +**tag_setting** | Option<**String**> | | | +**archived** | Option<**bool**> | | | +**sort_by** | Option<**String**> | | | +**sort_order** | Option<**String**> | | | +**limit** | Option<**i32**> | | | +**offset** | Option<**i32**> | | | + +### Return type + +[**models::ThreadSearchResponse**](ThreadSearchResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## trigger_typing_indicator + +> serde_json::Value trigger_typing_indicator(channel_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | + +### Return type + +[**serde_json::Value**](serde_json::Value.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## unban_user_from_guild + +> unban_user_from_guild(guild_id, user_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application + +> models::PrivateApplicationResponse update_application(application_id, application_form_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**application_form_partial** | [**ApplicationFormPartial**](ApplicationFormPartial.md) | | [required] | + +### Return type + +[**models::PrivateApplicationResponse**](PrivateApplicationResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application_command + +> models::ApplicationCommandResponse update_application_command(application_id, command_id, application_command_patch_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**command_id** | **String** | | [required] | +**application_command_patch_request_partial** | [**ApplicationCommandPatchRequestPartial**](ApplicationCommandPatchRequestPartial.md) | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application_emoji + +> models::EmojiResponse update_application_emoji(application_id, emoji_id, update_application_emoji_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | +**update_application_emoji_request** | [**UpdateApplicationEmojiRequest**](UpdateApplicationEmojiRequest.md) | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application_role_connections_metadata + +> Vec update_application_role_connections_metadata(application_id, application_role_connections_metadata_item_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**application_role_connections_metadata_item_request** | Option<[**Vec**](ApplicationRoleConnectionsMetadataItemRequest.md)> | | [required] | + +### Return type + +[**Vec**](ApplicationRoleConnectionsMetadataItemResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application_user_role_connection + +> models::ApplicationUserRoleConnectionResponse update_application_user_role_connection(application_id, update_application_user_role_connection_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**update_application_user_role_connection_request** | [**UpdateApplicationUserRoleConnectionRequest**](UpdateApplicationUserRoleConnectionRequest.md) | | [required] | + +### Return type + +[**models::ApplicationUserRoleConnectionResponse**](ApplicationUserRoleConnectionResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_auto_moderation_rule + +> models::CreateAutoModerationRule200Response update_auto_moderation_rule(guild_id, rule_id, update_auto_moderation_rule_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**rule_id** | **String** | | [required] | +**update_auto_moderation_rule_request** | [**UpdateAutoModerationRuleRequest**](UpdateAutoModerationRuleRequest.md) | | [required] | + +### Return type + +[**models::CreateAutoModerationRule200Response**](create_auto_moderation_rule_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_channel + +> models::GetChannel200Response update_channel(channel_id, update_channel_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**update_channel_request** | [**UpdateChannelRequest**](UpdateChannelRequest.md) | | [required] | + +### Return type + +[**models::GetChannel200Response**](get_channel_200_response.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild + +> models::GuildResponse update_guild(guild_id, guild_patch_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**guild_patch_request_partial** | [**GuildPatchRequestPartial**](GuildPatchRequestPartial.md) | | [required] | + +### Return type + +[**models::GuildResponse**](GuildResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_application_command + +> models::ApplicationCommandResponse update_guild_application_command(application_id, guild_id, command_id, application_command_patch_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**guild_id** | **String** | | [required] | +**command_id** | **String** | | [required] | +**application_command_patch_request_partial** | [**ApplicationCommandPatchRequestPartial**](ApplicationCommandPatchRequestPartial.md) | | [required] | + +### Return type + +[**models::ApplicationCommandResponse**](ApplicationCommandResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_emoji + +> models::EmojiResponse update_guild_emoji(guild_id, emoji_id, update_guild_emoji_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**emoji_id** | **String** | | [required] | +**update_guild_emoji_request** | [**UpdateGuildEmojiRequest**](UpdateGuildEmojiRequest.md) | | [required] | + +### Return type + +[**models::EmojiResponse**](EmojiResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_member + +> models::GuildMemberResponse update_guild_member(guild_id, user_id, update_guild_member_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**update_guild_member_request** | [**UpdateGuildMemberRequest**](UpdateGuildMemberRequest.md) | | [required] | + +### Return type + +[**models::GuildMemberResponse**](GuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_role + +> models::GuildRoleResponse update_guild_role(guild_id, role_id, create_guild_role_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**role_id** | **String** | | [required] | +**create_guild_role_request** | [**CreateGuildRoleRequest**](CreateGuildRoleRequest.md) | | [required] | + +### Return type + +[**models::GuildRoleResponse**](GuildRoleResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_scheduled_event + +> models::ListGuildScheduledEvents200ResponseInner update_guild_scheduled_event(guild_id, guild_scheduled_event_id, update_guild_scheduled_event_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**guild_scheduled_event_id** | **String** | | [required] | +**update_guild_scheduled_event_request** | [**UpdateGuildScheduledEventRequest**](UpdateGuildScheduledEventRequest.md) | | [required] | + +### Return type + +[**models::ListGuildScheduledEvents200ResponseInner**](list_guild_scheduled_events_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_soundboard_sound + +> models::SoundboardSoundResponse update_guild_soundboard_sound(guild_id, sound_id, soundboard_patch_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sound_id** | **String** | | [required] | +**soundboard_patch_request_partial** | [**SoundboardPatchRequestPartial**](SoundboardPatchRequestPartial.md) | | [required] | + +### Return type + +[**models::SoundboardSoundResponse**](SoundboardSoundResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_sticker + +> models::GuildStickerResponse update_guild_sticker(guild_id, sticker_id, update_guild_sticker_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**sticker_id** | **String** | | [required] | +**update_guild_sticker_request** | [**UpdateGuildStickerRequest**](UpdateGuildStickerRequest.md) | | [required] | + +### Return type + +[**models::GuildStickerResponse**](GuildStickerResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_template + +> models::GuildTemplateResponse update_guild_template(guild_id, code, update_guild_template_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**code** | **String** | | [required] | +**update_guild_template_request** | [**UpdateGuildTemplateRequest**](UpdateGuildTemplateRequest.md) | | [required] | + +### Return type + +[**models::GuildTemplateResponse**](GuildTemplateResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_welcome_screen + +> models::GuildWelcomeScreenResponse update_guild_welcome_screen(guild_id, welcome_screen_patch_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**welcome_screen_patch_request_partial** | [**WelcomeScreenPatchRequestPartial**](WelcomeScreenPatchRequestPartial.md) | | [required] | + +### Return type + +[**models::GuildWelcomeScreenResponse**](GuildWelcomeScreenResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_guild_widget_settings + +> models::WidgetSettingsResponse update_guild_widget_settings(guild_id, update_guild_widget_settings_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**update_guild_widget_settings_request** | [**UpdateGuildWidgetSettingsRequest**](UpdateGuildWidgetSettingsRequest.md) | | [required] | + +### Return type + +[**models::WidgetSettingsResponse**](WidgetSettingsResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_message + +> models::MessageResponse update_message(channel_id, message_id, message_edit_request_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**message_id** | **String** | | [required] | +**message_edit_request_partial** | [**MessageEditRequestPartial**](MessageEditRequestPartial.md) | | [required] | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_my_application + +> models::PrivateApplicationResponse update_my_application(application_form_partial) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_form_partial** | [**ApplicationFormPartial**](ApplicationFormPartial.md) | | [required] | + +### Return type + +[**models::PrivateApplicationResponse**](PrivateApplicationResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_my_guild_member + +> models::PrivateGuildMemberResponse update_my_guild_member(guild_id, update_my_guild_member_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**update_my_guild_member_request** | [**UpdateMyGuildMemberRequest**](UpdateMyGuildMemberRequest.md) | | [required] | + +### Return type + +[**models::PrivateGuildMemberResponse**](PrivateGuildMemberResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_my_user + +> models::UserPiiResponse update_my_user(bot_account_patch_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**bot_account_patch_request** | [**BotAccountPatchRequest**](BotAccountPatchRequest.md) | | [required] | + +### Return type + +[**models::UserPiiResponse**](UserPIIResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_original_webhook_message + +> models::MessageResponse update_original_webhook_message(webhook_id, webhook_token, incoming_webhook_update_request_partial, thread_id, with_components) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**incoming_webhook_update_request_partial** | [**IncomingWebhookUpdateRequestPartial**](IncomingWebhookUpdateRequestPartial.md) | | [required] | +**thread_id** | Option<**String**> | | | +**with_components** | Option<**bool**> | | | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_self_voice_state + +> update_self_voice_state(guild_id, update_self_voice_state_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**update_self_voice_state_request** | [**UpdateSelfVoiceStateRequest**](UpdateSelfVoiceStateRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_stage_instance + +> models::StageInstanceResponse update_stage_instance(channel_id, update_stage_instance_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**channel_id** | **String** | | [required] | +**update_stage_instance_request** | [**UpdateStageInstanceRequest**](UpdateStageInstanceRequest.md) | | [required] | + +### Return type + +[**models::StageInstanceResponse**](StageInstanceResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_voice_state + +> update_voice_state(guild_id, user_id, update_voice_state_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**guild_id** | **String** | | [required] | +**user_id** | **String** | | [required] | +**update_voice_state_request** | [**UpdateVoiceStateRequest**](UpdateVoiceStateRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_webhook + +> models::ListChannelWebhooks200ResponseInner update_webhook(webhook_id, update_webhook_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**update_webhook_request** | [**UpdateWebhookRequest**](UpdateWebhookRequest.md) | | [required] | + +### Return type + +[**models::ListChannelWebhooks200ResponseInner**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_webhook_by_token + +> models::ListChannelWebhooks200ResponseInner update_webhook_by_token(webhook_id, webhook_token, update_webhook_by_token_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**update_webhook_by_token_request** | [**UpdateWebhookByTokenRequest**](UpdateWebhookByTokenRequest.md) | | [required] | + +### Return type + +[**models::ListChannelWebhooks200ResponseInner**](list_channel_webhooks_200_response_inner.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_webhook_message + +> models::MessageResponse update_webhook_message(webhook_id, webhook_token, message_id, incoming_webhook_update_request_partial, thread_id, with_components) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**webhook_id** | **String** | | [required] | +**webhook_token** | **String** | | [required] | +**message_id** | **String** | | [required] | +**incoming_webhook_update_request_partial** | [**IncomingWebhookUpdateRequestPartial**](IncomingWebhookUpdateRequestPartial.md) | | [required] | +**thread_id** | Option<**String**> | | | +**with_components** | Option<**bool**> | | | + +### Return type + +[**models::MessageResponse**](MessageResponse.md) + +### Authorization + +[BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## upload_application_attachment + +> models::ActivitiesAttachmentResponse upload_application_attachment(application_id, file) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**application_id** | **String** | | [required] | +**file** | **String** | | [required] | + +### Return type + +[**models::ActivitiesAttachmentResponse**](ActivitiesAttachmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2), [BotToken](../README.md#BotToken) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DefaultKeywordListTriggerMetadata.md b/docs/DefaultKeywordListTriggerMetadata.md new file mode 100644 index 0000000..0c570b2 --- /dev/null +++ b/docs/DefaultKeywordListTriggerMetadata.md @@ -0,0 +1,12 @@ +# DefaultKeywordListTriggerMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_list** | Option<**Vec**> | | [optional] +**presets** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordListTriggerMetadataResponse.md b/docs/DefaultKeywordListTriggerMetadataResponse.md new file mode 100644 index 0000000..564b0e0 --- /dev/null +++ b/docs/DefaultKeywordListTriggerMetadataResponse.md @@ -0,0 +1,12 @@ +# DefaultKeywordListTriggerMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_list** | **Vec** | | +**presets** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordListUpsertRequest.md b/docs/DefaultKeywordListUpsertRequest.md new file mode 100644 index 0000000..b742d01 --- /dev/null +++ b/docs/DefaultKeywordListUpsertRequest.md @@ -0,0 +1,18 @@ +# DefaultKeywordListUpsertRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**event_type** | **i32** | | +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | **i32** | | +**trigger_metadata** | [**models::DefaultKeywordListTriggerMetadata**](DefaultKeywordListTriggerMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordListUpsertRequestActionsInner.md b/docs/DefaultKeywordListUpsertRequestActionsInner.md new file mode 100644 index 0000000..3b6036c --- /dev/null +++ b/docs/DefaultKeywordListUpsertRequestActionsInner.md @@ -0,0 +1,14 @@ +# DefaultKeywordListUpsertRequestActionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| BlockMessageAction | | +| FlagToChannelAction | | +| QuarantineUserAction | | +| UserCommunicationDisabledAction | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordListUpsertRequestPartial.md b/docs/DefaultKeywordListUpsertRequestPartial.md new file mode 100644 index 0000000..8c086df --- /dev/null +++ b/docs/DefaultKeywordListUpsertRequestPartial.md @@ -0,0 +1,18 @@ +# DefaultKeywordListUpsertRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**event_type** | Option<**i32**> | | [optional] +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | Option<**i32**> | | [optional] +**trigger_metadata** | Option<[**models::DefaultKeywordListTriggerMetadata**](DefaultKeywordListTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordRuleResponse.md b/docs/DefaultKeywordRuleResponse.md new file mode 100644 index 0000000..ed9fc18 --- /dev/null +++ b/docs/DefaultKeywordRuleResponse.md @@ -0,0 +1,21 @@ +# DefaultKeywordRuleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**creator_id** | **String** | | +**name** | **String** | | +**event_type** | **i32** | | +**actions** | [**Vec**](DefaultKeywordRuleResponse_actions_inner.md) | | +**trigger_type** | **i32** | | +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_metadata** | [**models::DefaultKeywordListTriggerMetadataResponse**](DefaultKeywordListTriggerMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultKeywordRuleResponseActionsInner.md b/docs/DefaultKeywordRuleResponseActionsInner.md new file mode 100644 index 0000000..7b99f67 --- /dev/null +++ b/docs/DefaultKeywordRuleResponseActionsInner.md @@ -0,0 +1,14 @@ +# DefaultKeywordRuleResponseActionsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| BlockMessageActionResponse | | +| FlagToChannelActionResponse | | +| QuarantineUserActionResponse | | +| UserCommunicationDisabledActionResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultReactionEmojiResponse.md b/docs/DefaultReactionEmojiResponse.md new file mode 100644 index 0000000..bed57fb --- /dev/null +++ b/docs/DefaultReactionEmojiResponse.md @@ -0,0 +1,12 @@ +# DefaultReactionEmojiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DiscordIntegrationResponse.md b/docs/DiscordIntegrationResponse.md new file mode 100644 index 0000000..9af52a6 --- /dev/null +++ b/docs/DiscordIntegrationResponse.md @@ -0,0 +1,18 @@ +# DiscordIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**id** | **String** | | +**application** | [**models::IntegrationApplicationResponse**](IntegrationApplicationResponse.md) | | +**scopes** | **Vec** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EditLobbyChannelLinkRequest.md b/docs/EditLobbyChannelLinkRequest.md new file mode 100644 index 0000000..5b39af1 --- /dev/null +++ b/docs/EditLobbyChannelLinkRequest.md @@ -0,0 +1,11 @@ +# EditLobbyChannelLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EmbeddedActivityInstance.md b/docs/EmbeddedActivityInstance.md new file mode 100644 index 0000000..d19de27 --- /dev/null +++ b/docs/EmbeddedActivityInstance.md @@ -0,0 +1,15 @@ +# EmbeddedActivityInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | **String** | | +**instance_id** | **String** | | +**launch_id** | **String** | | +**location** | Option<[**models::EmbeddedActivityInstanceLocation**](EmbeddedActivityInstance_location.md)> | | [optional] +**users** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EmbeddedActivityInstanceLocation.md b/docs/EmbeddedActivityInstanceLocation.md new file mode 100644 index 0000000..74a24c7 --- /dev/null +++ b/docs/EmbeddedActivityInstanceLocation.md @@ -0,0 +1,12 @@ +# EmbeddedActivityInstanceLocation + +## Enum Variants + +| Name | Description | +|---- | -----| +| GuildChannelLocation | | +| PrivateChannelLocation | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EmojiResponse.md b/docs/EmojiResponse.md new file mode 100644 index 0000000..c008be8 --- /dev/null +++ b/docs/EmojiResponse.md @@ -0,0 +1,18 @@ +# EmojiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**roles** | **Vec** | | +**require_colons** | **bool** | | +**managed** | **bool** | | +**animated** | **bool** | | +**available** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EntitlementResponse.md b/docs/EntitlementResponse.md new file mode 100644 index 0000000..0137a92 --- /dev/null +++ b/docs/EntitlementResponse.md @@ -0,0 +1,22 @@ +# EntitlementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**sku_id** | **String** | | +**application_id** | **String** | | +**user_id** | **String** | | +**guild_id** | Option<**String**> | | [optional] +**deleted** | **bool** | | +**starts_at** | Option<**String**> | | [optional] +**ends_at** | Option<**String**> | | [optional] +**r#type** | Option<**i32**> | | +**fulfilled_at** | Option<**String**> | | [optional] +**fulfillment_status** | Option<**i32**> | | [optional] +**consumed** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EntityMetadataExternal.md b/docs/EntityMetadataExternal.md new file mode 100644 index 0000000..efdb17c --- /dev/null +++ b/docs/EntityMetadataExternal.md @@ -0,0 +1,11 @@ +# EntityMetadataExternal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**location** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EntityMetadataExternalResponse.md b/docs/EntityMetadataExternalResponse.md new file mode 100644 index 0000000..270ccea --- /dev/null +++ b/docs/EntityMetadataExternalResponse.md @@ -0,0 +1,11 @@ +# EntityMetadataExternalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**location** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Error.md b/docs/Error.md new file mode 100644 index 0000000..43eaacb --- /dev/null +++ b/docs/Error.md @@ -0,0 +1,12 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **i32** | Discord internal error code. See error code reference | +**message** | **String** | Human-readable error message | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorDetails.md b/docs/ErrorDetails.md new file mode 100644 index 0000000..09494e8 --- /dev/null +++ b/docs/ErrorDetails.md @@ -0,0 +1,12 @@ +# ErrorDetails + +## Enum Variants + +| Name | Description | +|---- | -----| +| InnerErrors | | +| std::collections::HashMap | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md new file mode 100644 index 0000000..797d380 --- /dev/null +++ b/docs/ErrorResponse.md @@ -0,0 +1,13 @@ +# ErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **i32** | Discord internal error code. See error code reference | +**message** | **String** | Human-readable error message | +**errors** | Option<[**models::ErrorDetails**](ErrorDetails.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExecuteWebhookRequest.md b/docs/ExecuteWebhookRequest.md new file mode 100644 index 0000000..90f0162 --- /dev/null +++ b/docs/ExecuteWebhookRequest.md @@ -0,0 +1,22 @@ +# ExecuteWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**tts** | Option<**bool**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**username** | Option<**String**> | | [optional] +**avatar_url** | Option<**String**> | | [optional] +**thread_name** | Option<**String**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExternalConnectionIntegrationResponse.md b/docs/ExternalConnectionIntegrationResponse.md new file mode 100644 index 0000000..f4eb245 --- /dev/null +++ b/docs/ExternalConnectionIntegrationResponse.md @@ -0,0 +1,24 @@ +# ExternalConnectionIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**id** | **String** | | +**user** | [**models::UserResponse**](UserResponse.md) | | +**revoked** | Option<**bool**> | | [optional] +**expire_behavior** | Option<**i32**> | | [optional] +**expire_grace_period** | Option<**i32**> | | [optional] +**subscriber_count** | Option<**i32**> | | [optional] +**synced_at** | Option<**String**> | | [optional] +**role_id** | Option<**String**> | | [optional] +**syncing** | Option<**bool**> | | [optional] +**enable_emoticons** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExternalScheduledEventCreateRequest.md b/docs/ExternalScheduledEventCreateRequest.md new file mode 100644 index 0000000..94ee6b7 --- /dev/null +++ b/docs/ExternalScheduledEventCreateRequest.md @@ -0,0 +1,19 @@ +# ExternalScheduledEventCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**entity_type** | Option<**i32**> | | +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | [**models::EntityMetadataExternal**](EntityMetadataExternal.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExternalScheduledEventPatchRequestPartial.md b/docs/ExternalScheduledEventPatchRequestPartial.md new file mode 100644 index 0000000..9462c4c --- /dev/null +++ b/docs/ExternalScheduledEventPatchRequestPartial.md @@ -0,0 +1,20 @@ +# ExternalScheduledEventPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | Option<**i32**> | | [optional] +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | Option<**String**> | | [optional] +**scheduled_end_time** | Option<**String**> | | [optional] +**entity_type** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**models::EntityMetadataExternal**](EntityMetadataExternal.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExternalScheduledEventResponse.md b/docs/ExternalScheduledEventResponse.md new file mode 100644 index 0000000..d661c3c --- /dev/null +++ b/docs/ExternalScheduledEventResponse.md @@ -0,0 +1,27 @@ +# ExternalScheduledEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**creator_id** | Option<**String**> | | [optional] +**creator** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**status** | Option<**i32**> | | +**entity_type** | Option<**i32**> | | +**entity_id** | Option<**String**> | | [optional] +**user_count** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**user_rsvp** | Option<[**models::ScheduledEventUserResponse**](ScheduledEventUserResponse.md)> | | [optional] +**entity_metadata** | [**models::EntityMetadataExternalResponse**](EntityMetadataExternalResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileComponentForMessageRequest.md b/docs/FileComponentForMessageRequest.md new file mode 100644 index 0000000..36f789c --- /dev/null +++ b/docs/FileComponentForMessageRequest.md @@ -0,0 +1,13 @@ +# FileComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**spoiler** | Option<**bool**> | | [optional] +**file** | [**models::UnfurledMediaRequestWithAttachmentReferenceRequired**](UnfurledMediaRequestWithAttachmentReferenceRequired.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileComponentResponse.md b/docs/FileComponentResponse.md new file mode 100644 index 0000000..051523d --- /dev/null +++ b/docs/FileComponentResponse.md @@ -0,0 +1,16 @@ +# FileComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**file** | [**models::UnfurledMediaResponse**](UnfurledMediaResponse.md) | | +**name** | Option<**String**> | | [optional] +**size** | Option<**i32**> | | [optional] +**spoiler** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlagToChannelAction.md b/docs/FlagToChannelAction.md new file mode 100644 index 0000000..44e9784 --- /dev/null +++ b/docs/FlagToChannelAction.md @@ -0,0 +1,12 @@ +# FlagToChannelAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**models::FlagToChannelActionMetadata**](FlagToChannelActionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlagToChannelActionMetadata.md b/docs/FlagToChannelActionMetadata.md new file mode 100644 index 0000000..147ad35 --- /dev/null +++ b/docs/FlagToChannelActionMetadata.md @@ -0,0 +1,11 @@ +# FlagToChannelActionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlagToChannelActionMetadataResponse.md b/docs/FlagToChannelActionMetadataResponse.md new file mode 100644 index 0000000..8e2f1ca --- /dev/null +++ b/docs/FlagToChannelActionMetadataResponse.md @@ -0,0 +1,11 @@ +# FlagToChannelActionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlagToChannelActionResponse.md b/docs/FlagToChannelActionResponse.md new file mode 100644 index 0000000..d66e1cf --- /dev/null +++ b/docs/FlagToChannelActionResponse.md @@ -0,0 +1,12 @@ +# FlagToChannelActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**models::FlagToChannelActionMetadataResponse**](FlagToChannelActionMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FollowChannelRequest.md b/docs/FollowChannelRequest.md new file mode 100644 index 0000000..dba3332 --- /dev/null +++ b/docs/FollowChannelRequest.md @@ -0,0 +1,11 @@ +# FollowChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**webhook_channel_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ForumTagResponse.md b/docs/ForumTagResponse.md new file mode 100644 index 0000000..b56b6c1 --- /dev/null +++ b/docs/ForumTagResponse.md @@ -0,0 +1,15 @@ +# ForumTagResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**moderated** | **bool** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FriendInviteResponse.md b/docs/FriendInviteResponse.md new file mode 100644 index 0000000..d1f2568 --- /dev/null +++ b/docs/FriendInviteResponse.md @@ -0,0 +1,22 @@ +# FriendInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**code** | **String** | | +**inviter** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**max_age** | Option<**i32**> | | [optional] +**created_at** | Option<**String**> | | [optional] +**expires_at** | Option<**String**> | | [optional] +**friends_count** | Option<**i32**> | | [optional] +**channel** | Option<[**models::InviteChannelResponse**](InviteChannelResponse.md)> | | [optional] +**is_contact** | Option<**bool**> | | [optional] +**uses** | Option<**i32**> | | [optional] +**max_uses** | Option<**i32**> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GatewayBotResponse.md b/docs/GatewayBotResponse.md new file mode 100644 index 0000000..fa8772c --- /dev/null +++ b/docs/GatewayBotResponse.md @@ -0,0 +1,13 @@ +# GatewayBotResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | +**session_start_limit** | [**models::GatewayBotSessionStartLimitResponse**](GatewayBotSessionStartLimitResponse.md) | | +**shards** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GatewayBotSessionStartLimitResponse.md b/docs/GatewayBotSessionStartLimitResponse.md new file mode 100644 index 0000000..916e5ce --- /dev/null +++ b/docs/GatewayBotSessionStartLimitResponse.md @@ -0,0 +1,14 @@ +# GatewayBotSessionStartLimitResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_concurrency** | **i32** | | +**remaining** | **i32** | | +**reset_after** | **i32** | | +**total** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GatewayResponse.md b/docs/GatewayResponse.md new file mode 100644 index 0000000..6d4c6c2 --- /dev/null +++ b/docs/GatewayResponse.md @@ -0,0 +1,11 @@ +# GatewayResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetChannel200Response.md b/docs/GetChannel200Response.md new file mode 100644 index 0000000..8b2ad39 --- /dev/null +++ b/docs/GetChannel200Response.md @@ -0,0 +1,14 @@ +# GetChannel200Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| GuildChannelResponse | | +| PrivateChannelResponse | | +| PrivateGroupChannelResponse | | +| ThreadResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetEntitlementsSkuIdsParameter.md b/docs/GetEntitlementsSkuIdsParameter.md new file mode 100644 index 0000000..b3e1f6c --- /dev/null +++ b/docs/GetEntitlementsSkuIdsParameter.md @@ -0,0 +1,12 @@ +# GetEntitlementsSkuIdsParameter + +## Enum Variants + +| Name | Description | +|---- | -----| +| String | | +| Vec | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetSticker200Response.md b/docs/GetSticker200Response.md new file mode 100644 index 0000000..b96216a --- /dev/null +++ b/docs/GetSticker200Response.md @@ -0,0 +1,12 @@ +# GetSticker200Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| GuildStickerResponse | | +| StandardStickerResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubAuthor.md b/docs/GithubAuthor.md new file mode 100644 index 0000000..b6446c5 --- /dev/null +++ b/docs/GithubAuthor.md @@ -0,0 +1,12 @@ +# GithubAuthor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | Option<**String**> | | [optional] +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCheckApp.md b/docs/GithubCheckApp.md new file mode 100644 index 0000000..1fbca5a --- /dev/null +++ b/docs/GithubCheckApp.md @@ -0,0 +1,11 @@ +# GithubCheckApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCheckPullRequest.md b/docs/GithubCheckPullRequest.md new file mode 100644 index 0000000..0cee289 --- /dev/null +++ b/docs/GithubCheckPullRequest.md @@ -0,0 +1,11 @@ +# GithubCheckPullRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCheckRun.md b/docs/GithubCheckRun.md new file mode 100644 index 0000000..f35fb07 --- /dev/null +++ b/docs/GithubCheckRun.md @@ -0,0 +1,17 @@ +# GithubCheckRun + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conclusion** | Option<**String**> | | [optional] +**name** | **String** | | +**html_url** | **String** | | +**check_suite** | [**models::GithubCheckSuite**](GithubCheckSuite.md) | | +**details_url** | Option<**String**> | | [optional] +**output** | Option<[**models::GithubCheckRunOutput**](GithubCheckRunOutput.md)> | | [optional] +**pull_requests** | Option<[**Vec**](GithubCheckPullRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCheckRunOutput.md b/docs/GithubCheckRunOutput.md new file mode 100644 index 0000000..d351316 --- /dev/null +++ b/docs/GithubCheckRunOutput.md @@ -0,0 +1,12 @@ +# GithubCheckRunOutput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | Option<**String**> | | [optional] +**summary** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCheckSuite.md b/docs/GithubCheckSuite.md new file mode 100644 index 0000000..f9a34a8 --- /dev/null +++ b/docs/GithubCheckSuite.md @@ -0,0 +1,15 @@ +# GithubCheckSuite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conclusion** | Option<**String**> | | [optional] +**head_branch** | Option<**String**> | | [optional] +**head_sha** | **String** | | +**pull_requests** | Option<[**Vec**](GithubCheckPullRequest.md)> | | [optional] +**app** | [**models::GithubCheckApp**](GithubCheckApp.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubComment.md b/docs/GithubComment.md new file mode 100644 index 0000000..bc57d5e --- /dev/null +++ b/docs/GithubComment.md @@ -0,0 +1,15 @@ +# GithubComment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**html_url** | **String** | | +**user** | [**models::GithubUser**](GithubUser.md) | | +**commit_id** | Option<**String**> | | [optional] +**body** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubCommit.md b/docs/GithubCommit.md new file mode 100644 index 0000000..eff6368 --- /dev/null +++ b/docs/GithubCommit.md @@ -0,0 +1,14 @@ +# GithubCommit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**url** | **String** | | +**message** | **String** | | +**author** | [**models::GithubAuthor**](GithubAuthor.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubDiscussion.md b/docs/GithubDiscussion.md new file mode 100644 index 0000000..5454e18 --- /dev/null +++ b/docs/GithubDiscussion.md @@ -0,0 +1,16 @@ +# GithubDiscussion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | | +**number** | **i32** | | +**html_url** | **String** | | +**answer_html_url** | Option<**String**> | | [optional] +**body** | Option<**String**> | | [optional] +**user** | [**models::GithubUser**](GithubUser.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubIssue.md b/docs/GithubIssue.md new file mode 100644 index 0000000..e75fa5c --- /dev/null +++ b/docs/GithubIssue.md @@ -0,0 +1,17 @@ +# GithubIssue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**number** | **i32** | | +**html_url** | **String** | | +**user** | [**models::GithubUser**](GithubUser.md) | | +**title** | **String** | | +**body** | Option<**String**> | | [optional] +**pull_request** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubRelease.md b/docs/GithubRelease.md new file mode 100644 index 0000000..1530054 --- /dev/null +++ b/docs/GithubRelease.md @@ -0,0 +1,14 @@ +# GithubRelease + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**tag_name** | **String** | | +**html_url** | **String** | | +**author** | [**models::GithubUser**](GithubUser.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubRepository.md b/docs/GithubRepository.md new file mode 100644 index 0000000..3eceb93 --- /dev/null +++ b/docs/GithubRepository.md @@ -0,0 +1,14 @@ +# GithubRepository + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**html_url** | **String** | | +**name** | **String** | | +**full_name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubReview.md b/docs/GithubReview.md new file mode 100644 index 0000000..6571171 --- /dev/null +++ b/docs/GithubReview.md @@ -0,0 +1,14 @@ +# GithubReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**models::GithubUser**](GithubUser.md) | | +**body** | Option<**String**> | | [optional] +**html_url** | **String** | | +**state** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubUser.md b/docs/GithubUser.md new file mode 100644 index 0000000..696404c --- /dev/null +++ b/docs/GithubUser.md @@ -0,0 +1,14 @@ +# GithubUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**login** | **String** | | +**html_url** | **String** | | +**avatar_url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GithubWebhook.md b/docs/GithubWebhook.md new file mode 100644 index 0000000..45a3ace --- /dev/null +++ b/docs/GithubWebhook.md @@ -0,0 +1,30 @@ +# GithubWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | Option<**String**> | | [optional] +**r#ref** | Option<**String**> | | [optional] +**ref_type** | Option<**String**> | | [optional] +**comment** | Option<[**models::GithubComment**](GithubComment.md)> | | [optional] +**issue** | Option<[**models::GithubIssue**](GithubIssue.md)> | | [optional] +**pull_request** | Option<[**models::GithubIssue**](GithubIssue.md)> | | [optional] +**repository** | Option<[**models::GithubRepository**](GithubRepository.md)> | | [optional] +**forkee** | Option<[**models::GithubRepository**](GithubRepository.md)> | | [optional] +**sender** | [**models::GithubUser**](GithubUser.md) | | +**member** | Option<[**models::GithubUser**](GithubUser.md)> | | [optional] +**release** | Option<[**models::GithubRelease**](GithubRelease.md)> | | [optional] +**head_commit** | Option<[**models::GithubCommit**](GithubCommit.md)> | | [optional] +**commits** | Option<[**Vec**](GithubCommit.md)> | | [optional] +**forced** | Option<**bool**> | | [optional] +**compare** | Option<**String**> | | [optional] +**review** | Option<[**models::GithubReview**](GithubReview.md)> | | [optional] +**check_run** | Option<[**models::GithubCheckRun**](GithubCheckRun.md)> | | [optional] +**check_suite** | Option<[**models::GithubCheckSuite**](GithubCheckSuite.md)> | | [optional] +**discussion** | Option<[**models::GithubDiscussion**](GithubDiscussion.md)> | | [optional] +**answer** | Option<[**models::GithubComment**](GithubComment.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupDmInviteResponse.md b/docs/GroupDmInviteResponse.md new file mode 100644 index 0000000..1bb02f9 --- /dev/null +++ b/docs/GroupDmInviteResponse.md @@ -0,0 +1,18 @@ +# GroupDmInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**code** | **String** | | +**inviter** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**max_age** | Option<**i32**> | | [optional] +**created_at** | Option<**String**> | | [optional] +**expires_at** | Option<**String**> | | [optional] +**channel** | Option<[**models::InviteChannelResponse**](InviteChannelResponse.md)> | | [optional] +**approximate_member_count** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildAuditLogResponse.md b/docs/GuildAuditLogResponse.md new file mode 100644 index 0000000..8603133 --- /dev/null +++ b/docs/GuildAuditLogResponse.md @@ -0,0 +1,18 @@ +# GuildAuditLogResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audit_log_entries** | [**Vec**](AuditLogEntryResponse.md) | | +**users** | [**Vec**](UserResponse.md) | | +**integrations** | [**Vec**](GuildAuditLogResponse_integrations_inner.md) | | +**webhooks** | [**Vec**](list_channel_webhooks_200_response_inner.md) | | +**guild_scheduled_events** | [**Vec**](list_guild_scheduled_events_200_response_inner.md) | | +**threads** | [**Vec**](ThreadResponse.md) | | +**application_commands** | [**Vec**](ApplicationCommandResponse.md) | | +**auto_moderation_rules** | [**Vec**](list_auto_moderation_rules_200_response_inner.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildAuditLogResponseIntegrationsInner.md b/docs/GuildAuditLogResponseIntegrationsInner.md new file mode 100644 index 0000000..ada55b0 --- /dev/null +++ b/docs/GuildAuditLogResponseIntegrationsInner.md @@ -0,0 +1,13 @@ +# GuildAuditLogResponseIntegrationsInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| PartialDiscordIntegrationResponse | | +| PartialExternalConnectionIntegrationResponse | | +| PartialGuildSubscriptionIntegrationResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildBanResponse.md b/docs/GuildBanResponse.md new file mode 100644 index 0000000..551b988 --- /dev/null +++ b/docs/GuildBanResponse.md @@ -0,0 +1,12 @@ +# GuildBanResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**models::UserResponse**](UserResponse.md) | | +**reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildChannelLocation.md b/docs/GuildChannelLocation.md new file mode 100644 index 0000000..043ed1d --- /dev/null +++ b/docs/GuildChannelLocation.md @@ -0,0 +1,14 @@ +# GuildChannelLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**kind** | **String** | | +**channel_id** | **String** | | +**guild_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildChannelResponse.md b/docs/GuildChannelResponse.md new file mode 100644 index 0000000..f369d03 --- /dev/null +++ b/docs/GuildChannelResponse.md @@ -0,0 +1,37 @@ +# GuildChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**last_message_id** | Option<**String**> | | [optional] +**flags** | **i32** | | +**last_pin_timestamp** | Option<**String**> | | [optional] +**guild_id** | **String** | | +**name** | **String** | | +**parent_id** | Option<**String**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**permissions** | Option<**String**> | | [optional] +**topic** | Option<**String**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**position** | **i32** | | +**permission_overwrites** | Option<[**Vec**](ChannelPermissionOverwriteResponse.md)> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**available_tags** | Option<[**Vec**](ForumTagResponse.md)> | | [optional] +**default_reaction_emoji** | Option<[**models::DefaultReactionEmojiResponse**](DefaultReactionEmojiResponse.md)> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**hd_streaming_until** | Option<**String**> | | [optional] +**hd_streaming_buyer_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildCreateRequest.md b/docs/GuildCreateRequest.md new file mode 100644 index 0000000..bcda39d --- /dev/null +++ b/docs/GuildCreateRequest.md @@ -0,0 +1,24 @@ +# GuildCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**name** | **String** | | +**region** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**verification_level** | Option<**i32**> | | [optional] +**default_message_notifications** | Option<**i32**> | | [optional] +**explicit_content_filter** | Option<**i32**> | | [optional] +**preferred_locale** | Option<**String**> | | [optional] +**afk_timeout** | Option<**i32**> | | [optional] +**roles** | Option<[**Vec**](CreateGuildRequestRoleItem.md)> | | [optional] +**channels** | Option<[**Vec**](CreateGuildRequestChannelItem.md)> | | [optional] +**afk_channel_id** | Option<**String**> | | [optional] +**system_channel_id** | Option<**String**> | | [optional] +**system_channel_flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildHomeSettingsResponse.md b/docs/GuildHomeSettingsResponse.md new file mode 100644 index 0000000..d7bbc8b --- /dev/null +++ b/docs/GuildHomeSettingsResponse.md @@ -0,0 +1,15 @@ +# GuildHomeSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_id** | **String** | | +**enabled** | **bool** | | +**welcome_message** | Option<[**models::WelcomeMessageResponse**](WelcomeMessageResponse.md)> | | [optional] +**new_member_actions** | Option<[**Vec**](NewMemberActionResponse.md)> | | [optional] +**resource_channels** | Option<[**Vec**](ResourceChannelResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildIncomingWebhookResponse.md b/docs/GuildIncomingWebhookResponse.md new file mode 100644 index 0000000..3d9f570 --- /dev/null +++ b/docs/GuildIncomingWebhookResponse.md @@ -0,0 +1,20 @@ +# GuildIncomingWebhookResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | Option<**String**> | | [optional] +**avatar** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**id** | **String** | | +**name** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**token** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildInviteResponse.md b/docs/GuildInviteResponse.md new file mode 100644 index 0000000..5678b00 --- /dev/null +++ b/docs/GuildInviteResponse.md @@ -0,0 +1,31 @@ +# GuildInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**code** | **String** | | +**inviter** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**max_age** | Option<**i32**> | | [optional] +**created_at** | Option<**String**> | | [optional] +**expires_at** | Option<**String**> | | [optional] +**is_contact** | Option<**bool**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**guild** | Option<[**models::InviteGuildResponse**](InviteGuildResponse.md)> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**channel** | Option<[**models::InviteChannelResponse**](InviteChannelResponse.md)> | | [optional] +**target_type** | Option<**i32**> | | [optional] +**target_user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**target_application** | Option<[**models::InviteApplicationResponse**](InviteApplicationResponse.md)> | | [optional] +**guild_scheduled_event** | Option<[**models::ScheduledEventResponse**](ScheduledEventResponse.md)> | | [optional] +**uses** | Option<**i32**> | | [optional] +**max_uses** | Option<**i32**> | | [optional] +**temporary** | Option<**bool**> | | [optional] +**approximate_member_count** | Option<**i32**> | | [optional] +**approximate_presence_count** | Option<**i32**> | | [optional] +**is_nickname_changeable** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildMemberResponse.md b/docs/GuildMemberResponse.md new file mode 100644 index 0000000..3be439a --- /dev/null +++ b/docs/GuildMemberResponse.md @@ -0,0 +1,23 @@ +# GuildMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar** | Option<**String**> | | [optional] +**avatar_decoration_data** | Option<[**models::UserAvatarDecorationResponse**](UserAvatarDecorationResponse.md)> | | [optional] +**banner** | Option<**String**> | | [optional] +**communication_disabled_until** | Option<**String**> | | [optional] +**flags** | **i32** | | +**joined_at** | **String** | | +**nick** | Option<**String**> | | [optional] +**pending** | **bool** | | +**premium_since** | Option<**String**> | | [optional] +**roles** | **Vec** | | +**user** | [**models::UserResponse**](UserResponse.md) | | +**mute** | **bool** | | +**deaf** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildMfaLevelResponse.md b/docs/GuildMfaLevelResponse.md new file mode 100644 index 0000000..61c737b --- /dev/null +++ b/docs/GuildMfaLevelResponse.md @@ -0,0 +1,11 @@ +# GuildMfaLevelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildOnboardingResponse.md b/docs/GuildOnboardingResponse.md new file mode 100644 index 0000000..925245c --- /dev/null +++ b/docs/GuildOnboardingResponse.md @@ -0,0 +1,14 @@ +# GuildOnboardingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_id** | **String** | | +**prompts** | [**Vec**](OnboardingPromptResponse.md) | | +**default_channel_ids** | **Vec** | | +**enabled** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildPatchRequestPartial.md b/docs/GuildPatchRequestPartial.md new file mode 100644 index 0000000..d5dab08 --- /dev/null +++ b/docs/GuildPatchRequestPartial.md @@ -0,0 +1,32 @@ +# GuildPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**region** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**verification_level** | Option<**i32**> | | [optional] +**default_message_notifications** | Option<**i32**> | | [optional] +**explicit_content_filter** | Option<**i32**> | | [optional] +**preferred_locale** | Option<**String**> | | [optional] +**afk_timeout** | Option<**i32**> | | [optional] +**afk_channel_id** | Option<**String**> | | [optional] +**system_channel_id** | Option<**String**> | | [optional] +**owner_id** | Option<**String**> | | [optional] +**splash** | Option<**String**> | | [optional] +**banner** | Option<**String**> | | [optional] +**system_channel_flags** | Option<**i32**> | | [optional] +**features** | Option<**Vec**> | | [optional] +**discovery_splash** | Option<**String**> | | [optional] +**home_header** | Option<**String**> | | [optional] +**rules_channel_id** | Option<**String**> | | [optional] +**safety_alerts_channel_id** | Option<**String**> | | [optional] +**public_updates_channel_id** | Option<**String**> | | [optional] +**premium_progress_bar_enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildPreviewResponse.md b/docs/GuildPreviewResponse.md new file mode 100644 index 0000000..933eb09 --- /dev/null +++ b/docs/GuildPreviewResponse.md @@ -0,0 +1,22 @@ +# GuildPreviewResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**home_header** | Option<**String**> | | [optional] +**splash** | Option<**String**> | | [optional] +**discovery_splash** | Option<**String**> | | [optional] +**features** | **Vec** | | +**approximate_member_count** | **i32** | | +**approximate_presence_count** | **i32** | | +**emojis** | [**Vec**](EmojiResponse.md) | | +**stickers** | [**Vec**](GuildStickerResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildProductPurchaseResponse.md b/docs/GuildProductPurchaseResponse.md new file mode 100644 index 0000000..1dd1453 --- /dev/null +++ b/docs/GuildProductPurchaseResponse.md @@ -0,0 +1,12 @@ +# GuildProductPurchaseResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listing_id** | **String** | | +**product_name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildPruneResponse.md b/docs/GuildPruneResponse.md new file mode 100644 index 0000000..5444714 --- /dev/null +++ b/docs/GuildPruneResponse.md @@ -0,0 +1,11 @@ +# GuildPruneResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pruned** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildResponse.md b/docs/GuildResponse.md new file mode 100644 index 0000000..89be48d --- /dev/null +++ b/docs/GuildResponse.md @@ -0,0 +1,49 @@ +# GuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**home_header** | Option<**String**> | | [optional] +**splash** | Option<**String**> | | [optional] +**discovery_splash** | Option<**String**> | | [optional] +**features** | **Vec** | | +**banner** | Option<**String**> | | [optional] +**owner_id** | **String** | | +**application_id** | Option<**String**> | | [optional] +**region** | **String** | | +**afk_channel_id** | Option<**String**> | | [optional] +**afk_timeout** | Option<**i32**> | | +**system_channel_id** | Option<**String**> | | [optional] +**system_channel_flags** | **i32** | | +**widget_enabled** | **bool** | | +**widget_channel_id** | Option<**String**> | | [optional] +**verification_level** | **i32** | | +**roles** | [**Vec**](GuildRoleResponse.md) | | +**default_message_notifications** | **i32** | | +**mfa_level** | **i32** | | +**explicit_content_filter** | **i32** | | +**max_presences** | Option<**i32**> | | [optional] +**max_members** | Option<**i32**> | | [optional] +**max_stage_video_channel_users** | Option<**i32**> | | [optional] +**max_video_channel_users** | Option<**i32**> | | [optional] +**vanity_url_code** | Option<**String**> | | [optional] +**premium_tier** | **i32** | | +**premium_subscription_count** | **i32** | | +**preferred_locale** | **String** | | +**rules_channel_id** | Option<**String**> | | [optional] +**safety_alerts_channel_id** | Option<**String**> | | [optional] +**public_updates_channel_id** | Option<**String**> | | [optional] +**premium_progress_bar_enabled** | **bool** | | +**nsfw** | **bool** | | +**nsfw_level** | Option<**i32**> | | +**emojis** | [**Vec**](EmojiResponse.md) | | +**stickers** | [**Vec**](GuildStickerResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildRoleResponse.md b/docs/GuildRoleResponse.md new file mode 100644 index 0000000..a16c46d --- /dev/null +++ b/docs/GuildRoleResponse.md @@ -0,0 +1,22 @@ +# GuildRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**permissions** | **String** | | +**position** | **i32** | | +**color** | **i32** | | +**hoist** | **bool** | | +**managed** | **bool** | | +**mentionable** | **bool** | | +**icon** | Option<**String**> | | [optional] +**unicode_emoji** | Option<**String**> | | [optional] +**tags** | Option<[**models::GuildRoleTagsResponse**](GuildRoleTagsResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildRoleTagsResponse.md b/docs/GuildRoleTagsResponse.md new file mode 100644 index 0000000..ea77ae5 --- /dev/null +++ b/docs/GuildRoleTagsResponse.md @@ -0,0 +1,16 @@ +# GuildRoleTagsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**premium_subscriber** | Option<[**serde_json::Value**](.md)> | | [optional] +**bot_id** | Option<**String**> | | [optional] +**integration_id** | Option<**String**> | | [optional] +**subscription_listing_id** | Option<**String**> | | [optional] +**available_for_purchase** | Option<[**serde_json::Value**](.md)> | | [optional] +**guild_connections** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildStickerResponse.md b/docs/GuildStickerResponse.md new file mode 100644 index 0000000..15b439f --- /dev/null +++ b/docs/GuildStickerResponse.md @@ -0,0 +1,19 @@ +# GuildStickerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**tags** | **String** | | +**r#type** | **i32** | | +**format_type** | Option<**i32**> | | [optional] +**description** | Option<**String**> | | [optional] +**available** | **bool** | | +**guild_id** | **String** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildSubscriptionIntegrationResponse.md b/docs/GuildSubscriptionIntegrationResponse.md new file mode 100644 index 0000000..09f9f05 --- /dev/null +++ b/docs/GuildSubscriptionIntegrationResponse.md @@ -0,0 +1,15 @@ +# GuildSubscriptionIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildTemplateChannelResponse.md b/docs/GuildTemplateChannelResponse.md new file mode 100644 index 0000000..38c4d52 --- /dev/null +++ b/docs/GuildTemplateChannelResponse.md @@ -0,0 +1,31 @@ +# GuildTemplateChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**i32**> | | [optional] +**r#type** | **i32** | | +**name** | Option<**String**> | | [optional] +**position** | Option<**i32**> | | [optional] +**topic** | Option<**String**> | | [optional] +**bitrate** | **i32** | | +**user_limit** | **i32** | | +**nsfw** | **bool** | | +**rate_limit_per_user** | **i32** | | +**parent_id** | Option<**String**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**permission_overwrites** | [**Vec**](ChannelPermissionOverwriteResponse.md) | | +**available_tags** | Option<[**Vec**](GuildTemplateChannelTags.md)> | | [optional] +**template** | **String** | | +**default_reaction_emoji** | Option<[**models::DefaultReactionEmojiResponse**](DefaultReactionEmojiResponse.md)> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**icon_emoji** | Option<[**serde_json::Value**](.md)> | | [optional] +**theme_color** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildTemplateChannelTags.md b/docs/GuildTemplateChannelTags.md new file mode 100644 index 0000000..42a6a1d --- /dev/null +++ b/docs/GuildTemplateChannelTags.md @@ -0,0 +1,14 @@ +# GuildTemplateChannelTags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**moderated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildTemplateResponse.md b/docs/GuildTemplateResponse.md new file mode 100644 index 0000000..194479c --- /dev/null +++ b/docs/GuildTemplateResponse.md @@ -0,0 +1,21 @@ +# GuildTemplateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**usage_count** | **i32** | | +**creator_id** | **String** | | +**creator** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**created_at** | **String** | | +**updated_at** | **String** | | +**source_guild_id** | **String** | | +**serialized_source_guild** | [**models::GuildTemplateSnapshotResponse**](GuildTemplateSnapshotResponse.md) | | +**is_dirty** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildTemplateRoleResponse.md b/docs/GuildTemplateRoleResponse.md new file mode 100644 index 0000000..f32b909 --- /dev/null +++ b/docs/GuildTemplateRoleResponse.md @@ -0,0 +1,18 @@ +# GuildTemplateRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**name** | **String** | | +**permissions** | **String** | | +**color** | **i32** | | +**hoist** | **bool** | | +**mentionable** | **bool** | | +**icon** | Option<**String**> | | [optional] +**unicode_emoji** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildTemplateSnapshotResponse.md b/docs/GuildTemplateSnapshotResponse.md new file mode 100644 index 0000000..3271b1a --- /dev/null +++ b/docs/GuildTemplateSnapshotResponse.md @@ -0,0 +1,23 @@ +# GuildTemplateSnapshotResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**region** | Option<**String**> | | [optional] +**verification_level** | **i32** | | +**default_message_notifications** | **i32** | | +**explicit_content_filter** | **i32** | | +**preferred_locale** | **String** | | +**afk_channel_id** | Option<**String**> | | [optional] +**afk_timeout** | Option<**i32**> | | +**system_channel_id** | Option<**String**> | | [optional] +**system_channel_flags** | **i32** | | +**roles** | [**Vec**](GuildTemplateRoleResponse.md) | | +**channels** | [**Vec**](GuildTemplateChannelResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildWelcomeChannel.md b/docs/GuildWelcomeChannel.md new file mode 100644 index 0000000..3e94c7d --- /dev/null +++ b/docs/GuildWelcomeChannel.md @@ -0,0 +1,14 @@ +# GuildWelcomeChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | +**description** | **String** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildWelcomeScreenChannelResponse.md b/docs/GuildWelcomeScreenChannelResponse.md new file mode 100644 index 0000000..7c8784b --- /dev/null +++ b/docs/GuildWelcomeScreenChannelResponse.md @@ -0,0 +1,14 @@ +# GuildWelcomeScreenChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | +**description** | **String** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildWelcomeScreenResponse.md b/docs/GuildWelcomeScreenResponse.md new file mode 100644 index 0000000..9db4b20 --- /dev/null +++ b/docs/GuildWelcomeScreenResponse.md @@ -0,0 +1,12 @@ +# GuildWelcomeScreenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**welcome_channels** | [**Vec**](GuildWelcomeScreenChannelResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GuildWithCountsResponse.md b/docs/GuildWithCountsResponse.md new file mode 100644 index 0000000..11f7bd1 --- /dev/null +++ b/docs/GuildWithCountsResponse.md @@ -0,0 +1,51 @@ +# GuildWithCountsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**home_header** | Option<**String**> | | [optional] +**splash** | Option<**String**> | | [optional] +**discovery_splash** | Option<**String**> | | [optional] +**features** | **Vec** | | +**banner** | Option<**String**> | | [optional] +**owner_id** | **String** | | +**application_id** | Option<**String**> | | [optional] +**region** | **String** | | +**afk_channel_id** | Option<**String**> | | [optional] +**afk_timeout** | Option<**i32**> | | +**system_channel_id** | Option<**String**> | | [optional] +**system_channel_flags** | **i32** | | +**widget_enabled** | **bool** | | +**widget_channel_id** | Option<**String**> | | [optional] +**verification_level** | **i32** | | +**roles** | [**Vec**](GuildRoleResponse.md) | | +**default_message_notifications** | **i32** | | +**mfa_level** | **i32** | | +**explicit_content_filter** | **i32** | | +**max_presences** | Option<**i32**> | | [optional] +**max_members** | Option<**i32**> | | [optional] +**max_stage_video_channel_users** | Option<**i32**> | | [optional] +**max_video_channel_users** | Option<**i32**> | | [optional] +**vanity_url_code** | Option<**String**> | | [optional] +**premium_tier** | **i32** | | +**premium_subscription_count** | **i32** | | +**preferred_locale** | **String** | | +**rules_channel_id** | Option<**String**> | | [optional] +**safety_alerts_channel_id** | Option<**String**> | | [optional] +**public_updates_channel_id** | Option<**String**> | | [optional] +**premium_progress_bar_enabled** | **bool** | | +**nsfw** | **bool** | | +**nsfw_level** | Option<**i32**> | | +**emojis** | [**Vec**](EmojiResponse.md) | | +**stickers** | [**Vec**](GuildStickerResponse.md) | | +**approximate_member_count** | Option<**i32**> | | [optional] +**approximate_presence_count** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IncomingWebhookInteractionRequest.md b/docs/IncomingWebhookInteractionRequest.md new file mode 100644 index 0000000..ec613a6 --- /dev/null +++ b/docs/IncomingWebhookInteractionRequest.md @@ -0,0 +1,18 @@ +# IncomingWebhookInteractionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**tts** | Option<**bool**> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IncomingWebhookRequestPartial.md b/docs/IncomingWebhookRequestPartial.md new file mode 100644 index 0000000..cda1bb9 --- /dev/null +++ b/docs/IncomingWebhookRequestPartial.md @@ -0,0 +1,22 @@ +# IncomingWebhookRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**tts** | Option<**bool**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**username** | Option<**String**> | | [optional] +**avatar_url** | Option<**String**> | | [optional] +**thread_name** | Option<**String**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IncomingWebhookUpdateForInteractionCallbackRequestPartial.md b/docs/IncomingWebhookUpdateForInteractionCallbackRequestPartial.md new file mode 100644 index 0000000..a328126 --- /dev/null +++ b/docs/IncomingWebhookUpdateForInteractionCallbackRequestPartial.md @@ -0,0 +1,16 @@ +# IncomingWebhookUpdateForInteractionCallbackRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IncomingWebhookUpdateRequestPartial.md b/docs/IncomingWebhookUpdateRequestPartial.md new file mode 100644 index 0000000..def7626 --- /dev/null +++ b/docs/IncomingWebhookUpdateRequestPartial.md @@ -0,0 +1,17 @@ +# IncomingWebhookUpdateRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InnerErrors.md b/docs/InnerErrors.md new file mode 100644 index 0000000..de6641d --- /dev/null +++ b/docs/InnerErrors.md @@ -0,0 +1,11 @@ +# InnerErrors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_errors** | [**Vec**](Error.md) | The list of errors for this field | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IntegrationApplicationResponse.md b/docs/IntegrationApplicationResponse.md new file mode 100644 index 0000000..5ecc561 --- /dev/null +++ b/docs/IntegrationApplicationResponse.md @@ -0,0 +1,18 @@ +# IntegrationApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**primary_sku_id** | Option<**String**> | | [optional] +**bot** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionApplicationCommandAutocompleteCallbackIntegerData.md b/docs/InteractionApplicationCommandAutocompleteCallbackIntegerData.md new file mode 100644 index 0000000..4856736 --- /dev/null +++ b/docs/InteractionApplicationCommandAutocompleteCallbackIntegerData.md @@ -0,0 +1,11 @@ +# InteractionApplicationCommandAutocompleteCallbackIntegerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**choices** | Option<[**Vec**](ApplicationCommandOptionIntegerChoice.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionApplicationCommandAutocompleteCallbackNumberData.md b/docs/InteractionApplicationCommandAutocompleteCallbackNumberData.md new file mode 100644 index 0000000..7aac007 --- /dev/null +++ b/docs/InteractionApplicationCommandAutocompleteCallbackNumberData.md @@ -0,0 +1,11 @@ +# InteractionApplicationCommandAutocompleteCallbackNumberData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**choices** | Option<[**Vec**](ApplicationCommandOptionNumberChoice.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionApplicationCommandAutocompleteCallbackStringData.md b/docs/InteractionApplicationCommandAutocompleteCallbackStringData.md new file mode 100644 index 0000000..9088ba1 --- /dev/null +++ b/docs/InteractionApplicationCommandAutocompleteCallbackStringData.md @@ -0,0 +1,11 @@ +# InteractionApplicationCommandAutocompleteCallbackStringData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**choices** | Option<[**Vec**](ApplicationCommandOptionStringChoice.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionCallbackResponse.md b/docs/InteractionCallbackResponse.md new file mode 100644 index 0000000..721d51a --- /dev/null +++ b/docs/InteractionCallbackResponse.md @@ -0,0 +1,12 @@ +# InteractionCallbackResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interaction** | [**models::InteractionResponse**](InteractionResponse.md) | | +**resource** | Option<[**models::InteractionCallbackResponseResource**](InteractionCallbackResponse_resource.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionCallbackResponseResource.md b/docs/InteractionCallbackResponseResource.md new file mode 100644 index 0000000..87ab1ac --- /dev/null +++ b/docs/InteractionCallbackResponseResource.md @@ -0,0 +1,13 @@ +# InteractionCallbackResponseResource + +## Enum Variants + +| Name | Description | +|---- | -----| +| CreateMessageInteractionCallbackResponse | | +| LaunchActivityInteractionCallbackResponse | | +| UpdateMessageInteractionCallbackResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InteractionResponse.md b/docs/InteractionResponse.md new file mode 100644 index 0000000..30f2209 --- /dev/null +++ b/docs/InteractionResponse.md @@ -0,0 +1,17 @@ +# InteractionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**response_message_id** | Option<**String**> | | [optional] +**response_message_loading** | Option<**bool**> | | [optional] +**response_message_ephemeral** | Option<**bool**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InviteApplicationResponse.md b/docs/InviteApplicationResponse.md new file mode 100644 index 0000000..c824ce6 --- /dev/null +++ b/docs/InviteApplicationResponse.md @@ -0,0 +1,32 @@ +# InviteApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**primary_sku_id** | Option<**String**> | | [optional] +**bot** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**slug** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**rpc_origins** | Option<**Vec**> | | [optional] +**bot_public** | Option<**bool**> | | [optional] +**bot_require_code_grant** | Option<**bool**> | | [optional] +**terms_of_service_url** | Option<**String**> | | [optional] +**privacy_policy_url** | Option<**String**> | | [optional] +**custom_install_url** | Option<**String**> | | [optional] +**install_params** | Option<[**models::ApplicationOAuth2InstallParamsResponse**](ApplicationOAuth2InstallParamsResponse.md)> | | [optional] +**integration_types_config** | Option<[**std::collections::HashMap**](ApplicationIntegrationTypeConfigurationResponse.md)> | | [optional] +**verify_key** | **String** | | +**flags** | **i32** | | +**max_participants** | Option<**i32**> | | [optional] +**tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InviteChannelRecipientResponse.md b/docs/InviteChannelRecipientResponse.md new file mode 100644 index 0000000..502f647 --- /dev/null +++ b/docs/InviteChannelRecipientResponse.md @@ -0,0 +1,11 @@ +# InviteChannelRecipientResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InviteChannelResponse.md b/docs/InviteChannelResponse.md new file mode 100644 index 0000000..ea8d4b5 --- /dev/null +++ b/docs/InviteChannelResponse.md @@ -0,0 +1,15 @@ +# InviteChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**name** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**recipients** | Option<[**Vec**](InviteChannelRecipientResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InviteGuildResponse.md b/docs/InviteGuildResponse.md new file mode 100644 index 0000000..9026cb3 --- /dev/null +++ b/docs/InviteGuildResponse.md @@ -0,0 +1,22 @@ +# InviteGuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**splash** | Option<**String**> | | [optional] +**banner** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**features** | **Vec** | | +**verification_level** | Option<**i32**> | | [optional] +**vanity_url_code** | Option<**String**> | | [optional] +**nsfw_level** | Option<**i32**> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**premium_subscription_count** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeywordRuleResponse.md b/docs/KeywordRuleResponse.md new file mode 100644 index 0000000..0c0386f --- /dev/null +++ b/docs/KeywordRuleResponse.md @@ -0,0 +1,21 @@ +# KeywordRuleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**creator_id** | **String** | | +**name** | **String** | | +**event_type** | **i32** | | +**actions** | [**Vec**](DefaultKeywordRuleResponse_actions_inner.md) | | +**trigger_type** | **i32** | | +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_metadata** | [**models::KeywordTriggerMetadataResponse**](KeywordTriggerMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeywordTriggerMetadata.md b/docs/KeywordTriggerMetadata.md new file mode 100644 index 0000000..b09f14b --- /dev/null +++ b/docs/KeywordTriggerMetadata.md @@ -0,0 +1,13 @@ +# KeywordTriggerMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keyword_filter** | Option<**Vec**> | | [optional] +**regex_patterns** | Option<**Vec**> | | [optional] +**allow_list** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeywordTriggerMetadataResponse.md b/docs/KeywordTriggerMetadataResponse.md new file mode 100644 index 0000000..98723a8 --- /dev/null +++ b/docs/KeywordTriggerMetadataResponse.md @@ -0,0 +1,13 @@ +# KeywordTriggerMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keyword_filter** | **Vec** | | +**regex_patterns** | **Vec** | | +**allow_list** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeywordUpsertRequest.md b/docs/KeywordUpsertRequest.md new file mode 100644 index 0000000..7cf9afb --- /dev/null +++ b/docs/KeywordUpsertRequest.md @@ -0,0 +1,18 @@ +# KeywordUpsertRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**event_type** | **i32** | | +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | **i32** | | +**trigger_metadata** | Option<[**models::KeywordTriggerMetadata**](KeywordTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeywordUpsertRequestPartial.md b/docs/KeywordUpsertRequestPartial.md new file mode 100644 index 0000000..a5d23f8 --- /dev/null +++ b/docs/KeywordUpsertRequestPartial.md @@ -0,0 +1,18 @@ +# KeywordUpsertRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**event_type** | Option<**i32**> | | [optional] +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | Option<**i32**> | | [optional] +**trigger_metadata** | Option<[**models::KeywordTriggerMetadata**](KeywordTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LaunchActivityInteractionCallbackRequest.md b/docs/LaunchActivityInteractionCallbackRequest.md new file mode 100644 index 0000000..2fe591e --- /dev/null +++ b/docs/LaunchActivityInteractionCallbackRequest.md @@ -0,0 +1,11 @@ +# LaunchActivityInteractionCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LaunchActivityInteractionCallbackResponse.md b/docs/LaunchActivityInteractionCallbackResponse.md new file mode 100644 index 0000000..f1c1913 --- /dev/null +++ b/docs/LaunchActivityInteractionCallbackResponse.md @@ -0,0 +1,11 @@ +# LaunchActivityInteractionCallbackResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListApplicationEmojisResponse.md b/docs/ListApplicationEmojisResponse.md new file mode 100644 index 0000000..58027f2 --- /dev/null +++ b/docs/ListApplicationEmojisResponse.md @@ -0,0 +1,11 @@ +# ListApplicationEmojisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**Vec**](EmojiResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListAutoModerationRules200ResponseInner.md b/docs/ListAutoModerationRules200ResponseInner.md new file mode 100644 index 0000000..2451f6e --- /dev/null +++ b/docs/ListAutoModerationRules200ResponseInner.md @@ -0,0 +1,15 @@ +# ListAutoModerationRules200ResponseInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| DefaultKeywordRuleResponse | | +| KeywordRuleResponse | | +| MentionSpamRuleResponse | | +| MlSpamRuleResponse | | +| SpamLinkRuleResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListChannelInvites200ResponseInner.md b/docs/ListChannelInvites200ResponseInner.md new file mode 100644 index 0000000..faa42d0 --- /dev/null +++ b/docs/ListChannelInvites200ResponseInner.md @@ -0,0 +1,32 @@ +# ListChannelInvites200ResponseInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**code** | **String** | | +**inviter** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**max_age** | Option<**i32**> | | [optional] +**created_at** | Option<**String**> | | [optional] +**expires_at** | Option<**String**> | | [optional] +**friends_count** | Option<**i32**> | | [optional] +**channel** | Option<[**models::InviteChannelResponse**](InviteChannelResponse.md)> | | [optional] +**is_contact** | Option<**bool**> | | [optional] +**uses** | Option<**i32**> | | [optional] +**max_uses** | Option<**i32**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**approximate_member_count** | Option<**i32**> | | [optional] +**guild** | Option<[**models::InviteGuildResponse**](InviteGuildResponse.md)> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**target_type** | Option<**i32**> | | [optional] +**target_user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**target_application** | Option<[**models::InviteApplicationResponse**](InviteApplicationResponse.md)> | | [optional] +**guild_scheduled_event** | Option<[**models::ScheduledEventResponse**](ScheduledEventResponse.md)> | | [optional] +**temporary** | Option<**bool**> | | [optional] +**approximate_presence_count** | Option<**i32**> | | [optional] +**is_nickname_changeable** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListChannelWebhooks200ResponseInner.md b/docs/ListChannelWebhooks200ResponseInner.md new file mode 100644 index 0000000..752705f --- /dev/null +++ b/docs/ListChannelWebhooks200ResponseInner.md @@ -0,0 +1,13 @@ +# ListChannelWebhooks200ResponseInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationIncomingWebhookResponse | | +| ChannelFollowerWebhookResponse | | +| GuildIncomingWebhookResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListGuildIntegrations200ResponseInner.md b/docs/ListGuildIntegrations200ResponseInner.md new file mode 100644 index 0000000..d52249a --- /dev/null +++ b/docs/ListGuildIntegrations200ResponseInner.md @@ -0,0 +1,13 @@ +# ListGuildIntegrations200ResponseInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| DiscordIntegrationResponse | | +| ExternalConnectionIntegrationResponse | | +| GuildSubscriptionIntegrationResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListGuildScheduledEvents200ResponseInner.md b/docs/ListGuildScheduledEvents200ResponseInner.md new file mode 100644 index 0000000..8388e25 --- /dev/null +++ b/docs/ListGuildScheduledEvents200ResponseInner.md @@ -0,0 +1,13 @@ +# ListGuildScheduledEvents200ResponseInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| ExternalScheduledEventResponse | | +| StageScheduledEventResponse | | +| VoiceScheduledEventResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListGuildSoundboardSoundsResponse.md b/docs/ListGuildSoundboardSoundsResponse.md new file mode 100644 index 0000000..094ea7d --- /dev/null +++ b/docs/ListGuildSoundboardSoundsResponse.md @@ -0,0 +1,11 @@ +# ListGuildSoundboardSoundsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**Vec**](SoundboardSoundResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LobbyMemberRequest.md b/docs/LobbyMemberRequest.md new file mode 100644 index 0000000..5cb7fc1 --- /dev/null +++ b/docs/LobbyMemberRequest.md @@ -0,0 +1,13 @@ +# LobbyMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LobbyMemberResponse.md b/docs/LobbyMemberResponse.md new file mode 100644 index 0000000..55767ed --- /dev/null +++ b/docs/LobbyMemberResponse.md @@ -0,0 +1,13 @@ +# LobbyMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**flags** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LobbyMessageResponse.md b/docs/LobbyMessageResponse.md new file mode 100644 index 0000000..99da250 --- /dev/null +++ b/docs/LobbyMessageResponse.md @@ -0,0 +1,19 @@ +# LobbyMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**content** | **String** | | +**lobby_id** | **String** | | +**channel_id** | **String** | | +**author** | [**models::UserResponse**](UserResponse.md) | | +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**flags** | **i32** | | +**application_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LobbyResponse.md b/docs/LobbyResponse.md new file mode 100644 index 0000000..286267c --- /dev/null +++ b/docs/LobbyResponse.md @@ -0,0 +1,15 @@ +# LobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**application_id** | **String** | | +**metadata** | Option<**std::collections::HashMap**> | | [optional] +**members** | Option<[**Vec**](LobbyMemberResponse.md)> | | [optional] +**linked_channel** | Option<[**models::GuildChannelResponse**](GuildChannelResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MediaGalleryComponentForMessageRequest.md b/docs/MediaGalleryComponentForMessageRequest.md new file mode 100644 index 0000000..a698dbf --- /dev/null +++ b/docs/MediaGalleryComponentForMessageRequest.md @@ -0,0 +1,12 @@ +# MediaGalleryComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**items** | [**Vec**](MediaGalleryItemRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MediaGalleryComponentResponse.md b/docs/MediaGalleryComponentResponse.md new file mode 100644 index 0000000..b36c5c3 --- /dev/null +++ b/docs/MediaGalleryComponentResponse.md @@ -0,0 +1,13 @@ +# MediaGalleryComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**items** | [**Vec**](MediaGalleryItemResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MediaGalleryItemRequest.md b/docs/MediaGalleryItemRequest.md new file mode 100644 index 0000000..8ecaf9c --- /dev/null +++ b/docs/MediaGalleryItemRequest.md @@ -0,0 +1,13 @@ +# MediaGalleryItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**spoiler** | Option<**bool**> | | [optional] +**media** | [**models::UnfurledMediaRequest**](UnfurledMediaRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MediaGalleryItemResponse.md b/docs/MediaGalleryItemResponse.md new file mode 100644 index 0000000..135c6e0 --- /dev/null +++ b/docs/MediaGalleryItemResponse.md @@ -0,0 +1,13 @@ +# MediaGalleryItemResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media** | [**models::UnfurledMediaResponse**](UnfurledMediaResponse.md) | | +**description** | Option<**String**> | | [optional] +**spoiler** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionSpamRuleResponse.md b/docs/MentionSpamRuleResponse.md new file mode 100644 index 0000000..daeacd0 --- /dev/null +++ b/docs/MentionSpamRuleResponse.md @@ -0,0 +1,21 @@ +# MentionSpamRuleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**creator_id** | **String** | | +**name** | **String** | | +**event_type** | **i32** | | +**actions** | [**Vec**](DefaultKeywordRuleResponse_actions_inner.md) | | +**trigger_type** | **i32** | | +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_metadata** | [**models::MentionSpamTriggerMetadataResponse**](MentionSpamTriggerMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionSpamTriggerMetadata.md b/docs/MentionSpamTriggerMetadata.md new file mode 100644 index 0000000..cc086af --- /dev/null +++ b/docs/MentionSpamTriggerMetadata.md @@ -0,0 +1,12 @@ +# MentionSpamTriggerMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mention_total_limit** | **i32** | | +**mention_raid_protection_enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionSpamTriggerMetadataResponse.md b/docs/MentionSpamTriggerMetadataResponse.md new file mode 100644 index 0000000..f9bca51 --- /dev/null +++ b/docs/MentionSpamTriggerMetadataResponse.md @@ -0,0 +1,12 @@ +# MentionSpamTriggerMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mention_total_limit** | **i32** | | +**mention_raid_protection_enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionSpamUpsertRequest.md b/docs/MentionSpamUpsertRequest.md new file mode 100644 index 0000000..3dc4708 --- /dev/null +++ b/docs/MentionSpamUpsertRequest.md @@ -0,0 +1,18 @@ +# MentionSpamUpsertRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**event_type** | **i32** | | +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | **i32** | | +**trigger_metadata** | Option<[**models::MentionSpamTriggerMetadata**](MentionSpamTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionSpamUpsertRequestPartial.md b/docs/MentionSpamUpsertRequestPartial.md new file mode 100644 index 0000000..ccab6b6 --- /dev/null +++ b/docs/MentionSpamUpsertRequestPartial.md @@ -0,0 +1,18 @@ +# MentionSpamUpsertRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**event_type** | Option<**i32**> | | [optional] +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | Option<**i32**> | | [optional] +**trigger_metadata** | Option<[**models::MentionSpamTriggerMetadata**](MentionSpamTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionableSelectComponentForMessageRequest.md b/docs/MentionableSelectComponentForMessageRequest.md new file mode 100644 index 0000000..dd25dfb --- /dev/null +++ b/docs/MentionableSelectComponentForMessageRequest.md @@ -0,0 +1,17 @@ +# MentionableSelectComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](MentionableSelectComponentForMessageRequest_default_values_inner.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionableSelectComponentForMessageRequestDefaultValuesInner.md b/docs/MentionableSelectComponentForMessageRequestDefaultValuesInner.md new file mode 100644 index 0000000..0d8504c --- /dev/null +++ b/docs/MentionableSelectComponentForMessageRequestDefaultValuesInner.md @@ -0,0 +1,12 @@ +# MentionableSelectComponentForMessageRequestDefaultValuesInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| RoleSelectDefaultValue | | +| UserSelectDefaultValue | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionableSelectComponentResponse.md b/docs/MentionableSelectComponentResponse.md new file mode 100644 index 0000000..fbd2ac4 --- /dev/null +++ b/docs/MentionableSelectComponentResponse.md @@ -0,0 +1,18 @@ +# MentionableSelectComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](MentionableSelectComponentResponse_default_values_inner.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MentionableSelectComponentResponseDefaultValuesInner.md b/docs/MentionableSelectComponentResponseDefaultValuesInner.md new file mode 100644 index 0000000..c898c2b --- /dev/null +++ b/docs/MentionableSelectComponentResponseDefaultValuesInner.md @@ -0,0 +1,12 @@ +# MentionableSelectComponentResponseDefaultValuesInner + +## Enum Variants + +| Name | Description | +|---- | -----| +| RoleSelectDefaultValueResponse | | +| UserSelectDefaultValueResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageAllowedMentionsRequest.md b/docs/MessageAllowedMentionsRequest.md new file mode 100644 index 0000000..c016ff6 --- /dev/null +++ b/docs/MessageAllowedMentionsRequest.md @@ -0,0 +1,14 @@ +# MessageAllowedMentionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parse** | Option<**Vec**> | | [optional] +**users** | Option<**Vec**> | | [optional] +**roles** | Option<**Vec**> | | [optional] +**replied_user** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageAttachmentRequest.md b/docs/MessageAttachmentRequest.md new file mode 100644 index 0000000..707ead6 --- /dev/null +++ b/docs/MessageAttachmentRequest.md @@ -0,0 +1,17 @@ +# MessageAttachmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**filename** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**duration_secs** | Option<**f64**> | | [optional] +**waveform** | Option<**String**> | | [optional] +**title** | Option<**String**> | | [optional] +**is_remix** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageAttachmentResponse.md b/docs/MessageAttachmentResponse.md new file mode 100644 index 0000000..2a2a9ce --- /dev/null +++ b/docs/MessageAttachmentResponse.md @@ -0,0 +1,26 @@ +# MessageAttachmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**filename** | **String** | | +**size** | **i32** | | +**url** | **String** | | +**proxy_url** | **String** | | +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**duration_secs** | Option<**f64**> | | [optional] +**waveform** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**content_type** | Option<**String**> | | [optional] +**ephemeral** | Option<**bool**> | | [optional] +**title** | Option<**String**> | | [optional] +**application** | Option<[**models::ApplicationResponse**](ApplicationResponse.md)> | | [optional] +**clip_created_at** | Option<**String**> | | [optional] +**clip_participants** | Option<[**Vec**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageCallResponse.md b/docs/MessageCallResponse.md new file mode 100644 index 0000000..7867d60 --- /dev/null +++ b/docs/MessageCallResponse.md @@ -0,0 +1,12 @@ +# MessageCallResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ended_timestamp** | Option<**String**> | | [optional] +**participants** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageComponentInteractionMetadataResponse.md b/docs/MessageComponentInteractionMetadataResponse.md new file mode 100644 index 0000000..96fead9 --- /dev/null +++ b/docs/MessageComponentInteractionMetadataResponse.md @@ -0,0 +1,16 @@ +# MessageComponentInteractionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**authorizing_integration_owners** | **std::collections::HashMap** | | +**original_response_message_id** | Option<**String**> | | [optional] +**interacted_message_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageCreateRequest.md b/docs/MessageCreateRequest.md new file mode 100644 index 0000000..f109e0f --- /dev/null +++ b/docs/MessageCreateRequest.md @@ -0,0 +1,23 @@ +# MessageCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**sticker_ids** | Option<**Vec**> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**confetti_potion** | Option<[**serde_json::Value**](.md)> | | [optional] +**message_reference** | Option<[**models::MessageReferenceRequest**](MessageReferenceRequest.md)> | | [optional] +**nonce** | Option<[**models::BasicMessageResponseNonce**](BasicMessageResponse_nonce.md)> | | [optional] +**enforce_nonce** | Option<**bool**> | | [optional] +**tts** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEditRequestPartial.md b/docs/MessageEditRequestPartial.md new file mode 100644 index 0000000..72dfbf2 --- /dev/null +++ b/docs/MessageEditRequestPartial.md @@ -0,0 +1,17 @@ +# MessageEditRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**sticker_ids** | Option<**Vec**> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedAuthorResponse.md b/docs/MessageEmbedAuthorResponse.md new file mode 100644 index 0000000..f850cc7 --- /dev/null +++ b/docs/MessageEmbedAuthorResponse.md @@ -0,0 +1,14 @@ +# MessageEmbedAuthorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**url** | Option<**String**> | | [optional] +**icon_url** | Option<**String**> | | [optional] +**proxy_icon_url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedFieldResponse.md b/docs/MessageEmbedFieldResponse.md new file mode 100644 index 0000000..1e3a7cb --- /dev/null +++ b/docs/MessageEmbedFieldResponse.md @@ -0,0 +1,13 @@ +# MessageEmbedFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**value** | **String** | | +**inline** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedFooterResponse.md b/docs/MessageEmbedFooterResponse.md new file mode 100644 index 0000000..68f98c6 --- /dev/null +++ b/docs/MessageEmbedFooterResponse.md @@ -0,0 +1,13 @@ +# MessageEmbedFooterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | | +**icon_url** | Option<**String**> | | [optional] +**proxy_icon_url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedImageResponse.md b/docs/MessageEmbedImageResponse.md new file mode 100644 index 0000000..e9130a7 --- /dev/null +++ b/docs/MessageEmbedImageResponse.md @@ -0,0 +1,19 @@ +# MessageEmbedImageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | Option<**String**> | | [optional] +**proxy_url** | Option<**String**> | | [optional] +**width** | Option<**i64**> | | [optional] +**height** | Option<**i64**> | | [optional] +**content_type** | Option<**String**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**placeholder_version** | Option<**i64**> | | [optional] +**description** | Option<**String**> | | [optional] +**flags** | Option<**i64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedProviderResponse.md b/docs/MessageEmbedProviderResponse.md new file mode 100644 index 0000000..9de67ae --- /dev/null +++ b/docs/MessageEmbedProviderResponse.md @@ -0,0 +1,12 @@ +# MessageEmbedProviderResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedResponse.md b/docs/MessageEmbedResponse.md new file mode 100644 index 0000000..fce5f40 --- /dev/null +++ b/docs/MessageEmbedResponse.md @@ -0,0 +1,23 @@ +# MessageEmbedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | | +**url** | Option<**String**> | | [optional] +**title** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**color** | Option<**i32**> | | [optional] +**timestamp** | Option<**String**> | | [optional] +**fields** | Option<[**Vec**](MessageEmbedFieldResponse.md)> | | [optional] +**author** | Option<[**models::MessageEmbedAuthorResponse**](MessageEmbedAuthorResponse.md)> | | [optional] +**provider** | Option<[**models::MessageEmbedProviderResponse**](MessageEmbedProviderResponse.md)> | | [optional] +**image** | Option<[**models::MessageEmbedImageResponse**](MessageEmbedImageResponse.md)> | | [optional] +**thumbnail** | Option<[**models::MessageEmbedImageResponse**](MessageEmbedImageResponse.md)> | | [optional] +**video** | Option<[**models::MessageEmbedVideoResponse**](MessageEmbedVideoResponse.md)> | | [optional] +**footer** | Option<[**models::MessageEmbedFooterResponse**](MessageEmbedFooterResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageEmbedVideoResponse.md b/docs/MessageEmbedVideoResponse.md new file mode 100644 index 0000000..4ff5076 --- /dev/null +++ b/docs/MessageEmbedVideoResponse.md @@ -0,0 +1,19 @@ +# MessageEmbedVideoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | Option<**String**> | | [optional] +**proxy_url** | Option<**String**> | | [optional] +**width** | Option<**i64**> | | [optional] +**height** | Option<**i64**> | | [optional] +**content_type** | Option<**String**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**placeholder_version** | Option<**i64**> | | [optional] +**description** | Option<**String**> | | [optional] +**flags** | Option<**i64**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageInteractionResponse.md b/docs/MessageInteractionResponse.md new file mode 100644 index 0000000..e93c086 --- /dev/null +++ b/docs/MessageInteractionResponse.md @@ -0,0 +1,15 @@ +# MessageInteractionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**name** | **String** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**name_localized** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageMentionChannelResponse.md b/docs/MessageMentionChannelResponse.md new file mode 100644 index 0000000..4dbfbf1 --- /dev/null +++ b/docs/MessageMentionChannelResponse.md @@ -0,0 +1,14 @@ +# MessageMentionChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**r#type** | **i32** | | +**guild_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageReactionCountDetailsResponse.md b/docs/MessageReactionCountDetailsResponse.md new file mode 100644 index 0000000..1aae172 --- /dev/null +++ b/docs/MessageReactionCountDetailsResponse.md @@ -0,0 +1,12 @@ +# MessageReactionCountDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**burst** | **i32** | | +**normal** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageReactionEmojiResponse.md b/docs/MessageReactionEmojiResponse.md new file mode 100644 index 0000000..14cd9c0 --- /dev/null +++ b/docs/MessageReactionEmojiResponse.md @@ -0,0 +1,13 @@ +# MessageReactionEmojiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | Option<**String**> | | [optional] +**animated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageReactionResponse.md b/docs/MessageReactionResponse.md new file mode 100644 index 0000000..0fc3406 --- /dev/null +++ b/docs/MessageReactionResponse.md @@ -0,0 +1,16 @@ +# MessageReactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emoji** | [**models::MessageReactionEmojiResponse**](MessageReactionEmojiResponse.md) | | +**count** | **i32** | | +**count_details** | [**models::MessageReactionCountDetailsResponse**](MessageReactionCountDetailsResponse.md) | | +**burst_colors** | **Vec** | | +**me_burst** | **bool** | | +**me** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageReferenceRequest.md b/docs/MessageReferenceRequest.md new file mode 100644 index 0000000..a56e6dd --- /dev/null +++ b/docs/MessageReferenceRequest.md @@ -0,0 +1,15 @@ +# MessageReferenceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_id** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**message_id** | **String** | | +**fail_if_not_exists** | Option<**bool**> | | [optional] +**r#type** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageReferenceResponse.md b/docs/MessageReferenceResponse.md new file mode 100644 index 0000000..c7e96e3 --- /dev/null +++ b/docs/MessageReferenceResponse.md @@ -0,0 +1,14 @@ +# MessageReferenceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<[**serde_json::Value**](.md)> | | [optional] +**channel_id** | **String** | | +**message_id** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageResponse.md b/docs/MessageResponse.md new file mode 100644 index 0000000..c877c72 --- /dev/null +++ b/docs/MessageResponse.md @@ -0,0 +1,47 @@ +# MessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**content** | **String** | | +**mentions** | [**Vec**](UserResponse.md) | | +**mention_roles** | **Vec** | | +**attachments** | [**Vec**](MessageAttachmentResponse.md) | | +**embeds** | [**Vec**](MessageEmbedResponse.md) | | +**timestamp** | **String** | | +**edited_timestamp** | Option<**String**> | | [optional] +**flags** | **i32** | | +**components** | [**Vec**](BasicMessageResponse_components_inner.md) | | +**resolved** | Option<[**models::ResolvedObjectsResponse**](ResolvedObjectsResponse.md)> | | [optional] +**stickers** | Option<[**Vec**](get_sticker_200_response.md)> | | [optional] +**sticker_items** | Option<[**Vec**](MessageStickerItemResponse.md)> | | [optional] +**id** | **String** | | +**channel_id** | **String** | | +**author** | [**models::UserResponse**](UserResponse.md) | | +**pinned** | **bool** | | +**mention_everyone** | **bool** | | +**tts** | **bool** | | +**call** | Option<[**models::MessageCallResponse**](MessageCallResponse.md)> | | [optional] +**activity** | Option<[**serde_json::Value**](.md)> | | [optional] +**application** | Option<[**models::BasicApplicationResponse**](BasicApplicationResponse.md)> | | [optional] +**application_id** | Option<**String**> | | [optional] +**interaction** | Option<[**models::MessageInteractionResponse**](MessageInteractionResponse.md)> | | [optional] +**nonce** | Option<[**models::BasicMessageResponseNonce**](BasicMessageResponse_nonce.md)> | | [optional] +**webhook_id** | Option<**String**> | | [optional] +**message_reference** | Option<[**models::MessageReferenceResponse**](MessageReferenceResponse.md)> | | [optional] +**thread** | Option<[**models::ThreadResponse**](ThreadResponse.md)> | | [optional] +**mention_channels** | Option<[**Vec**](MessageMentionChannelResponse.md)> | | [optional] +**role_subscription_data** | Option<[**models::MessageRoleSubscriptionDataResponse**](MessageRoleSubscriptionDataResponse.md)> | | [optional] +**purchase_notification** | Option<[**models::PurchaseNotificationResponse**](PurchaseNotificationResponse.md)> | | [optional] +**position** | Option<**i32**> | | [optional] +**poll** | Option<[**models::PollResponse**](PollResponse.md)> | | [optional] +**interaction_metadata** | Option<[**models::BasicMessageResponseInteractionMetadata**](BasicMessageResponse_interaction_metadata.md)> | | [optional] +**message_snapshots** | Option<[**Vec**](MessageSnapshotResponse.md)> | | [optional] +**reactions** | Option<[**Vec**](MessageReactionResponse.md)> | | [optional] +**referenced_message** | Option<[**models::BasicMessageResponse**](BasicMessageResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageRoleSubscriptionDataResponse.md b/docs/MessageRoleSubscriptionDataResponse.md new file mode 100644 index 0000000..a1f11eb --- /dev/null +++ b/docs/MessageRoleSubscriptionDataResponse.md @@ -0,0 +1,14 @@ +# MessageRoleSubscriptionDataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role_subscription_listing_id** | **String** | | +**tier_name** | **String** | | +**total_months_subscribed** | **i32** | | +**is_renewal** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageSnapshotResponse.md b/docs/MessageSnapshotResponse.md new file mode 100644 index 0000000..424550e --- /dev/null +++ b/docs/MessageSnapshotResponse.md @@ -0,0 +1,11 @@ +# MessageSnapshotResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | Option<[**models::MinimalContentMessageResponse**](MinimalContentMessageResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MessageStickerItemResponse.md b/docs/MessageStickerItemResponse.md new file mode 100644 index 0000000..bba4dc8 --- /dev/null +++ b/docs/MessageStickerItemResponse.md @@ -0,0 +1,13 @@ +# MessageStickerItemResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**format_type** | Option<**i32**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MinimalContentMessageResponse.md b/docs/MinimalContentMessageResponse.md new file mode 100644 index 0000000..0f1655b --- /dev/null +++ b/docs/MinimalContentMessageResponse.md @@ -0,0 +1,23 @@ +# MinimalContentMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**content** | **String** | | +**mentions** | [**Vec**](UserResponse.md) | | +**mention_roles** | **Vec** | | +**attachments** | [**Vec**](MessageAttachmentResponse.md) | | +**embeds** | [**Vec**](MessageEmbedResponse.md) | | +**timestamp** | **String** | | +**edited_timestamp** | Option<**String**> | | [optional] +**flags** | **i32** | | +**components** | [**Vec**](BasicMessageResponse_components_inner.md) | | +**resolved** | Option<[**models::ResolvedObjectsResponse**](ResolvedObjectsResponse.md)> | | [optional] +**stickers** | Option<[**Vec**](get_sticker_200_response.md)> | | [optional] +**sticker_items** | Option<[**Vec**](MessageStickerItemResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MlSpamRuleResponse.md b/docs/MlSpamRuleResponse.md new file mode 100644 index 0000000..b8543d5 --- /dev/null +++ b/docs/MlSpamRuleResponse.md @@ -0,0 +1,21 @@ +# MlSpamRuleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**creator_id** | **String** | | +**name** | **String** | | +**event_type** | **i32** | | +**actions** | [**Vec**](DefaultKeywordRuleResponse_actions_inner.md) | | +**trigger_type** | **i32** | | +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_metadata** | [**serde_json::Value**](.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MlSpamUpsertRequest.md b/docs/MlSpamUpsertRequest.md new file mode 100644 index 0000000..cbde158 --- /dev/null +++ b/docs/MlSpamUpsertRequest.md @@ -0,0 +1,18 @@ +# MlSpamUpsertRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**event_type** | **i32** | | +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | **i32** | | +**trigger_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MlSpamUpsertRequestPartial.md b/docs/MlSpamUpsertRequestPartial.md new file mode 100644 index 0000000..c3b18fb --- /dev/null +++ b/docs/MlSpamUpsertRequestPartial.md @@ -0,0 +1,18 @@ +# MlSpamUpsertRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**event_type** | Option<**i32**> | | [optional] +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | Option<**i32**> | | [optional] +**trigger_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModalInteractionCallbackRequest.md b/docs/ModalInteractionCallbackRequest.md new file mode 100644 index 0000000..dfc62c0 --- /dev/null +++ b/docs/ModalInteractionCallbackRequest.md @@ -0,0 +1,12 @@ +# ModalInteractionCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**data** | [**models::ModalInteractionCallbackRequestData**](ModalInteractionCallbackRequestData.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModalInteractionCallbackRequestData.md b/docs/ModalInteractionCallbackRequestData.md new file mode 100644 index 0000000..71a67ab --- /dev/null +++ b/docs/ModalInteractionCallbackRequestData.md @@ -0,0 +1,13 @@ +# ModalInteractionCallbackRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_id** | **String** | | +**title** | **String** | | +**components** | [**Vec**](ActionRowComponentForModalRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModalSubmitInteractionMetadataResponse.md b/docs/ModalSubmitInteractionMetadataResponse.md new file mode 100644 index 0000000..ab5ba38 --- /dev/null +++ b/docs/ModalSubmitInteractionMetadataResponse.md @@ -0,0 +1,16 @@ +# ModalSubmitInteractionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**authorizing_integration_owners** | **std::collections::HashMap** | | +**original_response_message_id** | Option<**String**> | | [optional] +**triggering_interaction_metadata** | [**models::ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata**](ModalSubmitInteractionMetadataResponse_triggering_interaction_metadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata.md b/docs/ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata.md new file mode 100644 index 0000000..ef5fd0d --- /dev/null +++ b/docs/ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata.md @@ -0,0 +1,12 @@ +# ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata + +## Enum Variants + +| Name | Description | +|---- | -----| +| ApplicationCommandInteractionMetadataResponse | | +| MessageComponentInteractionMetadataResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MyGuildResponse.md b/docs/MyGuildResponse.md new file mode 100644 index 0000000..49f8d8e --- /dev/null +++ b/docs/MyGuildResponse.md @@ -0,0 +1,19 @@ +# MyGuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**banner** | Option<**String**> | | [optional] +**owner** | **bool** | | +**permissions** | **String** | | +**features** | **Vec** | | +**approximate_member_count** | Option<**i32**> | | [optional] +**approximate_presence_count** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NewMemberActionResponse.md b/docs/NewMemberActionResponse.md new file mode 100644 index 0000000..bbbbeed --- /dev/null +++ b/docs/NewMemberActionResponse.md @@ -0,0 +1,16 @@ +# NewMemberActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | +**action_type** | Option<**i32**> | | +**title** | **String** | | +**description** | **String** | | +**emoji** | Option<[**models::SettingsEmojiResponse**](SettingsEmojiResponse.md)> | | [optional] +**icon** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OAuth2GetAuthorizationResponse.md b/docs/OAuth2GetAuthorizationResponse.md new file mode 100644 index 0000000..c714131 --- /dev/null +++ b/docs/OAuth2GetAuthorizationResponse.md @@ -0,0 +1,14 @@ +# OAuth2GetAuthorizationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application** | [**models::ApplicationResponse**](ApplicationResponse.md) | | +**expires** | **String** | | +**scopes** | **Vec** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OAuth2GetKeys.md b/docs/OAuth2GetKeys.md new file mode 100644 index 0000000..43fe86b --- /dev/null +++ b/docs/OAuth2GetKeys.md @@ -0,0 +1,11 @@ +# OAuth2GetKeys + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**Vec**](OAuth2Key.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OAuth2GetOpenIdConnectUserInfoResponse.md b/docs/OAuth2GetOpenIdConnectUserInfoResponse.md new file mode 100644 index 0000000..3bf3916 --- /dev/null +++ b/docs/OAuth2GetOpenIdConnectUserInfoResponse.md @@ -0,0 +1,17 @@ +# OAuth2GetOpenIdConnectUserInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sub** | **String** | | +**email** | Option<**String**> | | [optional] +**email_verified** | Option<**bool**> | | [optional] +**preferred_username** | Option<**String**> | | [optional] +**nickname** | Option<**String**> | | [optional] +**picture** | Option<**String**> | | [optional] +**locale** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OAuth2Key.md b/docs/OAuth2Key.md new file mode 100644 index 0000000..b266ad7 --- /dev/null +++ b/docs/OAuth2Key.md @@ -0,0 +1,16 @@ +# OAuth2Key + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **String** | | +**r#use** | **String** | | +**kid** | **String** | | +**n** | **String** | | +**e** | **String** | | +**alg** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OnboardingPromptOptionRequest.md b/docs/OnboardingPromptOptionRequest.md new file mode 100644 index 0000000..52e740c --- /dev/null +++ b/docs/OnboardingPromptOptionRequest.md @@ -0,0 +1,18 @@ +# OnboardingPromptOptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**title** | **String** | | +**description** | Option<**String**> | | [optional] +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**emoji_animated** | Option<**bool**> | | [optional] +**role_ids** | Option<**Vec**> | | [optional] +**channel_ids** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OnboardingPromptOptionResponse.md b/docs/OnboardingPromptOptionResponse.md new file mode 100644 index 0000000..8e07b3e --- /dev/null +++ b/docs/OnboardingPromptOptionResponse.md @@ -0,0 +1,16 @@ +# OnboardingPromptOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**title** | **String** | | +**description** | **String** | | +**emoji** | [**models::SettingsEmojiResponse**](SettingsEmojiResponse.md) | | +**role_ids** | **Vec** | | +**channel_ids** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OnboardingPromptResponse.md b/docs/OnboardingPromptResponse.md new file mode 100644 index 0000000..2e062f5 --- /dev/null +++ b/docs/OnboardingPromptResponse.md @@ -0,0 +1,17 @@ +# OnboardingPromptResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**title** | **String** | | +**options** | [**Vec**](OnboardingPromptOptionResponse.md) | | +**single_select** | **bool** | | +**required** | **bool** | | +**in_onboarding** | **bool** | | +**r#type** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PartialDiscordIntegrationResponse.md b/docs/PartialDiscordIntegrationResponse.md new file mode 100644 index 0000000..0fc755b --- /dev/null +++ b/docs/PartialDiscordIntegrationResponse.md @@ -0,0 +1,15 @@ +# PartialDiscordIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] +**application_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PartialExternalConnectionIntegrationResponse.md b/docs/PartialExternalConnectionIntegrationResponse.md new file mode 100644 index 0000000..138f144 --- /dev/null +++ b/docs/PartialExternalConnectionIntegrationResponse.md @@ -0,0 +1,14 @@ +# PartialExternalConnectionIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PartialGuildSubscriptionIntegrationResponse.md b/docs/PartialGuildSubscriptionIntegrationResponse.md new file mode 100644 index 0000000..0a02722 --- /dev/null +++ b/docs/PartialGuildSubscriptionIntegrationResponse.md @@ -0,0 +1,14 @@ +# PartialGuildSubscriptionIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | Option<**String**> | | +**name** | Option<**String**> | | [optional] +**account** | Option<[**models::AccountResponse**](AccountResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PartnerSdkUnmergeProvisionalAccountRequest.md b/docs/PartnerSdkUnmergeProvisionalAccountRequest.md new file mode 100644 index 0000000..29ee7c2 --- /dev/null +++ b/docs/PartnerSdkUnmergeProvisionalAccountRequest.md @@ -0,0 +1,14 @@ +# PartnerSdkUnmergeProvisionalAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_id** | **String** | | +**client_secret** | Option<**String**> | | [optional] +**external_auth_token** | **String** | | +**external_auth_type** | Option<**String**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PinnedMessageResponse.md b/docs/PinnedMessageResponse.md new file mode 100644 index 0000000..4695bea --- /dev/null +++ b/docs/PinnedMessageResponse.md @@ -0,0 +1,12 @@ +# PinnedMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pinned_at** | **String** | | +**message** | [**models::MessageResponse**](MessageResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PinnedMessagesResponse.md b/docs/PinnedMessagesResponse.md new file mode 100644 index 0000000..6a755da --- /dev/null +++ b/docs/PinnedMessagesResponse.md @@ -0,0 +1,12 @@ +# PinnedMessagesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | Option<[**Vec**](PinnedMessageResponse.md)> | | [optional] +**has_more** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollAnswerCreateRequest.md b/docs/PollAnswerCreateRequest.md new file mode 100644 index 0000000..394cc24 --- /dev/null +++ b/docs/PollAnswerCreateRequest.md @@ -0,0 +1,11 @@ +# PollAnswerCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**poll_media** | [**models::PollMediaCreateRequest**](PollMediaCreateRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollAnswerDetailsResponse.md b/docs/PollAnswerDetailsResponse.md new file mode 100644 index 0000000..3f6e2a9 --- /dev/null +++ b/docs/PollAnswerDetailsResponse.md @@ -0,0 +1,11 @@ +# PollAnswerDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | Option<[**Vec**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollAnswerResponse.md b/docs/PollAnswerResponse.md new file mode 100644 index 0000000..fb9efb2 --- /dev/null +++ b/docs/PollAnswerResponse.md @@ -0,0 +1,12 @@ +# PollAnswerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**answer_id** | **i32** | | +**poll_media** | [**models::PollMediaResponse**](PollMediaResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollCreateRequest.md b/docs/PollCreateRequest.md new file mode 100644 index 0000000..288aebb --- /dev/null +++ b/docs/PollCreateRequest.md @@ -0,0 +1,15 @@ +# PollCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**question** | [**models::PollMedia**](PollMedia.md) | | +**answers** | [**Vec**](PollAnswerCreateRequest.md) | | +**allow_multiselect** | Option<**bool**> | | [optional] +**layout_type** | Option<**i32**> | | [optional] +**duration** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollEmoji.md b/docs/PollEmoji.md new file mode 100644 index 0000000..ed48c3d --- /dev/null +++ b/docs/PollEmoji.md @@ -0,0 +1,13 @@ +# PollEmoji + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | Option<**String**> | | [optional] +**animated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollEmojiCreateRequest.md b/docs/PollEmojiCreateRequest.md new file mode 100644 index 0000000..5453a4c --- /dev/null +++ b/docs/PollEmojiCreateRequest.md @@ -0,0 +1,13 @@ +# PollEmojiCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | Option<**String**> | | [optional] +**animated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollMedia.md b/docs/PollMedia.md new file mode 100644 index 0000000..99f4ce4 --- /dev/null +++ b/docs/PollMedia.md @@ -0,0 +1,12 @@ +# PollMedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | Option<**String**> | | [optional] +**emoji** | Option<[**models::PollEmoji**](PollEmoji.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollMediaCreateRequest.md b/docs/PollMediaCreateRequest.md new file mode 100644 index 0000000..13d1941 --- /dev/null +++ b/docs/PollMediaCreateRequest.md @@ -0,0 +1,12 @@ +# PollMediaCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | Option<**String**> | | [optional] +**emoji** | Option<[**models::PollEmojiCreateRequest**](PollEmojiCreateRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollMediaResponse.md b/docs/PollMediaResponse.md new file mode 100644 index 0000000..6727202 --- /dev/null +++ b/docs/PollMediaResponse.md @@ -0,0 +1,12 @@ +# PollMediaResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | Option<**String**> | | [optional] +**emoji** | Option<[**models::MessageReactionEmojiResponse**](MessageReactionEmojiResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollResponse.md b/docs/PollResponse.md new file mode 100644 index 0000000..4440245 --- /dev/null +++ b/docs/PollResponse.md @@ -0,0 +1,16 @@ +# PollResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**question** | [**models::PollMediaResponse**](PollMediaResponse.md) | | +**answers** | [**Vec**](PollAnswerResponse.md) | | +**expiry** | **String** | | +**allow_multiselect** | **bool** | | +**layout_type** | **i32** | | +**results** | [**models::PollResultsResponse**](PollResultsResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollResultsEntryResponse.md b/docs/PollResultsEntryResponse.md new file mode 100644 index 0000000..299cc12 --- /dev/null +++ b/docs/PollResultsEntryResponse.md @@ -0,0 +1,13 @@ +# PollResultsEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**count** | **i32** | | +**me_voted** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PollResultsResponse.md b/docs/PollResultsResponse.md new file mode 100644 index 0000000..edf187a --- /dev/null +++ b/docs/PollResultsResponse.md @@ -0,0 +1,12 @@ +# PollResultsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**answer_counts** | Option<[**Vec**](PollResultsEntryResponse.md)> | | [optional] +**is_finalized** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PongInteractionCallbackRequest.md b/docs/PongInteractionCallbackRequest.md new file mode 100644 index 0000000..e5bdb72 --- /dev/null +++ b/docs/PongInteractionCallbackRequest.md @@ -0,0 +1,11 @@ +# PongInteractionCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrivateApplicationResponse.md b/docs/PrivateApplicationResponse.md new file mode 100644 index 0000000..a672840 --- /dev/null +++ b/docs/PrivateApplicationResponse.md @@ -0,0 +1,41 @@ +# PrivateApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**icon** | Option<**String**> | | [optional] +**description** | **String** | | +**r#type** | Option<**i32**> | | [optional] +**cover_image** | Option<**String**> | | [optional] +**primary_sku_id** | Option<**String**> | | [optional] +**bot** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**slug** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**rpc_origins** | Option<**Vec**> | | [optional] +**bot_public** | Option<**bool**> | | [optional] +**bot_require_code_grant** | Option<**bool**> | | [optional] +**terms_of_service_url** | Option<**String**> | | [optional] +**privacy_policy_url** | Option<**String**> | | [optional] +**custom_install_url** | Option<**String**> | | [optional] +**install_params** | Option<[**models::ApplicationOAuth2InstallParamsResponse**](ApplicationOAuth2InstallParamsResponse.md)> | | [optional] +**integration_types_config** | Option<[**std::collections::HashMap**](ApplicationIntegrationTypeConfigurationResponse.md)> | | [optional] +**verify_key** | **String** | | +**flags** | **i32** | | +**max_participants** | Option<**i32**> | | [optional] +**tags** | Option<**Vec**> | | [optional] +**redirect_uris** | **Vec** | | +**interactions_endpoint_url** | Option<**String**> | | [optional] +**role_connections_verification_url** | Option<**String**> | | [optional] +**owner** | [**models::UserResponse**](UserResponse.md) | | +**approximate_guild_count** | Option<**i32**> | | [optional] +**approximate_user_install_count** | **i32** | | +**approximate_user_authorization_count** | **i32** | | +**explicit_content_filter** | **i32** | | +**team** | Option<[**models::TeamResponse**](TeamResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrivateChannelLocation.md b/docs/PrivateChannelLocation.md new file mode 100644 index 0000000..909c7ed --- /dev/null +++ b/docs/PrivateChannelLocation.md @@ -0,0 +1,13 @@ +# PrivateChannelLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**kind** | **String** | | +**channel_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrivateChannelResponse.md b/docs/PrivateChannelResponse.md new file mode 100644 index 0000000..f05cf05 --- /dev/null +++ b/docs/PrivateChannelResponse.md @@ -0,0 +1,16 @@ +# PrivateChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**last_message_id** | Option<**String**> | | [optional] +**flags** | **i32** | | +**last_pin_timestamp** | Option<**String**> | | [optional] +**recipients** | [**Vec**](UserResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrivateGroupChannelResponse.md b/docs/PrivateGroupChannelResponse.md new file mode 100644 index 0000000..cb133fb --- /dev/null +++ b/docs/PrivateGroupChannelResponse.md @@ -0,0 +1,21 @@ +# PrivateGroupChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**last_message_id** | Option<**String**> | | [optional] +**flags** | **i32** | | +**last_pin_timestamp** | Option<**String**> | | [optional] +**recipients** | [**Vec**](UserResponse.md) | | +**name** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**owner_id** | Option<**String**> | | [optional] +**managed** | Option<**bool**> | | [optional] +**application_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrivateGuildMemberResponse.md b/docs/PrivateGuildMemberResponse.md new file mode 100644 index 0000000..7d2c8d6 --- /dev/null +++ b/docs/PrivateGuildMemberResponse.md @@ -0,0 +1,23 @@ +# PrivateGuildMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar** | Option<**String**> | | [optional] +**avatar_decoration_data** | Option<[**models::UserAvatarDecorationResponse**](UserAvatarDecorationResponse.md)> | | [optional] +**banner** | Option<**String**> | | [optional] +**communication_disabled_until** | Option<**String**> | | [optional] +**flags** | **i32** | | +**joined_at** | **String** | | +**nick** | Option<**String**> | | [optional] +**pending** | **bool** | | +**premium_since** | Option<**String**> | | [optional] +**roles** | **Vec** | | +**user** | [**models::UserResponse**](UserResponse.md) | | +**mute** | **bool** | | +**deaf** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvisionalTokenResponse.md b/docs/ProvisionalTokenResponse.md new file mode 100644 index 0000000..1ecf8ac --- /dev/null +++ b/docs/ProvisionalTokenResponse.md @@ -0,0 +1,18 @@ +# ProvisionalTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token_type** | **String** | | +**access_token** | **String** | | +**expires_in** | **i32** | | +**scope** | **String** | | +**id_token** | **String** | | +**refresh_token** | Option<**String**> | | [optional] +**scopes** | Option<**Vec**> | | [optional] +**expires_at_s** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PruneGuildRequest.md b/docs/PruneGuildRequest.md new file mode 100644 index 0000000..7c66673 --- /dev/null +++ b/docs/PruneGuildRequest.md @@ -0,0 +1,13 @@ +# PruneGuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**days** | Option<**i32**> | | [optional] +**compute_prune_count** | Option<**bool**> | | [optional] +**include_roles** | Option<[**models::PruneGuildRequestIncludeRoles**](prune_guild_request_include_roles.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PruneGuildRequestIncludeRoles.md b/docs/PruneGuildRequestIncludeRoles.md new file mode 100644 index 0000000..cef3e4b --- /dev/null +++ b/docs/PruneGuildRequestIncludeRoles.md @@ -0,0 +1,12 @@ +# PruneGuildRequestIncludeRoles + +## Enum Variants + +| Name | Description | +|---- | -----| +| String | | +| Vec | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PurchaseNotificationResponse.md b/docs/PurchaseNotificationResponse.md new file mode 100644 index 0000000..a116323 --- /dev/null +++ b/docs/PurchaseNotificationResponse.md @@ -0,0 +1,12 @@ +# PurchaseNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**guild_product_purchase** | Option<[**models::GuildProductPurchaseResponse**](GuildProductPurchaseResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuarantineUserAction.md b/docs/QuarantineUserAction.md new file mode 100644 index 0000000..95171a1 --- /dev/null +++ b/docs/QuarantineUserAction.md @@ -0,0 +1,12 @@ +# QuarantineUserAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuarantineUserActionResponse.md b/docs/QuarantineUserActionResponse.md new file mode 100644 index 0000000..411c5b3 --- /dev/null +++ b/docs/QuarantineUserActionResponse.md @@ -0,0 +1,12 @@ +# QuarantineUserActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**serde_json::Value**](.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResolvedObjectsResponse.md b/docs/ResolvedObjectsResponse.md new file mode 100644 index 0000000..67f73a0 --- /dev/null +++ b/docs/ResolvedObjectsResponse.md @@ -0,0 +1,14 @@ +# ResolvedObjectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**std::collections::HashMap**](UserResponse.md) | | +**members** | [**std::collections::HashMap**](GuildMemberResponse.md) | | +**channels** | [**std::collections::HashMap**](get_channel_200_response.md) | | +**roles** | [**std::collections::HashMap**](GuildRoleResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceChannelResponse.md b/docs/ResourceChannelResponse.md new file mode 100644 index 0000000..d7fb1c1 --- /dev/null +++ b/docs/ResourceChannelResponse.md @@ -0,0 +1,15 @@ +# ResourceChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | **String** | | +**title** | **String** | | +**emoji** | Option<[**models::SettingsEmojiResponse**](SettingsEmojiResponse.md)> | | [optional] +**icon** | Option<**String**> | | [optional] +**description** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbed.md b/docs/RichEmbed.md new file mode 100644 index 0000000..9ba2dfb --- /dev/null +++ b/docs/RichEmbed.md @@ -0,0 +1,23 @@ +# RichEmbed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] +**title** | Option<**String**> | | [optional] +**color** | Option<**i32**> | | [optional] +**timestamp** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**author** | Option<[**models::RichEmbedAuthor**](RichEmbedAuthor.md)> | | [optional] +**image** | Option<[**models::RichEmbedImage**](RichEmbedImage.md)> | | [optional] +**thumbnail** | Option<[**models::RichEmbedThumbnail**](RichEmbedThumbnail.md)> | | [optional] +**footer** | Option<[**models::RichEmbedFooter**](RichEmbedFooter.md)> | | [optional] +**fields** | Option<[**Vec**](RichEmbedField.md)> | | [optional] +**provider** | Option<[**models::RichEmbedProvider**](RichEmbedProvider.md)> | | [optional] +**video** | Option<[**models::RichEmbedVideo**](RichEmbedVideo.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedAuthor.md b/docs/RichEmbedAuthor.md new file mode 100644 index 0000000..3c52eb9 --- /dev/null +++ b/docs/RichEmbedAuthor.md @@ -0,0 +1,13 @@ +# RichEmbedAuthor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] +**icon_url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedField.md b/docs/RichEmbedField.md new file mode 100644 index 0000000..41c7021 --- /dev/null +++ b/docs/RichEmbedField.md @@ -0,0 +1,13 @@ +# RichEmbedField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**value** | **String** | | +**inline** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedFooter.md b/docs/RichEmbedFooter.md new file mode 100644 index 0000000..6e62483 --- /dev/null +++ b/docs/RichEmbedFooter.md @@ -0,0 +1,12 @@ +# RichEmbedFooter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | Option<**String**> | | [optional] +**icon_url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedImage.md b/docs/RichEmbedImage.md new file mode 100644 index 0000000..fe7df3d --- /dev/null +++ b/docs/RichEmbedImage.md @@ -0,0 +1,17 @@ +# RichEmbedImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | Option<**String**> | | [optional] +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**placeholder_version** | Option<**i32**> | | [optional] +**is_animated** | Option<**bool**> | | [optional] +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedProvider.md b/docs/RichEmbedProvider.md new file mode 100644 index 0000000..ce9fddf --- /dev/null +++ b/docs/RichEmbedProvider.md @@ -0,0 +1,12 @@ +# RichEmbedProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedThumbnail.md b/docs/RichEmbedThumbnail.md new file mode 100644 index 0000000..d202d06 --- /dev/null +++ b/docs/RichEmbedThumbnail.md @@ -0,0 +1,17 @@ +# RichEmbedThumbnail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | Option<**String**> | | [optional] +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**placeholder_version** | Option<**i32**> | | [optional] +**is_animated** | Option<**bool**> | | [optional] +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RichEmbedVideo.md b/docs/RichEmbedVideo.md new file mode 100644 index 0000000..53cbd0f --- /dev/null +++ b/docs/RichEmbedVideo.md @@ -0,0 +1,17 @@ +# RichEmbedVideo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | Option<**String**> | | [optional] +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**placeholder_version** | Option<**i32**> | | [optional] +**is_animated** | Option<**bool**> | | [optional] +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleSelectComponentForMessageRequest.md b/docs/RoleSelectComponentForMessageRequest.md new file mode 100644 index 0000000..0a5a62e --- /dev/null +++ b/docs/RoleSelectComponentForMessageRequest.md @@ -0,0 +1,17 @@ +# RoleSelectComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](RoleSelectDefaultValue.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleSelectComponentResponse.md b/docs/RoleSelectComponentResponse.md new file mode 100644 index 0000000..c51cb61 --- /dev/null +++ b/docs/RoleSelectComponentResponse.md @@ -0,0 +1,18 @@ +# RoleSelectComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](RoleSelectDefaultValueResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleSelectDefaultValue.md b/docs/RoleSelectDefaultValue.md new file mode 100644 index 0000000..5cfc4f5 --- /dev/null +++ b/docs/RoleSelectDefaultValue.md @@ -0,0 +1,12 @@ +# RoleSelectDefaultValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleSelectDefaultValueResponse.md b/docs/RoleSelectDefaultValueResponse.md new file mode 100644 index 0000000..447d0e6 --- /dev/null +++ b/docs/RoleSelectDefaultValueResponse.md @@ -0,0 +1,12 @@ +# RoleSelectDefaultValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScheduledEventResponse.md b/docs/ScheduledEventResponse.md new file mode 100644 index 0000000..2e6fe02 --- /dev/null +++ b/docs/ScheduledEventResponse.md @@ -0,0 +1,26 @@ +# ScheduledEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**creator_id** | Option<**String**> | | [optional] +**creator** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**status** | Option<**i32**> | | +**entity_type** | Option<**i32**> | | +**entity_id** | Option<**String**> | | [optional] +**user_count** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**user_rsvp** | Option<[**models::ScheduledEventUserResponse**](ScheduledEventUserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScheduledEventUserResponse.md b/docs/ScheduledEventUserResponse.md new file mode 100644 index 0000000..754cffa --- /dev/null +++ b/docs/ScheduledEventUserResponse.md @@ -0,0 +1,14 @@ +# ScheduledEventUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_scheduled_event_id** | **String** | | +**user_id** | **String** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**member** | Option<[**models::GuildMemberResponse**](GuildMemberResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SdkMessageRequest.md b/docs/SdkMessageRequest.md new file mode 100644 index 0000000..72affd3 --- /dev/null +++ b/docs/SdkMessageRequest.md @@ -0,0 +1,23 @@ +# SdkMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | Option<**String**> | | [optional] +**embeds** | Option<[**Vec**](RichEmbed.md)> | | [optional] +**allowed_mentions** | Option<[**models::MessageAllowedMentionsRequest**](MessageAllowedMentionsRequest.md)> | | [optional] +**sticker_ids** | Option<**Vec**> | | [optional] +**components** | Option<[**Vec**](BaseCreateMessageCreateRequest_components_inner.md)> | | [optional] +**flags** | Option<**i32**> | | [optional] +**attachments** | Option<[**Vec**](MessageAttachmentRequest.md)> | | [optional] +**poll** | Option<[**models::PollCreateRequest**](PollCreateRequest.md)> | | [optional] +**confetti_potion** | Option<[**serde_json::Value**](.md)> | | [optional] +**message_reference** | Option<[**models::MessageReferenceRequest**](MessageReferenceRequest.md)> | | [optional] +**nonce** | Option<[**models::BasicMessageResponseNonce**](BasicMessageResponse_nonce.md)> | | [optional] +**enforce_nonce** | Option<**bool**> | | [optional] +**tts** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionComponentForMessageRequest.md b/docs/SectionComponentForMessageRequest.md new file mode 100644 index 0000000..42e6d12 --- /dev/null +++ b/docs/SectionComponentForMessageRequest.md @@ -0,0 +1,13 @@ +# SectionComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**components** | [**Vec**](TextDisplayComponentForMessageRequest.md) | | +**accessory** | [**models::SectionComponentForMessageRequestAccessory**](SectionComponentForMessageRequest_accessory.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionComponentForMessageRequestAccessory.md b/docs/SectionComponentForMessageRequestAccessory.md new file mode 100644 index 0000000..9871352 --- /dev/null +++ b/docs/SectionComponentForMessageRequestAccessory.md @@ -0,0 +1,12 @@ +# SectionComponentForMessageRequestAccessory + +## Enum Variants + +| Name | Description | +|---- | -----| +| ButtonComponentForMessageRequest | | +| ThumbnailComponentForMessageRequest | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionComponentResponse.md b/docs/SectionComponentResponse.md new file mode 100644 index 0000000..19a6692 --- /dev/null +++ b/docs/SectionComponentResponse.md @@ -0,0 +1,14 @@ +# SectionComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**components** | [**Vec**](TextDisplayComponentResponse.md) | | +**accessory** | [**models::SectionComponentResponseAccessory**](SectionComponentResponse_accessory.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionComponentResponseAccessory.md b/docs/SectionComponentResponseAccessory.md new file mode 100644 index 0000000..91b68dc --- /dev/null +++ b/docs/SectionComponentResponseAccessory.md @@ -0,0 +1,12 @@ +# SectionComponentResponseAccessory + +## Enum Variants + +| Name | Description | +|---- | -----| +| ButtonComponentResponse | | +| ThumbnailComponentResponse | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SeparatorComponentForMessageRequest.md b/docs/SeparatorComponentForMessageRequest.md new file mode 100644 index 0000000..ba5f764 --- /dev/null +++ b/docs/SeparatorComponentForMessageRequest.md @@ -0,0 +1,13 @@ +# SeparatorComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**spacing** | Option<**i32**> | | [optional] +**divider** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SeparatorComponentResponse.md b/docs/SeparatorComponentResponse.md new file mode 100644 index 0000000..e952f01 --- /dev/null +++ b/docs/SeparatorComponentResponse.md @@ -0,0 +1,14 @@ +# SeparatorComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**spacing** | **i32** | | +**divider** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetChannelPermissionOverwriteRequest.md b/docs/SetChannelPermissionOverwriteRequest.md new file mode 100644 index 0000000..38b0a18 --- /dev/null +++ b/docs/SetChannelPermissionOverwriteRequest.md @@ -0,0 +1,13 @@ +# SetChannelPermissionOverwriteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**allow** | Option<**i32**> | | [optional] +**deny** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetGuildApplicationCommandPermissionsRequest.md b/docs/SetGuildApplicationCommandPermissionsRequest.md new file mode 100644 index 0000000..aa170d1 --- /dev/null +++ b/docs/SetGuildApplicationCommandPermissionsRequest.md @@ -0,0 +1,11 @@ +# SetGuildApplicationCommandPermissionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | Option<[**Vec**](ApplicationCommandPermission.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetGuildMfaLevelRequest.md b/docs/SetGuildMfaLevelRequest.md new file mode 100644 index 0000000..db7ccc4 --- /dev/null +++ b/docs/SetGuildMfaLevelRequest.md @@ -0,0 +1,11 @@ +# SetGuildMfaLevelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsEmojiResponse.md b/docs/SettingsEmojiResponse.md new file mode 100644 index 0000000..0ad3110 --- /dev/null +++ b/docs/SettingsEmojiResponse.md @@ -0,0 +1,13 @@ +# SettingsEmojiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | Option<**String**> | | [optional] +**name** | Option<**String**> | | [optional] +**animated** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SlackWebhook.md b/docs/SlackWebhook.md new file mode 100644 index 0000000..feebbe6 --- /dev/null +++ b/docs/SlackWebhook.md @@ -0,0 +1,14 @@ +# SlackWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**icon_url** | Option<**String**> | | [optional] +**attachments** | Option<[**Vec**](WebhookSlackEmbed.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoundboardCreateRequest.md b/docs/SoundboardCreateRequest.md new file mode 100644 index 0000000..d144c53 --- /dev/null +++ b/docs/SoundboardCreateRequest.md @@ -0,0 +1,15 @@ +# SoundboardCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**volume** | Option<**f64**> | | [optional] +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**sound** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoundboardPatchRequestPartial.md b/docs/SoundboardPatchRequestPartial.md new file mode 100644 index 0000000..75b366e --- /dev/null +++ b/docs/SoundboardPatchRequestPartial.md @@ -0,0 +1,14 @@ +# SoundboardPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**volume** | Option<**f64**> | | [optional] +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoundboardSoundResponse.md b/docs/SoundboardSoundResponse.md new file mode 100644 index 0000000..772a917 --- /dev/null +++ b/docs/SoundboardSoundResponse.md @@ -0,0 +1,18 @@ +# SoundboardSoundResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**sound_id** | **String** | | +**volume** | **f64** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**guild_id** | Option<**String**> | | [optional] +**available** | **bool** | | +**user** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoundboardSoundSendRequest.md b/docs/SoundboardSoundSendRequest.md new file mode 100644 index 0000000..c5db745 --- /dev/null +++ b/docs/SoundboardSoundSendRequest.md @@ -0,0 +1,12 @@ +# SoundboardSoundSendRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sound_id** | **String** | | +**source_guild_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpamLinkRuleResponse.md b/docs/SpamLinkRuleResponse.md new file mode 100644 index 0000000..3f315d7 --- /dev/null +++ b/docs/SpamLinkRuleResponse.md @@ -0,0 +1,21 @@ +# SpamLinkRuleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**creator_id** | **String** | | +**name** | **String** | | +**event_type** | **i32** | | +**actions** | [**Vec**](DefaultKeywordRuleResponse_actions_inner.md) | | +**trigger_type** | **i32** | | +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_metadata** | [**serde_json::Value**](.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StageInstanceResponse.md b/docs/StageInstanceResponse.md new file mode 100644 index 0000000..fbdd422 --- /dev/null +++ b/docs/StageInstanceResponse.md @@ -0,0 +1,17 @@ +# StageInstanceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_id** | **String** | | +**channel_id** | **String** | | +**topic** | **String** | | +**privacy_level** | **i32** | | +**id** | **String** | | +**discoverable_disabled** | Option<**bool**> | | [optional] +**guild_scheduled_event_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StageScheduledEventCreateRequest.md b/docs/StageScheduledEventCreateRequest.md new file mode 100644 index 0000000..6ccce2a --- /dev/null +++ b/docs/StageScheduledEventCreateRequest.md @@ -0,0 +1,19 @@ +# StageScheduledEventCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**entity_type** | Option<**i32**> | | +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StageScheduledEventPatchRequestPartial.md b/docs/StageScheduledEventPatchRequestPartial.md new file mode 100644 index 0000000..c731145 --- /dev/null +++ b/docs/StageScheduledEventPatchRequestPartial.md @@ -0,0 +1,20 @@ +# StageScheduledEventPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | Option<**i32**> | | [optional] +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | Option<**String**> | | [optional] +**scheduled_end_time** | Option<**String**> | | [optional] +**entity_type** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StageScheduledEventResponse.md b/docs/StageScheduledEventResponse.md new file mode 100644 index 0000000..1a4fc48 --- /dev/null +++ b/docs/StageScheduledEventResponse.md @@ -0,0 +1,27 @@ +# StageScheduledEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**creator_id** | Option<**String**> | | [optional] +**creator** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**status** | Option<**i32**> | | +**entity_type** | Option<**i32**> | | +**entity_id** | Option<**String**> | | [optional] +**user_count** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**user_rsvp** | Option<[**models::ScheduledEventUserResponse**](ScheduledEventUserResponse.md)> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StandardStickerResponse.md b/docs/StandardStickerResponse.md new file mode 100644 index 0000000..fd966cb --- /dev/null +++ b/docs/StandardStickerResponse.md @@ -0,0 +1,18 @@ +# StandardStickerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**tags** | **String** | | +**r#type** | **i32** | | +**format_type** | Option<**i32**> | | [optional] +**description** | Option<**String**> | | [optional] +**pack_id** | **String** | | +**sort_value** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StickerPackCollectionResponse.md b/docs/StickerPackCollectionResponse.md new file mode 100644 index 0000000..a6522b2 --- /dev/null +++ b/docs/StickerPackCollectionResponse.md @@ -0,0 +1,11 @@ +# StickerPackCollectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sticker_packs** | [**Vec**](StickerPackResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StickerPackResponse.md b/docs/StickerPackResponse.md new file mode 100644 index 0000000..523bf0b --- /dev/null +++ b/docs/StickerPackResponse.md @@ -0,0 +1,17 @@ +# StickerPackResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**sku_id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**stickers** | [**Vec**](StandardStickerResponse.md) | | +**cover_sticker_id** | Option<**String**> | | [optional] +**banner_asset_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StringSelectComponentForMessageRequest.md b/docs/StringSelectComponentForMessageRequest.md new file mode 100644 index 0000000..236f870 --- /dev/null +++ b/docs/StringSelectComponentForMessageRequest.md @@ -0,0 +1,17 @@ +# StringSelectComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**options** | [**Vec**](StringSelectOptionForMessageRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StringSelectComponentResponse.md b/docs/StringSelectComponentResponse.md new file mode 100644 index 0000000..e7e8895 --- /dev/null +++ b/docs/StringSelectComponentResponse.md @@ -0,0 +1,18 @@ +# StringSelectComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**options** | [**Vec**](StringSelectOptionResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StringSelectOptionForMessageRequest.md b/docs/StringSelectOptionForMessageRequest.md new file mode 100644 index 0000000..45bc903 --- /dev/null +++ b/docs/StringSelectOptionForMessageRequest.md @@ -0,0 +1,15 @@ +# StringSelectOptionForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | | +**value** | **String** | | +**description** | Option<**String**> | | [optional] +**default** | Option<**bool**> | | [optional] +**emoji** | Option<[**models::ComponentEmojiForMessageRequest**](ComponentEmojiForMessageRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StringSelectOptionResponse.md b/docs/StringSelectOptionResponse.md new file mode 100644 index 0000000..b87116a --- /dev/null +++ b/docs/StringSelectOptionResponse.md @@ -0,0 +1,15 @@ +# StringSelectOptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | | +**value** | **String** | | +**description** | Option<**String**> | | [optional] +**emoji** | Option<[**models::ComponentEmojiResponse**](ComponentEmojiResponse.md)> | | [optional] +**default** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeamMemberResponse.md b/docs/TeamMemberResponse.md new file mode 100644 index 0000000..36fc5be --- /dev/null +++ b/docs/TeamMemberResponse.md @@ -0,0 +1,13 @@ +# TeamMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**models::UserResponse**](UserResponse.md) | | +**team_id** | **String** | | +**membership_state** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeamResponse.md b/docs/TeamResponse.md new file mode 100644 index 0000000..f37c276 --- /dev/null +++ b/docs/TeamResponse.md @@ -0,0 +1,15 @@ +# TeamResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**icon** | Option<**String**> | | [optional] +**name** | **String** | | +**owner_user_id** | **String** | | +**members** | [**Vec**](TeamMemberResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TextDisplayComponentForMessageRequest.md b/docs/TextDisplayComponentForMessageRequest.md new file mode 100644 index 0000000..bfd7b22 --- /dev/null +++ b/docs/TextDisplayComponentForMessageRequest.md @@ -0,0 +1,12 @@ +# TextDisplayComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**content** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TextDisplayComponentResponse.md b/docs/TextDisplayComponentResponse.md new file mode 100644 index 0000000..d5fcc40 --- /dev/null +++ b/docs/TextDisplayComponentResponse.md @@ -0,0 +1,13 @@ +# TextDisplayComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**content** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TextInputComponentForModalRequest.md b/docs/TextInputComponentForModalRequest.md new file mode 100644 index 0000000..339a1c1 --- /dev/null +++ b/docs/TextInputComponentForModalRequest.md @@ -0,0 +1,19 @@ +# TextInputComponentForModalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**style** | **i32** | | +**label** | **String** | | +**value** | Option<**String**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**required** | Option<**bool**> | | [optional] +**min_length** | Option<**i32**> | | [optional] +**max_length** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TextInputComponentResponse.md b/docs/TextInputComponentResponse.md new file mode 100644 index 0000000..bd63eff --- /dev/null +++ b/docs/TextInputComponentResponse.md @@ -0,0 +1,20 @@ +# TextInputComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**style** | **i32** | | +**label** | Option<**String**> | | [optional] +**value** | Option<**String**> | | [optional] +**placeholder** | Option<**String**> | | [optional] +**required** | Option<**bool**> | | [optional] +**min_length** | Option<**i32**> | | [optional] +**max_length** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadMemberResponse.md b/docs/ThreadMemberResponse.md new file mode 100644 index 0000000..e36f99c --- /dev/null +++ b/docs/ThreadMemberResponse.md @@ -0,0 +1,15 @@ +# ThreadMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**user_id** | **String** | | +**join_timestamp** | **String** | | +**flags** | **i32** | | +**member** | Option<[**models::GuildMemberResponse**](GuildMemberResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadMetadataResponse.md b/docs/ThreadMetadataResponse.md new file mode 100644 index 0000000..99988d7 --- /dev/null +++ b/docs/ThreadMetadataResponse.md @@ -0,0 +1,16 @@ +# ThreadMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**archived** | **bool** | | +**archive_timestamp** | Option<**String**> | | [optional] +**auto_archive_duration** | **i32** | | +**locked** | **bool** | | +**create_timestamp** | Option<**String**> | | [optional] +**invitable** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadResponse.md b/docs/ThreadResponse.md new file mode 100644 index 0000000..f6cc216 --- /dev/null +++ b/docs/ThreadResponse.md @@ -0,0 +1,31 @@ +# ThreadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**r#type** | **i32** | | +**last_message_id** | Option<**String**> | | [optional] +**flags** | **i32** | | +**last_pin_timestamp** | Option<**String**> | | [optional] +**guild_id** | **String** | | +**name** | **String** | | +**parent_id** | Option<**String**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**permissions** | Option<**String**> | | [optional] +**owner_id** | **String** | | +**thread_metadata** | Option<[**models::ThreadMetadataResponse**](ThreadMetadataResponse.md)> | | [optional] +**message_count** | **i32** | | +**member_count** | **i32** | | +**total_message_sent** | **i32** | | +**applied_tags** | Option<**Vec**> | | [optional] +**member** | Option<[**models::ThreadMemberResponse**](ThreadMemberResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadSearchResponse.md b/docs/ThreadSearchResponse.md new file mode 100644 index 0000000..bd7d1d3 --- /dev/null +++ b/docs/ThreadSearchResponse.md @@ -0,0 +1,15 @@ +# ThreadSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**threads** | [**Vec**](ThreadResponse.md) | | +**members** | [**Vec**](ThreadMemberResponse.md) | | +**has_more** | Option<**bool**> | | [optional] +**first_messages** | Option<[**Vec**](MessageResponse.md)> | | [optional] +**total_results** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadSearchTagParameter.md b/docs/ThreadSearchTagParameter.md new file mode 100644 index 0000000..9840ea2 --- /dev/null +++ b/docs/ThreadSearchTagParameter.md @@ -0,0 +1,12 @@ +# ThreadSearchTagParameter + +## Enum Variants + +| Name | Description | +|---- | -----| +| String | | +| Vec | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThreadsResponse.md b/docs/ThreadsResponse.md new file mode 100644 index 0000000..3b0627a --- /dev/null +++ b/docs/ThreadsResponse.md @@ -0,0 +1,14 @@ +# ThreadsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**threads** | [**Vec**](ThreadResponse.md) | | +**members** | [**Vec**](ThreadMemberResponse.md) | | +**has_more** | Option<**bool**> | | [optional] +**first_messages** | Option<[**Vec**](MessageResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThumbnailComponentForMessageRequest.md b/docs/ThumbnailComponentForMessageRequest.md new file mode 100644 index 0000000..c245bc7 --- /dev/null +++ b/docs/ThumbnailComponentForMessageRequest.md @@ -0,0 +1,14 @@ +# ThumbnailComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**description** | Option<**String**> | | [optional] +**spoiler** | Option<**bool**> | | [optional] +**media** | [**models::UnfurledMediaRequest**](UnfurledMediaRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ThumbnailComponentResponse.md b/docs/ThumbnailComponentResponse.md new file mode 100644 index 0000000..74698c4 --- /dev/null +++ b/docs/ThumbnailComponentResponse.md @@ -0,0 +1,15 @@ +# ThumbnailComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**media** | [**models::UnfurledMediaResponse**](UnfurledMediaResponse.md) | | +**description** | Option<**String**> | | [optional] +**spoiler** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnfurledMediaRequest.md b/docs/UnfurledMediaRequest.md new file mode 100644 index 0000000..9e4d0b8 --- /dev/null +++ b/docs/UnfurledMediaRequest.md @@ -0,0 +1,11 @@ +# UnfurledMediaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnfurledMediaRequestWithAttachmentReferenceRequired.md b/docs/UnfurledMediaRequestWithAttachmentReferenceRequired.md new file mode 100644 index 0000000..35bd318 --- /dev/null +++ b/docs/UnfurledMediaRequestWithAttachmentReferenceRequired.md @@ -0,0 +1,11 @@ +# UnfurledMediaRequestWithAttachmentReferenceRequired + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnfurledMediaResponse.md b/docs/UnfurledMediaResponse.md new file mode 100644 index 0000000..8ddef56 --- /dev/null +++ b/docs/UnfurledMediaResponse.md @@ -0,0 +1,17 @@ +# UnfurledMediaResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**url** | **String** | | +**proxy_url** | **String** | | +**width** | Option<**i32**> | | [optional] +**height** | Option<**i32**> | | [optional] +**content_type** | Option<**String**> | | [optional] +**attachment_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateApplicationEmojiRequest.md b/docs/UpdateApplicationEmojiRequest.md new file mode 100644 index 0000000..2dd57c3 --- /dev/null +++ b/docs/UpdateApplicationEmojiRequest.md @@ -0,0 +1,11 @@ +# UpdateApplicationEmojiRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateApplicationUserRoleConnectionRequest.md b/docs/UpdateApplicationUserRoleConnectionRequest.md new file mode 100644 index 0000000..ac602b5 --- /dev/null +++ b/docs/UpdateApplicationUserRoleConnectionRequest.md @@ -0,0 +1,13 @@ +# UpdateApplicationUserRoleConnectionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**platform_name** | Option<**String**> | | [optional] +**platform_username** | Option<**String**> | | [optional] +**metadata** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateAutoModerationRuleRequest.md b/docs/UpdateAutoModerationRuleRequest.md new file mode 100644 index 0000000..c140981 --- /dev/null +++ b/docs/UpdateAutoModerationRuleRequest.md @@ -0,0 +1,18 @@ +# UpdateAutoModerationRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**event_type** | Option<**i32**> | | [optional] +**actions** | Option<[**Vec**](DefaultKeywordListUpsertRequest_actions_inner.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**exempt_roles** | Option<**Vec**> | | [optional] +**exempt_channels** | Option<**Vec**> | | [optional] +**trigger_type** | Option<**i32**> | | [optional] +**trigger_metadata** | Option<[**models::MentionSpamTriggerMetadata**](MentionSpamTriggerMetadata.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateChannelRequest.md b/docs/UpdateChannelRequest.md new file mode 100644 index 0000000..ff86338 --- /dev/null +++ b/docs/UpdateChannelRequest.md @@ -0,0 +1,36 @@ +# UpdateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] +**r#type** | Option<**i32**> | | [optional] +**position** | Option<**i32**> | | [optional] +**topic** | Option<**String**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**parent_id** | Option<**String**> | | [optional] +**permission_overwrites** | Option<[**Vec**](ChannelPermissionOverwriteRequest.md)> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**default_reaction_emoji** | Option<[**models::UpdateDefaultReactionEmojiRequest**](UpdateDefaultReactionEmojiRequest.md)> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**available_tags** | Option<[**Vec**](UpdateThreadTagRequest.md)> | | [optional] +**archived** | Option<**bool**> | | [optional] +**locked** | Option<**bool**> | | [optional] +**invitable** | Option<**bool**> | | [optional] +**auto_archive_duration** | Option<**i32**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateDefaultReactionEmojiRequest.md b/docs/UpdateDefaultReactionEmojiRequest.md new file mode 100644 index 0000000..8ba5620 --- /dev/null +++ b/docs/UpdateDefaultReactionEmojiRequest.md @@ -0,0 +1,12 @@ +# UpdateDefaultReactionEmojiRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateDmRequestPartial.md b/docs/UpdateDmRequestPartial.md new file mode 100644 index 0000000..c54d6b4 --- /dev/null +++ b/docs/UpdateDmRequestPartial.md @@ -0,0 +1,11 @@ +# UpdateDmRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGroupDmRequestPartial.md b/docs/UpdateGroupDmRequestPartial.md new file mode 100644 index 0000000..f37c88a --- /dev/null +++ b/docs/UpdateGroupDmRequestPartial.md @@ -0,0 +1,12 @@ +# UpdateGroupDmRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**icon** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildChannelRequestPartial.md b/docs/UpdateGuildChannelRequestPartial.md new file mode 100644 index 0000000..b0780ca --- /dev/null +++ b/docs/UpdateGuildChannelRequestPartial.md @@ -0,0 +1,30 @@ +# UpdateGuildChannelRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | [optional] +**name** | Option<**String**> | | [optional] +**position** | Option<**i32**> | | [optional] +**topic** | Option<**String**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**nsfw** | Option<**bool**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**parent_id** | Option<**String**> | | [optional] +**permission_overwrites** | Option<[**Vec**](ChannelPermissionOverwriteRequest.md)> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] +**default_auto_archive_duration** | Option<**i32**> | | [optional] +**default_reaction_emoji** | Option<[**models::UpdateDefaultReactionEmojiRequest**](UpdateDefaultReactionEmojiRequest.md)> | | [optional] +**default_thread_rate_limit_per_user** | Option<**i32**> | | [optional] +**default_sort_order** | Option<**i32**> | | [optional] +**default_forum_layout** | Option<**i32**> | | [optional] +**default_tag_setting** | Option<**String**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**available_tags** | Option<[**Vec**](UpdateThreadTagRequest.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildEmojiRequest.md b/docs/UpdateGuildEmojiRequest.md new file mode 100644 index 0000000..8db74a5 --- /dev/null +++ b/docs/UpdateGuildEmojiRequest.md @@ -0,0 +1,12 @@ +# UpdateGuildEmojiRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**roles** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildMemberRequest.md b/docs/UpdateGuildMemberRequest.md new file mode 100644 index 0000000..cfdd1b1 --- /dev/null +++ b/docs/UpdateGuildMemberRequest.md @@ -0,0 +1,17 @@ +# UpdateGuildMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nick** | Option<**String**> | | [optional] +**roles** | Option<**Vec**> | | [optional] +**mute** | Option<**bool**> | | [optional] +**deaf** | Option<**bool**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**communication_disabled_until** | Option<**String**> | | [optional] +**flags** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildOnboardingRequest.md b/docs/UpdateGuildOnboardingRequest.md new file mode 100644 index 0000000..5e5cb03 --- /dev/null +++ b/docs/UpdateGuildOnboardingRequest.md @@ -0,0 +1,14 @@ +# UpdateGuildOnboardingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prompts** | Option<[**Vec**](UpdateOnboardingPromptRequest.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] +**default_channel_ids** | Option<**Vec**> | | [optional] +**mode** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildScheduledEventRequest.md b/docs/UpdateGuildScheduledEventRequest.md new file mode 100644 index 0000000..20f7ab5 --- /dev/null +++ b/docs/UpdateGuildScheduledEventRequest.md @@ -0,0 +1,20 @@ +# UpdateGuildScheduledEventRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | Option<**i32**> | | [optional] +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | Option<**String**> | | [optional] +**scheduled_end_time** | Option<**String**> | | [optional] +**entity_type** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildStickerRequest.md b/docs/UpdateGuildStickerRequest.md new file mode 100644 index 0000000..801a5dc --- /dev/null +++ b/docs/UpdateGuildStickerRequest.md @@ -0,0 +1,13 @@ +# UpdateGuildStickerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**tags** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildTemplateRequest.md b/docs/UpdateGuildTemplateRequest.md new file mode 100644 index 0000000..28ec40a --- /dev/null +++ b/docs/UpdateGuildTemplateRequest.md @@ -0,0 +1,12 @@ +# UpdateGuildTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateGuildWidgetSettingsRequest.md b/docs/UpdateGuildWidgetSettingsRequest.md new file mode 100644 index 0000000..d90dad5 --- /dev/null +++ b/docs/UpdateGuildWidgetSettingsRequest.md @@ -0,0 +1,12 @@ +# UpdateGuildWidgetSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | Option<**String**> | | [optional] +**enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateMessageInteractionCallbackRequest.md b/docs/UpdateMessageInteractionCallbackRequest.md new file mode 100644 index 0000000..66a4c9f --- /dev/null +++ b/docs/UpdateMessageInteractionCallbackRequest.md @@ -0,0 +1,12 @@ +# UpdateMessageInteractionCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**data** | Option<[**models::IncomingWebhookUpdateForInteractionCallbackRequestPartial**](IncomingWebhookUpdateForInteractionCallbackRequestPartial.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateMessageInteractionCallbackResponse.md b/docs/UpdateMessageInteractionCallbackResponse.md new file mode 100644 index 0000000..c647162 --- /dev/null +++ b/docs/UpdateMessageInteractionCallbackResponse.md @@ -0,0 +1,12 @@ +# UpdateMessageInteractionCallbackResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**i32**> | | +**message** | [**models::MessageResponse**](MessageResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateMyGuildMemberRequest.md b/docs/UpdateMyGuildMemberRequest.md new file mode 100644 index 0000000..e274920 --- /dev/null +++ b/docs/UpdateMyGuildMemberRequest.md @@ -0,0 +1,11 @@ +# UpdateMyGuildMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nick** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateOnboardingPromptRequest.md b/docs/UpdateOnboardingPromptRequest.md new file mode 100644 index 0000000..3a788c3 --- /dev/null +++ b/docs/UpdateOnboardingPromptRequest.md @@ -0,0 +1,17 @@ +# UpdateOnboardingPromptRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | | +**options** | [**Vec**](OnboardingPromptOptionRequest.md) | | +**single_select** | Option<**bool**> | | [optional] +**required** | Option<**bool**> | | [optional] +**in_onboarding** | Option<**bool**> | | [optional] +**r#type** | Option<**i32**> | | [optional] +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateSelfVoiceStateRequest.md b/docs/UpdateSelfVoiceStateRequest.md new file mode 100644 index 0000000..26e23e4 --- /dev/null +++ b/docs/UpdateSelfVoiceStateRequest.md @@ -0,0 +1,13 @@ +# UpdateSelfVoiceStateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_to_speak_timestamp** | Option<**String**> | | [optional] +**suppress** | Option<**bool**> | | [optional] +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateStageInstanceRequest.md b/docs/UpdateStageInstanceRequest.md new file mode 100644 index 0000000..d42d6ac --- /dev/null +++ b/docs/UpdateStageInstanceRequest.md @@ -0,0 +1,12 @@ +# UpdateStageInstanceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topic** | Option<**String**> | | [optional] +**privacy_level** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateThreadRequestPartial.md b/docs/UpdateThreadRequestPartial.md new file mode 100644 index 0000000..bada00a --- /dev/null +++ b/docs/UpdateThreadRequestPartial.md @@ -0,0 +1,22 @@ +# UpdateThreadRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**archived** | Option<**bool**> | | [optional] +**locked** | Option<**bool**> | | [optional] +**invitable** | Option<**bool**> | | [optional] +**auto_archive_duration** | Option<**i32**> | | [optional] +**rate_limit_per_user** | Option<**i32**> | | [optional] +**flags** | Option<**i32**> | | [optional] +**applied_tags** | Option<**Vec**> | | [optional] +**bitrate** | Option<**i32**> | | [optional] +**user_limit** | Option<**i32**> | | [optional] +**rtc_region** | Option<**String**> | | [optional] +**video_quality_mode** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateThreadTagRequest.md b/docs/UpdateThreadTagRequest.md new file mode 100644 index 0000000..b8a5bc3 --- /dev/null +++ b/docs/UpdateThreadTagRequest.md @@ -0,0 +1,15 @@ +# UpdateThreadTagRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**emoji_id** | Option<**String**> | | [optional] +**emoji_name** | Option<**String**> | | [optional] +**moderated** | Option<**bool**> | | [optional] +**id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateVoiceStateRequest.md b/docs/UpdateVoiceStateRequest.md new file mode 100644 index 0000000..7512d50 --- /dev/null +++ b/docs/UpdateVoiceStateRequest.md @@ -0,0 +1,12 @@ +# UpdateVoiceStateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suppress** | Option<**bool**> | | [optional] +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateWebhookByTokenRequest.md b/docs/UpdateWebhookByTokenRequest.md new file mode 100644 index 0000000..aeabecd --- /dev/null +++ b/docs/UpdateWebhookByTokenRequest.md @@ -0,0 +1,12 @@ +# UpdateWebhookByTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**avatar** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateWebhookRequest.md b/docs/UpdateWebhookRequest.md new file mode 100644 index 0000000..8c03cf7 --- /dev/null +++ b/docs/UpdateWebhookRequest.md @@ -0,0 +1,13 @@ +# UpdateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**avatar** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserAvatarDecorationResponse.md b/docs/UserAvatarDecorationResponse.md new file mode 100644 index 0000000..22ab586 --- /dev/null +++ b/docs/UserAvatarDecorationResponse.md @@ -0,0 +1,12 @@ +# UserAvatarDecorationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **String** | | +**sku_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserCollectiblesResponse.md b/docs/UserCollectiblesResponse.md new file mode 100644 index 0000000..ecb886a --- /dev/null +++ b/docs/UserCollectiblesResponse.md @@ -0,0 +1,11 @@ +# UserCollectiblesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nameplate** | Option<[**models::UserNameplateResponse**](UserNameplateResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserCommunicationDisabledAction.md b/docs/UserCommunicationDisabledAction.md new file mode 100644 index 0000000..256ba16 --- /dev/null +++ b/docs/UserCommunicationDisabledAction.md @@ -0,0 +1,12 @@ +# UserCommunicationDisabledAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**models::UserCommunicationDisabledActionMetadata**](UserCommunicationDisabledActionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserCommunicationDisabledActionMetadata.md b/docs/UserCommunicationDisabledActionMetadata.md new file mode 100644 index 0000000..bf3244b --- /dev/null +++ b/docs/UserCommunicationDisabledActionMetadata.md @@ -0,0 +1,11 @@ +# UserCommunicationDisabledActionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration_seconds** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserCommunicationDisabledActionMetadataResponse.md b/docs/UserCommunicationDisabledActionMetadataResponse.md new file mode 100644 index 0000000..58ef849 --- /dev/null +++ b/docs/UserCommunicationDisabledActionMetadataResponse.md @@ -0,0 +1,11 @@ +# UserCommunicationDisabledActionMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration_seconds** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserCommunicationDisabledActionResponse.md b/docs/UserCommunicationDisabledActionResponse.md new file mode 100644 index 0000000..cb33620 --- /dev/null +++ b/docs/UserCommunicationDisabledActionResponse.md @@ -0,0 +1,12 @@ +# UserCommunicationDisabledActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**metadata** | [**models::UserCommunicationDisabledActionMetadataResponse**](UserCommunicationDisabledActionMetadataResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserGuildOnboardingResponse.md b/docs/UserGuildOnboardingResponse.md new file mode 100644 index 0000000..44d0c8b --- /dev/null +++ b/docs/UserGuildOnboardingResponse.md @@ -0,0 +1,14 @@ +# UserGuildOnboardingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guild_id** | **String** | | +**prompts** | [**Vec**](OnboardingPromptResponse.md) | | +**default_channel_ids** | **Vec** | | +**enabled** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserNameplateResponse.md b/docs/UserNameplateResponse.md new file mode 100644 index 0000000..41de575 --- /dev/null +++ b/docs/UserNameplateResponse.md @@ -0,0 +1,14 @@ +# UserNameplateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sku_id** | Option<**String**> | | [optional] +**asset** | Option<**String**> | | [optional] +**label** | Option<**String**> | | [optional] +**palette** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserPiiResponse.md b/docs/UserPiiResponse.md new file mode 100644 index 0000000..bbcd765 --- /dev/null +++ b/docs/UserPiiResponse.md @@ -0,0 +1,29 @@ +# UserPiiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**username** | **String** | | +**avatar** | Option<**String**> | | [optional] +**discriminator** | **String** | | +**public_flags** | **i32** | | +**flags** | **i64** | | +**bot** | Option<**bool**> | | [optional] +**system** | Option<**bool**> | | [optional] +**banner** | Option<**String**> | | [optional] +**accent_color** | Option<**i32**> | | [optional] +**global_name** | Option<**String**> | | [optional] +**avatar_decoration_data** | Option<[**models::UserAvatarDecorationResponse**](UserAvatarDecorationResponse.md)> | | [optional] +**collectibles** | Option<[**models::UserCollectiblesResponse**](UserCollectiblesResponse.md)> | | [optional] +**primary_guild** | Option<[**models::UserPrimaryGuildResponse**](UserPrimaryGuildResponse.md)> | | [optional] +**mfa_enabled** | **bool** | | +**locale** | **String** | | +**premium_type** | Option<**i32**> | | [optional] +**email** | Option<**String**> | | [optional] +**verified** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserPrimaryGuildResponse.md b/docs/UserPrimaryGuildResponse.md new file mode 100644 index 0000000..52d6e43 --- /dev/null +++ b/docs/UserPrimaryGuildResponse.md @@ -0,0 +1,14 @@ +# UserPrimaryGuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_guild_id** | Option<**String**> | | [optional] +**identity_enabled** | Option<**bool**> | | [optional] +**tag** | Option<**String**> | | [optional] +**badge** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserResponse.md b/docs/UserResponse.md new file mode 100644 index 0000000..674e6bf --- /dev/null +++ b/docs/UserResponse.md @@ -0,0 +1,24 @@ +# UserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**username** | **String** | | +**avatar** | Option<**String**> | | [optional] +**discriminator** | **String** | | +**public_flags** | **i32** | | +**flags** | **i64** | | +**bot** | Option<**bool**> | | [optional] +**system** | Option<**bool**> | | [optional] +**banner** | Option<**String**> | | [optional] +**accent_color** | Option<**i32**> | | [optional] +**global_name** | Option<**String**> | | [optional] +**avatar_decoration_data** | Option<[**models::UserAvatarDecorationResponse**](UserAvatarDecorationResponse.md)> | | [optional] +**collectibles** | Option<[**models::UserCollectiblesResponse**](UserCollectiblesResponse.md)> | | [optional] +**primary_guild** | Option<[**models::UserPrimaryGuildResponse**](UserPrimaryGuildResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserSelectComponentForMessageRequest.md b/docs/UserSelectComponentForMessageRequest.md new file mode 100644 index 0000000..771553a --- /dev/null +++ b/docs/UserSelectComponentForMessageRequest.md @@ -0,0 +1,17 @@ +# UserSelectComponentForMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](UserSelectDefaultValue.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserSelectComponentResponse.md b/docs/UserSelectComponentResponse.md new file mode 100644 index 0000000..8230595 --- /dev/null +++ b/docs/UserSelectComponentResponse.md @@ -0,0 +1,18 @@ +# UserSelectComponentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **i32** | | +**id** | **i32** | | +**custom_id** | **String** | | +**placeholder** | Option<**String**> | | [optional] +**min_values** | Option<**i32**> | | [optional] +**max_values** | Option<**i32**> | | [optional] +**disabled** | Option<**bool**> | | [optional] +**default_values** | Option<[**Vec**](UserSelectDefaultValueResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserSelectDefaultValue.md b/docs/UserSelectDefaultValue.md new file mode 100644 index 0000000..8d85179 --- /dev/null +++ b/docs/UserSelectDefaultValue.md @@ -0,0 +1,12 @@ +# UserSelectDefaultValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserSelectDefaultValueResponse.md b/docs/UserSelectDefaultValueResponse.md new file mode 100644 index 0000000..9b22371 --- /dev/null +++ b/docs/UserSelectDefaultValueResponse.md @@ -0,0 +1,12 @@ +# UserSelectDefaultValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | Option<**String**> | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VanityUrlErrorResponse.md b/docs/VanityUrlErrorResponse.md new file mode 100644 index 0000000..0e91b95 --- /dev/null +++ b/docs/VanityUrlErrorResponse.md @@ -0,0 +1,12 @@ +# VanityUrlErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | +**code** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VanityUrlResponse.md b/docs/VanityUrlResponse.md new file mode 100644 index 0000000..64bc385 --- /dev/null +++ b/docs/VanityUrlResponse.md @@ -0,0 +1,13 @@ +# VanityUrlResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | Option<**String**> | | [optional] +**uses** | **i32** | | +**error** | Option<[**models::VanityUrlErrorResponse**](VanityURLErrorResponse.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VoiceRegionResponse.md b/docs/VoiceRegionResponse.md new file mode 100644 index 0000000..620b1d5 --- /dev/null +++ b/docs/VoiceRegionResponse.md @@ -0,0 +1,15 @@ +# VoiceRegionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**custom** | **bool** | | +**deprecated** | **bool** | | +**optimal** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VoiceScheduledEventCreateRequest.md b/docs/VoiceScheduledEventCreateRequest.md new file mode 100644 index 0000000..facb8b4 --- /dev/null +++ b/docs/VoiceScheduledEventCreateRequest.md @@ -0,0 +1,19 @@ +# VoiceScheduledEventCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**entity_type** | Option<**i32**> | | +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VoiceScheduledEventPatchRequestPartial.md b/docs/VoiceScheduledEventPatchRequestPartial.md new file mode 100644 index 0000000..40dd406 --- /dev/null +++ b/docs/VoiceScheduledEventPatchRequestPartial.md @@ -0,0 +1,20 @@ +# VoiceScheduledEventPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | Option<**i32**> | | [optional] +**name** | Option<**String**> | | [optional] +**description** | Option<**String**> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | Option<**String**> | | [optional] +**scheduled_end_time** | Option<**String**> | | [optional] +**entity_type** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VoiceScheduledEventResponse.md b/docs/VoiceScheduledEventResponse.md new file mode 100644 index 0000000..471b1f2 --- /dev/null +++ b/docs/VoiceScheduledEventResponse.md @@ -0,0 +1,27 @@ +# VoiceScheduledEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**guild_id** | **String** | | +**name** | **String** | | +**description** | Option<**String**> | | [optional] +**channel_id** | Option<**String**> | | [optional] +**creator_id** | Option<**String**> | | [optional] +**creator** | Option<[**models::UserResponse**](UserResponse.md)> | | [optional] +**image** | Option<**String**> | | [optional] +**scheduled_start_time** | **String** | | +**scheduled_end_time** | Option<**String**> | | [optional] +**status** | Option<**i32**> | | +**entity_type** | Option<**i32**> | | +**entity_id** | Option<**String**> | | [optional] +**user_count** | Option<**i32**> | | [optional] +**privacy_level** | Option<[**serde_json::Value**](.md)> | | +**user_rsvp** | Option<[**models::ScheduledEventUserResponse**](ScheduledEventUserResponse.md)> | | [optional] +**entity_metadata** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VoiceStateResponse.md b/docs/VoiceStateResponse.md new file mode 100644 index 0000000..9cc0d5b --- /dev/null +++ b/docs/VoiceStateResponse.md @@ -0,0 +1,23 @@ +# VoiceStateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel_id** | Option<**String**> | | [optional] +**deaf** | **bool** | | +**guild_id** | Option<**String**> | | [optional] +**member** | Option<[**models::GuildMemberResponse**](GuildMemberResponse.md)> | | [optional] +**mute** | **bool** | | +**request_to_speak_timestamp** | Option<**String**> | | [optional] +**suppress** | **bool** | | +**self_stream** | Option<**bool**> | | [optional] +**self_deaf** | **bool** | | +**self_mute** | **bool** | | +**self_video** | **bool** | | +**session_id** | **String** | | +**user_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebhookSlackEmbed.md b/docs/WebhookSlackEmbed.md new file mode 100644 index 0000000..76db500 --- /dev/null +++ b/docs/WebhookSlackEmbed.md @@ -0,0 +1,24 @@ +# WebhookSlackEmbed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | Option<**String**> | | [optional] +**title_link** | Option<**String**> | | [optional] +**text** | Option<**String**> | | [optional] +**color** | Option<**String**> | | [optional] +**ts** | Option<**i32**> | | [optional] +**pretext** | Option<**String**> | | [optional] +**footer** | Option<**String**> | | [optional] +**footer_icon** | Option<**String**> | | [optional] +**author_name** | Option<**String**> | | [optional] +**author_link** | Option<**String**> | | [optional] +**author_icon** | Option<**String**> | | [optional] +**image_url** | Option<**String**> | | [optional] +**thumb_url** | Option<**String**> | | [optional] +**fields** | Option<[**Vec**](WebhookSlackEmbedField.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebhookSlackEmbedField.md b/docs/WebhookSlackEmbedField.md new file mode 100644 index 0000000..b7173d4 --- /dev/null +++ b/docs/WebhookSlackEmbedField.md @@ -0,0 +1,13 @@ +# WebhookSlackEmbedField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] +**value** | Option<**String**> | | [optional] +**inline** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebhookSourceChannelResponse.md b/docs/WebhookSourceChannelResponse.md new file mode 100644 index 0000000..8d6687e --- /dev/null +++ b/docs/WebhookSourceChannelResponse.md @@ -0,0 +1,12 @@ +# WebhookSourceChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebhookSourceGuildResponse.md b/docs/WebhookSourceGuildResponse.md new file mode 100644 index 0000000..bf7edb9 --- /dev/null +++ b/docs/WebhookSourceGuildResponse.md @@ -0,0 +1,13 @@ +# WebhookSourceGuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**icon** | Option<**String**> | | [optional] +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WelcomeMessageResponse.md b/docs/WelcomeMessageResponse.md new file mode 100644 index 0000000..926b2d9 --- /dev/null +++ b/docs/WelcomeMessageResponse.md @@ -0,0 +1,12 @@ +# WelcomeMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author_ids** | **Vec** | | +**message** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WelcomeScreenPatchRequestPartial.md b/docs/WelcomeScreenPatchRequestPartial.md new file mode 100644 index 0000000..4bf6155 --- /dev/null +++ b/docs/WelcomeScreenPatchRequestPartial.md @@ -0,0 +1,13 @@ +# WelcomeScreenPatchRequestPartial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | Option<**String**> | | [optional] +**welcome_channels** | Option<[**Vec**](GuildWelcomeChannel.md)> | | [optional] +**enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WidgetActivity.md b/docs/WidgetActivity.md new file mode 100644 index 0000000..2a9b95c --- /dev/null +++ b/docs/WidgetActivity.md @@ -0,0 +1,11 @@ +# WidgetActivity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WidgetChannel.md b/docs/WidgetChannel.md new file mode 100644 index 0000000..90d6364 --- /dev/null +++ b/docs/WidgetChannel.md @@ -0,0 +1,13 @@ +# WidgetChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**position** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WidgetMember.md b/docs/WidgetMember.md new file mode 100644 index 0000000..e6def1b --- /dev/null +++ b/docs/WidgetMember.md @@ -0,0 +1,23 @@ +# WidgetMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**username** | **String** | | +**discriminator** | Option<**String**> | | +**avatar** | Option<[**serde_json::Value**](.md)> | | [optional] +**status** | **String** | | +**avatar_url** | **String** | | +**activity** | Option<[**models::WidgetActivity**](WidgetActivity.md)> | | [optional] +**deaf** | Option<**bool**> | | [optional] +**mute** | Option<**bool**> | | [optional] +**self_deaf** | Option<**bool**> | | [optional] +**self_mute** | Option<**bool**> | | [optional] +**suppress** | Option<**bool**> | | [optional] +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WidgetResponse.md b/docs/WidgetResponse.md new file mode 100644 index 0000000..cec891a --- /dev/null +++ b/docs/WidgetResponse.md @@ -0,0 +1,16 @@ +# WidgetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**name** | **String** | | +**instant_invite** | Option<**String**> | | [optional] +**channels** | [**Vec**](WidgetChannel.md) | | +**members** | [**Vec**](WidgetMember.md) | | +**presence_count** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WidgetSettingsResponse.md b/docs/WidgetSettingsResponse.md new file mode 100644 index 0000000..6531c84 --- /dev/null +++ b/docs/WidgetSettingsResponse.md @@ -0,0 +1,12 @@ +# WidgetSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | +**channel_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/src/apis/configuration.rs b/src/apis/configuration.rs new file mode 100644 index 0000000..cc5025d --- /dev/null +++ b/src/apis/configuration.rs @@ -0,0 +1,104 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+ + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + #[cfg(feature = "middleware")] + pub client: reqwest_middleware::ClientWithMiddleware, + #[cfg(not(feature = "middleware"))] + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, +} + + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + #[cfg(feature = "middleware")] + { + Configuration { + base_path: "https://discord.com/api/v10".to_owned(), + user_agent: Some("OpenAPI-Generator/10/rust".to_owned()), + client: reqwest_middleware::ClientBuilder::new(reqwest::Client::new()).build(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + } + } + #[cfg(not(feature = "middleware"))] + { + Configuration { + base_path: "https://discord.com/api/v10".to_owned(), + user_agent: None, + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + } + } + } +} + diff --git a/src/apis/default_api.rs b/src/apis/default_api.rs new file mode 100644 index 0000000..3abe8e4 --- /dev/null +++ b/src/apis/default_api.rs @@ -0,0 +1,13591 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+ +use async_trait::async_trait; +use reqwest; +use std::sync::Arc; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration}; +use crate::apis::ContentType; + +#[async_trait] +pub trait DefaultApi: Send + Sync { + + /// PUT /channels/{channel_id}/recipients/{user_id} + /// + /// + async fn add_group_dm_user<'channel_id, 'user_id, 'add_group_dm_user_request>(&self, channel_id: &'channel_id str, user_id: &'user_id str, add_group_dm_user_request: models::AddGroupDmUserRequest) -> Result, Error>; + + /// PUT /guilds/{guild_id}/members/{user_id} + /// + /// + async fn add_guild_member<'guild_id, 'user_id, 'add_guild_member_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, add_guild_member_request: models::AddGuildMemberRequest) -> Result, Error>; + + /// PUT /guilds/{guild_id}/members/{user_id}/roles/{role_id} + /// + /// + async fn add_guild_member_role<'guild_id, 'user_id, 'role_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str, role_id: &'role_id str) -> Result, Error>; + + /// PUT /lobbies/{lobby_id}/members/{user_id} + /// + /// + async fn add_lobby_member<'lobby_id, 'user_id, 'add_lobby_member_request>(&self, lobby_id: &'lobby_id str, user_id: &'user_id str, add_lobby_member_request: models::AddLobbyMemberRequest) -> Result, Error>; + + /// PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me + /// + /// + async fn add_my_message_reaction<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error>; + + /// PUT /channels/{channel_id}/thread-members/{user_id} + /// + /// + async fn add_thread_member<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error>; + + /// GET /applications/{application_id}/activity-instances/{instance_id} + /// + /// + async fn applications_get_activity_instance<'application_id, 'instance_id>(&self, application_id: &'application_id str, instance_id: &'instance_id str) -> Result, Error>; + + /// PUT /guilds/{guild_id}/bans/{user_id} + /// + /// + async fn ban_user_from_guild<'guild_id, 'user_id, 'ban_user_from_guild_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, ban_user_from_guild_request: models::BanUserFromGuildRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/bulk-ban + /// + /// + async fn bulk_ban_users_from_guild<'guild_id, 'bulk_ban_users_from_guild_request>(&self, guild_id: &'guild_id str, bulk_ban_users_from_guild_request: models::BulkBanUsersFromGuildRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/messages/bulk-delete + /// + /// + async fn bulk_delete_messages<'channel_id, 'bulk_delete_messages_request>(&self, channel_id: &'channel_id str, bulk_delete_messages_request: models::BulkDeleteMessagesRequest) -> Result, Error>; + + /// PUT /applications/{application_id}/commands + /// + /// + async fn bulk_set_application_commands<'application_id, 'application_command_update_request>(&self, application_id: &'application_id str, application_command_update_request: Option>) -> Result, Error>; + + /// PUT /applications/{application_id}/guilds/{guild_id}/commands + /// + /// + async fn bulk_set_guild_application_commands<'application_id, 'guild_id, 'application_command_update_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, application_command_update_request: Option>) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/channels + /// + /// + async fn bulk_update_guild_channels<'guild_id, 'bulk_update_guild_channels_request_inner>(&self, guild_id: &'guild_id str, bulk_update_guild_channels_request_inner: Vec) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/roles + /// + /// + async fn bulk_update_guild_roles<'guild_id, 'bulk_update_guild_roles_request_inner>(&self, guild_id: &'guild_id str, bulk_update_guild_roles_request_inner: Vec) -> Result, Error>; + + /// POST /lobbies/{lobby_id}/members/bulk + /// + /// + async fn bulk_update_lobby_members<'lobby_id, 'bulk_lobby_member_request>(&self, lobby_id: &'lobby_id str, bulk_lobby_member_request: Option>) -> Result, Error>; + + /// POST /applications/{application_id}/entitlements/{entitlement_id}/consume + /// + /// + async fn consume_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error>; + + /// POST /applications/{application_id}/commands + /// + /// + async fn create_application_command<'application_id, 'application_command_create_request>(&self, application_id: &'application_id str, application_command_create_request: models::ApplicationCommandCreateRequest) -> Result, Error>; + + /// POST /applications/{application_id}/emojis + /// + /// + async fn create_application_emoji<'application_id, 'create_application_emoji_request>(&self, application_id: &'application_id str, create_application_emoji_request: models::CreateApplicationEmojiRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/auto-moderation/rules + /// + /// + async fn create_auto_moderation_rule<'guild_id, 'create_auto_moderation_rule_request>(&self, guild_id: &'guild_id str, create_auto_moderation_rule_request: models::CreateAutoModerationRuleRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/invites + /// + /// + async fn create_channel_invite<'channel_id, 'create_channel_invite_request>(&self, channel_id: &'channel_id str, create_channel_invite_request: models::CreateChannelInviteRequest) -> Result, Error>; + + /// POST /users/@me/channels + /// + /// + async fn create_dm<'create_private_channel_request>(&self, create_private_channel_request: models::CreatePrivateChannelRequest) -> Result, Error>; + + /// POST /applications/{application_id}/entitlements + /// + /// + async fn create_entitlement<'application_id, 'create_entitlement_request_data>(&self, application_id: &'application_id str, create_entitlement_request_data: models::CreateEntitlementRequestData) -> Result, Error>; + + /// POST /guilds + /// + /// + async fn create_guild<'guild_create_request>(&self, guild_create_request: models::GuildCreateRequest) -> Result, Error>; + + /// POST /applications/{application_id}/guilds/{guild_id}/commands + /// + /// + async fn create_guild_application_command<'application_id, 'guild_id, 'application_command_create_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, application_command_create_request: models::ApplicationCommandCreateRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/channels + /// + /// + async fn create_guild_channel<'guild_id, 'create_guild_channel_request>(&self, guild_id: &'guild_id str, create_guild_channel_request: models::CreateGuildChannelRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/emojis + /// + /// + async fn create_guild_emoji<'guild_id, 'create_guild_emoji_request>(&self, guild_id: &'guild_id str, create_guild_emoji_request: models::CreateGuildEmojiRequest) -> Result, Error>; + + /// POST /guilds/templates/{code} + /// + /// + async fn create_guild_from_template<'code, 'create_guild_from_template_request>(&self, code: &'code str, create_guild_from_template_request: models::CreateGuildFromTemplateRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/roles + /// + /// + async fn create_guild_role<'guild_id, 'create_guild_role_request>(&self, guild_id: &'guild_id str, create_guild_role_request: models::CreateGuildRoleRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/scheduled-events + /// + /// + async fn create_guild_scheduled_event<'guild_id, 'create_guild_scheduled_event_request>(&self, guild_id: &'guild_id str, create_guild_scheduled_event_request: models::CreateGuildScheduledEventRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/soundboard-sounds + /// + /// + async fn create_guild_soundboard_sound<'guild_id, 'soundboard_create_request>(&self, guild_id: &'guild_id str, soundboard_create_request: models::SoundboardCreateRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/stickers + /// + /// + async fn create_guild_sticker<'guild_id, 'name, 'tags, 'file, 'description>(&self, guild_id: &'guild_id str, name: &'name str, tags: &'tags str, file: &'file str, description: Option<&'description str>) -> Result, Error>; + + /// POST /guilds/{guild_id}/templates + /// + /// + async fn create_guild_template<'guild_id, 'create_guild_template_request>(&self, guild_id: &'guild_id str, create_guild_template_request: models::CreateGuildTemplateRequest) -> Result, Error>; + + /// POST /interactions/{interaction_id}/{interaction_token}/callback + /// + /// + async fn create_interaction_response<'interaction_id, 'interaction_token, 'create_interaction_response_request, 'with_response>(&self, interaction_id: &'interaction_id str, interaction_token: &'interaction_token str, create_interaction_response_request: models::CreateInteractionResponseRequest, with_response: Option) -> Result, Error>; + + /// POST /lobbies + /// + /// + async fn create_lobby<'create_lobby_request>(&self, create_lobby_request: models::CreateLobbyRequest) -> Result, Error>; + + /// POST /lobbies/{lobby_id}/messages + /// + /// + async fn create_lobby_message<'lobby_id, 'sdk_message_request>(&self, lobby_id: &'lobby_id str, sdk_message_request: models::SdkMessageRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/messages + /// + /// + async fn create_message<'channel_id, 'message_create_request>(&self, channel_id: &'channel_id str, message_create_request: models::MessageCreateRequest) -> Result, Error>; + + /// PUT /lobbies + /// + /// + async fn create_or_join_lobby<'create_or_join_lobby_request>(&self, create_or_join_lobby_request: models::CreateOrJoinLobbyRequest) -> Result, Error>; + + /// PUT /channels/{channel_id}/messages/pins/{message_id} + /// + /// + async fn create_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// POST /stage-instances + /// + /// + async fn create_stage_instance<'create_stage_instance_request>(&self, create_stage_instance_request: models::CreateStageInstanceRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/threads + /// + /// + async fn create_thread<'channel_id, 'create_thread_request>(&self, channel_id: &'channel_id str, create_thread_request: models::CreateThreadRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/messages/{message_id}/threads + /// + /// + async fn create_thread_from_message<'channel_id, 'message_id, 'create_text_thread_with_message_request>(&self, channel_id: &'channel_id str, message_id: &'message_id str, create_text_thread_with_message_request: models::CreateTextThreadWithMessageRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/webhooks + /// + /// + async fn create_webhook<'channel_id, 'create_webhook_request>(&self, channel_id: &'channel_id str, create_webhook_request: models::CreateWebhookRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/messages/{message_id}/crosspost + /// + /// + async fn crosspost_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/{message_id}/reactions + /// + /// + async fn delete_all_message_reactions<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} + /// + /// + async fn delete_all_message_reactions_by_emoji<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error>; + + /// DELETE /applications/{application_id}/commands/{command_id} + /// + /// + async fn delete_application_command<'application_id, 'command_id>(&self, application_id: &'application_id str, command_id: &'command_id str) -> Result, Error>; + + /// DELETE /applications/{application_id}/emojis/{emoji_id} + /// + /// + async fn delete_application_emoji<'application_id, 'emoji_id>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str) -> Result, Error>; + + /// DELETE /users/@me/applications/{application_id}/role-connection + /// + /// + async fn delete_application_user_role_connection<'application_id>(&self, application_id: &'application_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/auto-moderation/rules/{rule_id} + /// + /// + async fn delete_auto_moderation_rule<'guild_id, 'rule_id>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id} + /// + /// + async fn delete_channel<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/permissions/{overwrite_id} + /// + /// + async fn delete_channel_permission_overwrite<'channel_id, 'overwrite_id>(&self, channel_id: &'channel_id str, overwrite_id: &'overwrite_id str) -> Result, Error>; + + /// DELETE /applications/{application_id}/entitlements/{entitlement_id} + /// + /// + async fn delete_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/recipients/{user_id} + /// + /// + async fn delete_group_dm_user<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id} + /// + /// + async fn delete_guild<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// DELETE /applications/{application_id}/guilds/{guild_id}/commands/{command_id} + /// + /// + async fn delete_guild_application_command<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/emojis/{emoji_id} + /// + /// + async fn delete_guild_emoji<'guild_id, 'emoji_id>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/integrations/{integration_id} + /// + /// + async fn delete_guild_integration<'guild_id, 'integration_id>(&self, guild_id: &'guild_id str, integration_id: &'integration_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/members/{user_id} + /// + /// + async fn delete_guild_member<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/members/{user_id}/roles/{role_id} + /// + /// + async fn delete_guild_member_role<'guild_id, 'user_id, 'role_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str, role_id: &'role_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/roles/{role_id} + /// + /// + async fn delete_guild_role<'guild_id, 'role_id>(&self, guild_id: &'guild_id str, role_id: &'role_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} + /// + /// + async fn delete_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/soundboard-sounds/{sound_id} + /// + /// + async fn delete_guild_soundboard_sound<'guild_id, 'sound_id>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/stickers/{sticker_id} + /// + /// + async fn delete_guild_sticker<'guild_id, 'sticker_id>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/templates/{code} + /// + /// + async fn delete_guild_template<'guild_id, 'code>(&self, guild_id: &'guild_id str, code: &'code str) -> Result, Error>; + + /// DELETE /lobbies/{lobby_id}/members/{user_id} + /// + /// + async fn delete_lobby_member<'lobby_id, 'user_id>(&self, lobby_id: &'lobby_id str, user_id: &'user_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/{message_id} + /// + /// + async fn delete_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me + /// + /// + async fn delete_my_message_reaction<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error>; + + /// DELETE /webhooks/{webhook_id}/{webhook_token}/messages/@original + /// + /// + async fn delete_original_webhook_message<'webhook_id, 'webhook_token, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/pins/{message_id} + /// + /// + async fn delete_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// DELETE /stage-instances/{channel_id} + /// + /// + async fn delete_stage_instance<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/thread-members/{user_id} + /// + /// + async fn delete_thread_member<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/{user_id} + /// + /// + async fn delete_user_message_reaction<'channel_id, 'message_id, 'emoji_name, 'user_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str, user_id: &'user_id str) -> Result, Error>; + + /// DELETE /webhooks/{webhook_id} + /// + /// + async fn delete_webhook<'webhook_id>(&self, webhook_id: &'webhook_id str) -> Result, Error>; + + /// DELETE /webhooks/{webhook_id}/{webhook_token} + /// + /// + async fn delete_webhook_by_token<'webhook_id, 'webhook_token>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str) -> Result, Error>; + + /// DELETE /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} + /// + /// + async fn delete_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// PUT /channels/{channel_id}/pins/{message_id} + /// + /// + async fn deprecated_create_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/pins/{message_id} + /// + /// + async fn deprecated_delete_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/pins + /// + /// + async fn deprecated_list_pins<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// PATCH /lobbies/{lobby_id} + /// + /// + async fn edit_lobby<'lobby_id, 'create_lobby_request>(&self, lobby_id: &'lobby_id str, create_lobby_request: models::CreateLobbyRequest) -> Result, Error>; + + /// PATCH /lobbies/{lobby_id}/channel-linking + /// + /// + async fn edit_lobby_channel_link<'lobby_id, 'edit_lobby_channel_link_request>(&self, lobby_id: &'lobby_id str, edit_lobby_channel_link_request: models::EditLobbyChannelLinkRequest) -> Result, Error>; + + /// POST /webhooks/{webhook_id}/{webhook_token}/github + /// + /// + async fn execute_github_compatible_webhook<'webhook_id, 'webhook_token, 'github_webhook, 'wait, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, github_webhook: models::GithubWebhook, wait: Option, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// POST /webhooks/{webhook_id}/{webhook_token}/slack + /// + /// + async fn execute_slack_compatible_webhook<'webhook_id, 'webhook_token, 'slack_webhook, 'wait, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, slack_webhook: models::SlackWebhook, wait: Option, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// POST /webhooks/{webhook_id}/{webhook_token} + /// + /// + async fn execute_webhook<'webhook_id, 'webhook_token, 'execute_webhook_request, 'wait, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, execute_webhook_request: models::ExecuteWebhookRequest, wait: Option, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error>; + + /// POST /channels/{channel_id}/followers + /// + /// + async fn follow_channel<'channel_id, 'follow_channel_request>(&self, channel_id: &'channel_id str, follow_channel_request: models::FollowChannelRequest) -> Result, Error>; + + /// GET /guilds/{guild_id}/threads/active + /// + /// + async fn get_active_guild_threads<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/polls/{message_id}/answers/{answer_id} + /// + /// + async fn get_answer_voters<'channel_id, 'message_id, 'answer_id, 'after, 'limit>(&self, channel_id: &'channel_id str, message_id: &'message_id str, answer_id: i32, after: Option<&'after str>, limit: Option) -> Result, Error>; + + /// GET /applications/{application_id} + /// + /// + async fn get_application<'application_id>(&self, application_id: &'application_id str) -> Result, Error>; + + /// GET /applications/{application_id}/commands/{command_id} + /// + /// + async fn get_application_command<'application_id, 'command_id>(&self, application_id: &'application_id str, command_id: &'command_id str) -> Result, Error>; + + /// GET /applications/{application_id}/emojis/{emoji_id} + /// + /// + async fn get_application_emoji<'application_id, 'emoji_id>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str) -> Result, Error>; + + /// GET /applications/{application_id}/role-connections/metadata + /// + /// + async fn get_application_role_connections_metadata<'application_id>(&self, application_id: &'application_id str) -> Result, Error>; + + /// GET /users/@me/applications/{application_id}/role-connection + /// + /// + async fn get_application_user_role_connection<'application_id>(&self, application_id: &'application_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/auto-moderation/rules/{rule_id} + /// + /// + async fn get_auto_moderation_rule<'guild_id, 'rule_id>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str) -> Result, Error>; + + /// GET /gateway/bot + /// + /// + async fn get_bot_gateway<>(&self, ) -> Result, Error>; + + /// GET /channels/{channel_id} + /// + /// + async fn get_channel<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// GET /applications/{application_id}/entitlements/{entitlement_id} + /// + /// + async fn get_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error>; + + /// GET /applications/{application_id}/entitlements + /// + /// + async fn get_entitlements<'sku_ids, 'application_id, 'user_id, 'guild_id, 'before, 'after, 'limit, 'exclude_ended, 'exclude_deleted, 'only_active>(&self, sku_ids: &'sku_ids str, application_id: &'application_id str, user_id: Option<&'user_id str>, guild_id: Option<&'guild_id str>, before: Option<&'before str>, after: Option<&'after str>, limit: Option, exclude_ended: Option, exclude_deleted: Option, only_active: Option) -> Result, Error>; + + /// GET /gateway + /// + /// + async fn get_gateway<>(&self, ) -> Result, Error>; + + /// GET /guilds/{guild_id} + /// + /// + async fn get_guild<'guild_id, 'with_counts>(&self, guild_id: &'guild_id str, with_counts: Option) -> Result, Error>; + + /// GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id} + /// + /// + async fn get_guild_application_command<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error>; + + /// GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions + /// + /// + async fn get_guild_application_command_permissions<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/bans/{user_id} + /// + /// + async fn get_guild_ban<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/emojis/{emoji_id} + /// + /// + async fn get_guild_emoji<'guild_id, 'emoji_id>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/members/{user_id} + /// + /// + async fn get_guild_member<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/new-member-welcome + /// + /// + async fn get_guild_new_member_welcome<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/preview + /// + /// + async fn get_guild_preview<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/roles/{role_id} + /// + /// + async fn get_guild_role<'guild_id, 'role_id>(&self, guild_id: &'guild_id str, role_id: &'role_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} + /// + /// + async fn get_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id, 'with_user_count>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, with_user_count: Option) -> Result, Error>; + + /// GET /guilds/{guild_id}/soundboard-sounds/{sound_id} + /// + /// + async fn get_guild_soundboard_sound<'guild_id, 'sound_id>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/stickers/{sticker_id} + /// + /// + async fn get_guild_sticker<'guild_id, 'sticker_id>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str) -> Result, Error>; + + /// GET /guilds/templates/{code} + /// + /// + async fn get_guild_template<'code>(&self, code: &'code str) -> Result, Error>; + + /// GET /guilds/{guild_id}/vanity-url + /// + /// + async fn get_guild_vanity_url<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/webhooks + /// + /// + async fn get_guild_webhooks<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/welcome-screen + /// + /// + async fn get_guild_welcome_screen<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/widget.json + /// + /// + async fn get_guild_widget<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/widget.png + /// + /// + async fn get_guild_widget_png<'guild_id, 'style>(&self, guild_id: &'guild_id str, style: Option<&'style str>) -> Result, Error>; + + /// GET /guilds/{guild_id}/widget + /// + /// + async fn get_guild_widget_settings<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/onboarding + /// + /// + async fn get_guilds_onboarding<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /lobbies/{lobby_id} + /// + /// + async fn get_lobby<'lobby_id>(&self, lobby_id: &'lobby_id str) -> Result, Error>; + + /// GET /lobbies/{lobby_id}/messages + /// + /// + async fn get_lobby_messages<'lobby_id, 'limit>(&self, lobby_id: &'lobby_id str, limit: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/messages/{message_id} + /// + /// + async fn get_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// GET /applications/@me + /// + /// + async fn get_my_application<>(&self, ) -> Result, Error>; + + /// GET /users/@me/guilds/{guild_id}/member + /// + /// + async fn get_my_guild_member<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /oauth2/applications/@me + /// + /// + async fn get_my_oauth2_application<>(&self, ) -> Result, Error>; + + /// GET /oauth2/@me + /// + /// + async fn get_my_oauth2_authorization<>(&self, ) -> Result, Error>; + + /// GET /users/@me + /// + /// + async fn get_my_user<>(&self, ) -> Result, Error>; + + /// GET /oauth2/userinfo + /// + /// + async fn get_openid_connect_userinfo<>(&self, ) -> Result, Error>; + + /// GET /webhooks/{webhook_id}/{webhook_token}/messages/@original + /// + /// + async fn get_original_webhook_message<'webhook_id, 'webhook_token, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// GET /oauth2/keys + /// + /// + async fn get_public_keys<>(&self, ) -> Result, Error>; + + /// GET /guilds/{guild_id}/voice-states/@me + /// + /// + async fn get_self_voice_state<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /soundboard-default-sounds + /// + /// + async fn get_soundboard_default_sounds<>(&self, ) -> Result, Error>; + + /// GET /stage-instances/{channel_id} + /// + /// + async fn get_stage_instance<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// GET /stickers/{sticker_id} + /// + /// + async fn get_sticker<'sticker_id>(&self, sticker_id: &'sticker_id str) -> Result, Error>; + + /// GET /sticker-packs/{pack_id} + /// + /// + async fn get_sticker_pack<'pack_id>(&self, pack_id: &'pack_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/thread-members/{user_id} + /// + /// + async fn get_thread_member<'channel_id, 'user_id, 'with_member>(&self, channel_id: &'channel_id str, user_id: &'user_id str, with_member: Option) -> Result, Error>; + + /// GET /users/{user_id} + /// + /// + async fn get_user<'user_id>(&self, user_id: &'user_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/voice-states/{user_id} + /// + /// + async fn get_voice_state<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error>; + + /// GET /webhooks/{webhook_id} + /// + /// + async fn get_webhook<'webhook_id>(&self, webhook_id: &'webhook_id str) -> Result, Error>; + + /// GET /webhooks/{webhook_id}/{webhook_token} + /// + /// + async fn get_webhook_by_token<'webhook_id, 'webhook_token>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str) -> Result, Error>; + + /// GET /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} + /// + /// + async fn get_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, thread_id: Option<&'thread_id str>) -> Result, Error>; + + /// GET /invites/{code} + /// + /// + async fn invite_resolve<'code, 'with_counts, 'guild_scheduled_event_id>(&self, code: &'code str, with_counts: Option, guild_scheduled_event_id: Option<&'guild_scheduled_event_id str>) -> Result, Error>; + + /// DELETE /invites/{code} + /// + /// + async fn invite_revoke<'code>(&self, code: &'code str) -> Result, Error>; + + /// PUT /channels/{channel_id}/thread-members/@me + /// + /// + async fn join_thread<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// DELETE /users/@me/guilds/{guild_id} + /// + /// + async fn leave_guild<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// DELETE /lobbies/{lobby_id}/members/@me + /// + /// + async fn leave_lobby<'lobby_id>(&self, lobby_id: &'lobby_id str) -> Result, Error>; + + /// DELETE /channels/{channel_id}/thread-members/@me + /// + /// + async fn leave_thread<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// GET /applications/{application_id}/commands + /// + /// + async fn list_application_commands<'application_id, 'with_localizations>(&self, application_id: &'application_id str, with_localizations: Option) -> Result, Error>; + + /// GET /applications/{application_id}/emojis + /// + /// + async fn list_application_emojis<'application_id>(&self, application_id: &'application_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/auto-moderation/rules + /// + /// + async fn list_auto_moderation_rules<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/invites + /// + /// + async fn list_channel_invites<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/webhooks + /// + /// + async fn list_channel_webhooks<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// GET /applications/{application_id}/guilds/{guild_id}/commands/permissions + /// + /// + async fn list_guild_application_command_permissions<'application_id, 'guild_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /applications/{application_id}/guilds/{guild_id}/commands + /// + /// + async fn list_guild_application_commands<'application_id, 'guild_id, 'with_localizations>(&self, application_id: &'application_id str, guild_id: &'guild_id str, with_localizations: Option) -> Result, Error>; + + /// GET /guilds/{guild_id}/audit-logs + /// + /// + async fn list_guild_audit_log_entries<'guild_id, 'user_id, 'target_id, 'action_type, 'before, 'after, 'limit>(&self, guild_id: &'guild_id str, user_id: Option<&'user_id str>, target_id: Option<&'target_id str>, action_type: Option, before: Option<&'before str>, after: Option<&'after str>, limit: Option) -> Result, Error>; + + /// GET /guilds/{guild_id}/bans + /// + /// + async fn list_guild_bans<'guild_id, 'limit, 'before, 'after>(&self, guild_id: &'guild_id str, limit: Option, before: Option<&'before str>, after: Option<&'after str>) -> Result, Error>; + + /// GET /guilds/{guild_id}/channels + /// + /// + async fn list_guild_channels<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/emojis + /// + /// + async fn list_guild_emojis<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/integrations + /// + /// + async fn list_guild_integrations<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/invites + /// + /// + async fn list_guild_invites<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/members + /// + /// + async fn list_guild_members<'guild_id, 'limit, 'after>(&self, guild_id: &'guild_id str, limit: Option, after: Option) -> Result, Error>; + + /// GET /guilds/{guild_id}/roles + /// + /// + async fn list_guild_roles<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users + /// + /// + async fn list_guild_scheduled_event_users<'guild_id, 'guild_scheduled_event_id, 'with_member, 'limit, 'before, 'after>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, with_member: Option, limit: Option, before: Option<&'before str>, after: Option<&'after str>) -> Result, Error>; + + /// GET /guilds/{guild_id}/scheduled-events + /// + /// + async fn list_guild_scheduled_events<'guild_id, 'with_user_count>(&self, guild_id: &'guild_id str, with_user_count: Option) -> Result, Error>; + + /// GET /guilds/{guild_id}/soundboard-sounds + /// + /// + async fn list_guild_soundboard_sounds<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/stickers + /// + /// + async fn list_guild_stickers<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/templates + /// + /// + async fn list_guild_templates<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/regions + /// + /// + async fn list_guild_voice_regions<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error>; + + /// GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji_name} + /// + /// + async fn list_message_reactions_by_emoji<'channel_id, 'message_id, 'emoji_name, 'after, 'limit, 'r_type>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str, after: Option<&'after str>, limit: Option, r#type: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/messages + /// + /// + async fn list_messages<'channel_id, 'around, 'before, 'after, 'limit>(&self, channel_id: &'channel_id str, around: Option<&'around str>, before: Option<&'before str>, after: Option<&'after str>, limit: Option) -> Result, Error>; + + /// GET /users/@me/connections + /// + /// + async fn list_my_connections<>(&self, ) -> Result, Error>; + + /// GET /users/@me/guilds + /// + /// + async fn list_my_guilds<'before, 'after, 'limit, 'with_counts>(&self, before: Option<&'before str>, after: Option<&'after str>, limit: Option, with_counts: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/users/@me/threads/archived/private + /// + /// + async fn list_my_private_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option<&'before str>, limit: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/messages/pins + /// + /// + async fn list_pins<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/threads/archived/private + /// + /// + async fn list_private_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error>; + + /// GET /channels/{channel_id}/threads/archived/public + /// + /// + async fn list_public_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error>; + + /// GET /sticker-packs + /// + /// + async fn list_sticker_packs<>(&self, ) -> Result, Error>; + + /// GET /channels/{channel_id}/thread-members + /// + /// + async fn list_thread_members<'channel_id, 'with_member, 'limit, 'after>(&self, channel_id: &'channel_id str, with_member: Option, limit: Option, after: Option<&'after str>) -> Result, Error>; + + /// GET /voice/regions + /// + /// + async fn list_voice_regions<>(&self, ) -> Result, Error>; + + /// POST /partner-sdk/token + /// + /// + async fn partner_sdk_token<'partner_sdk_unmerge_provisional_account_request>(&self, partner_sdk_unmerge_provisional_account_request: models::PartnerSdkUnmergeProvisionalAccountRequest) -> Result, Error>; + + /// POST /partner-sdk/provisional-accounts/unmerge + /// + /// + async fn partner_sdk_unmerge_provisional_account<'partner_sdk_unmerge_provisional_account_request>(&self, partner_sdk_unmerge_provisional_account_request: models::PartnerSdkUnmergeProvisionalAccountRequest) -> Result, Error>; + + /// POST /channels/{channel_id}/polls/{message_id}/expire + /// + /// + async fn poll_expire<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error>; + + /// GET /guilds/{guild_id}/prune + /// + /// + async fn preview_prune_guild<'guild_id, 'days, 'include_roles>(&self, guild_id: &'guild_id str, days: Option, include_roles: Option<&'include_roles str>) -> Result, Error>; + + /// POST /guilds/{guild_id}/prune + /// + /// + async fn prune_guild<'guild_id, 'prune_guild_request>(&self, guild_id: &'guild_id str, prune_guild_request: models::PruneGuildRequest) -> Result, Error>; + + /// PUT /guilds/{guild_id}/onboarding + /// + /// + async fn put_guilds_onboarding<'guild_id, 'update_guild_onboarding_request>(&self, guild_id: &'guild_id str, update_guild_onboarding_request: models::UpdateGuildOnboardingRequest) -> Result, Error>; + + /// GET /guilds/{guild_id}/members/search + /// + /// + async fn search_guild_members<'limit, 'query, 'guild_id>(&self, limit: i32, query: &'query str, guild_id: &'guild_id str) -> Result, Error>; + + /// POST /channels/{channel_id}/send-soundboard-sound + /// + /// + async fn send_soundboard_sound<'channel_id, 'soundboard_sound_send_request>(&self, channel_id: &'channel_id str, soundboard_sound_send_request: models::SoundboardSoundSendRequest) -> Result, Error>; + + /// PUT /channels/{channel_id}/permissions/{overwrite_id} + /// + /// + async fn set_channel_permission_overwrite<'channel_id, 'overwrite_id, 'set_channel_permission_overwrite_request>(&self, channel_id: &'channel_id str, overwrite_id: &'overwrite_id str, set_channel_permission_overwrite_request: models::SetChannelPermissionOverwriteRequest) -> Result, Error>; + + /// PUT /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions + /// + /// + async fn set_guild_application_command_permissions<'application_id, 'guild_id, 'command_id, 'set_guild_application_command_permissions_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str, set_guild_application_command_permissions_request: models::SetGuildApplicationCommandPermissionsRequest) -> Result, Error>; + + /// POST /guilds/{guild_id}/mfa + /// + /// + async fn set_guild_mfa_level<'guild_id, 'set_guild_mfa_level_request>(&self, guild_id: &'guild_id str, set_guild_mfa_level_request: models::SetGuildMfaLevelRequest) -> Result, Error>; + + /// PUT /guilds/{guild_id}/templates/{code} + /// + /// + async fn sync_guild_template<'guild_id, 'code>(&self, guild_id: &'guild_id str, code: &'code str) -> Result, Error>; + + /// GET /channels/{channel_id}/threads/search + /// + /// + async fn thread_search<'channel_id, 'name, 'slop, 'min_id, 'max_id, 'tag, 'tag_setting, 'archived, 'sort_by, 'sort_order, 'limit, 'offset>(&self, channel_id: &'channel_id str, name: Option<&'name str>, slop: Option, min_id: Option<&'min_id str>, max_id: Option<&'max_id str>, tag: Option<&'tag str>, tag_setting: Option<&'tag_setting str>, archived: Option, sort_by: Option<&'sort_by str>, sort_order: Option<&'sort_order str>, limit: Option, offset: Option) -> Result, Error>; + + /// POST /channels/{channel_id}/typing + /// + /// + async fn trigger_typing_indicator<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error>; + + /// DELETE /guilds/{guild_id}/bans/{user_id} + /// + /// + async fn unban_user_from_guild<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error>; + + /// PATCH /applications/{application_id} + /// + /// + async fn update_application<'application_id, 'application_form_partial>(&self, application_id: &'application_id str, application_form_partial: models::ApplicationFormPartial) -> Result, Error>; + + /// PATCH /applications/{application_id}/commands/{command_id} + /// + /// + async fn update_application_command<'application_id, 'command_id, 'application_command_patch_request_partial>(&self, application_id: &'application_id str, command_id: &'command_id str, application_command_patch_request_partial: models::ApplicationCommandPatchRequestPartial) -> Result, Error>; + + /// PATCH /applications/{application_id}/emojis/{emoji_id} + /// + /// + async fn update_application_emoji<'application_id, 'emoji_id, 'update_application_emoji_request>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str, update_application_emoji_request: models::UpdateApplicationEmojiRequest) -> Result, Error>; + + /// PUT /applications/{application_id}/role-connections/metadata + /// + /// + async fn update_application_role_connections_metadata<'application_id, 'application_role_connections_metadata_item_request>(&self, application_id: &'application_id str, application_role_connections_metadata_item_request: Option>) -> Result, Error>; + + /// PUT /users/@me/applications/{application_id}/role-connection + /// + /// + async fn update_application_user_role_connection<'application_id, 'update_application_user_role_connection_request>(&self, application_id: &'application_id str, update_application_user_role_connection_request: models::UpdateApplicationUserRoleConnectionRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/auto-moderation/rules/{rule_id} + /// + /// + async fn update_auto_moderation_rule<'guild_id, 'rule_id, 'update_auto_moderation_rule_request>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str, update_auto_moderation_rule_request: models::UpdateAutoModerationRuleRequest) -> Result, Error>; + + /// PATCH /channels/{channel_id} + /// + /// + async fn update_channel<'channel_id, 'update_channel_request>(&self, channel_id: &'channel_id str, update_channel_request: models::UpdateChannelRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id} + /// + /// + async fn update_guild<'guild_id, 'guild_patch_request_partial>(&self, guild_id: &'guild_id str, guild_patch_request_partial: models::GuildPatchRequestPartial) -> Result, Error>; + + /// PATCH /applications/{application_id}/guilds/{guild_id}/commands/{command_id} + /// + /// + async fn update_guild_application_command<'application_id, 'guild_id, 'command_id, 'application_command_patch_request_partial>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str, application_command_patch_request_partial: models::ApplicationCommandPatchRequestPartial) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/emojis/{emoji_id} + /// + /// + async fn update_guild_emoji<'guild_id, 'emoji_id, 'update_guild_emoji_request>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str, update_guild_emoji_request: models::UpdateGuildEmojiRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/members/{user_id} + /// + /// + async fn update_guild_member<'guild_id, 'user_id, 'update_guild_member_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, update_guild_member_request: models::UpdateGuildMemberRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/roles/{role_id} + /// + /// + async fn update_guild_role<'guild_id, 'role_id, 'create_guild_role_request>(&self, guild_id: &'guild_id str, role_id: &'role_id str, create_guild_role_request: models::CreateGuildRoleRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id} + /// + /// + async fn update_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id, 'update_guild_scheduled_event_request>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, update_guild_scheduled_event_request: models::UpdateGuildScheduledEventRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/soundboard-sounds/{sound_id} + /// + /// + async fn update_guild_soundboard_sound<'guild_id, 'sound_id, 'soundboard_patch_request_partial>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str, soundboard_patch_request_partial: models::SoundboardPatchRequestPartial) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/stickers/{sticker_id} + /// + /// + async fn update_guild_sticker<'guild_id, 'sticker_id, 'update_guild_sticker_request>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str, update_guild_sticker_request: models::UpdateGuildStickerRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/templates/{code} + /// + /// + async fn update_guild_template<'guild_id, 'code, 'update_guild_template_request>(&self, guild_id: &'guild_id str, code: &'code str, update_guild_template_request: models::UpdateGuildTemplateRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/welcome-screen + /// + /// + async fn update_guild_welcome_screen<'guild_id, 'welcome_screen_patch_request_partial>(&self, guild_id: &'guild_id str, welcome_screen_patch_request_partial: models::WelcomeScreenPatchRequestPartial) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/widget + /// + /// + async fn update_guild_widget_settings<'guild_id, 'update_guild_widget_settings_request>(&self, guild_id: &'guild_id str, update_guild_widget_settings_request: models::UpdateGuildWidgetSettingsRequest) -> Result, Error>; + + /// PATCH /channels/{channel_id}/messages/{message_id} + /// + /// + async fn update_message<'channel_id, 'message_id, 'message_edit_request_partial>(&self, channel_id: &'channel_id str, message_id: &'message_id str, message_edit_request_partial: models::MessageEditRequestPartial) -> Result, Error>; + + /// PATCH /applications/@me + /// + /// + async fn update_my_application<'application_form_partial>(&self, application_form_partial: models::ApplicationFormPartial) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/members/@me + /// + /// + async fn update_my_guild_member<'guild_id, 'update_my_guild_member_request>(&self, guild_id: &'guild_id str, update_my_guild_member_request: models::UpdateMyGuildMemberRequest) -> Result, Error>; + + /// PATCH /users/@me + /// + /// + async fn update_my_user<'bot_account_patch_request>(&self, bot_account_patch_request: models::BotAccountPatchRequest) -> Result, Error>; + + /// PATCH /webhooks/{webhook_id}/{webhook_token}/messages/@original + /// + /// + async fn update_original_webhook_message<'webhook_id, 'webhook_token, 'incoming_webhook_update_request_partial, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, incoming_webhook_update_request_partial: models::IncomingWebhookUpdateRequestPartial, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/voice-states/@me + /// + /// + async fn update_self_voice_state<'guild_id, 'update_self_voice_state_request>(&self, guild_id: &'guild_id str, update_self_voice_state_request: models::UpdateSelfVoiceStateRequest) -> Result, Error>; + + /// PATCH /stage-instances/{channel_id} + /// + /// + async fn update_stage_instance<'channel_id, 'update_stage_instance_request>(&self, channel_id: &'channel_id str, update_stage_instance_request: models::UpdateStageInstanceRequest) -> Result, Error>; + + /// PATCH /guilds/{guild_id}/voice-states/{user_id} + /// + /// + async fn update_voice_state<'guild_id, 'user_id, 'update_voice_state_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, update_voice_state_request: models::UpdateVoiceStateRequest) -> Result, Error>; + + /// PATCH /webhooks/{webhook_id} + /// + /// + async fn update_webhook<'webhook_id, 'update_webhook_request>(&self, webhook_id: &'webhook_id str, update_webhook_request: models::UpdateWebhookRequest) -> Result, Error>; + + /// PATCH /webhooks/{webhook_id}/{webhook_token} + /// + /// + async fn update_webhook_by_token<'webhook_id, 'webhook_token, 'update_webhook_by_token_request>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, update_webhook_by_token_request: models::UpdateWebhookByTokenRequest) -> Result, Error>; + + /// PATCH /webhooks/{webhook_id}/{webhook_token}/messages/{message_id} + /// + /// + async fn update_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'incoming_webhook_update_request_partial, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, incoming_webhook_update_request_partial: models::IncomingWebhookUpdateRequestPartial, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error>; + + /// POST /applications/{application_id}/attachment + /// + /// + async fn upload_application_attachment<'application_id, 'file>(&self, application_id: &'application_id str, file: &'file str) -> Result, Error>; +} + +pub struct DefaultApiClient { + configuration: Arc +} + +impl DefaultApiClient { + pub fn new(configuration: Arc) -> Self { + Self { configuration } + } +} + + + +#[async_trait] +impl DefaultApi for DefaultApiClient { + async fn add_group_dm_user<'channel_id, 'user_id, 'add_group_dm_user_request>(&self, channel_id: &'channel_id str, user_id: &'user_id str, add_group_dm_user_request: models::AddGroupDmUserRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/recipients/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&add_group_dm_user_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn add_guild_member<'guild_id, 'user_id, 'add_guild_member_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, add_guild_member_request: models::AddGuildMemberRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&add_guild_member_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn add_guild_member_role<'guild_id, 'user_id, 'role_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str, role_id: &'role_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}/roles/{role_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id), role_id=crate::apis::urlencode(role_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn add_lobby_member<'lobby_id, 'user_id, 'add_lobby_member_request>(&self, lobby_id: &'lobby_id str, user_id: &'user_id str, add_lobby_member_request: models::AddLobbyMemberRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/members/{user_id}", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&add_lobby_member_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn add_my_message_reaction<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), emoji_name=crate::apis::urlencode(emoji_name)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn add_thread_member<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn applications_get_activity_instance<'application_id, 'instance_id>(&self, application_id: &'application_id str, instance_id: &'instance_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/activity-instances/{instance_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), instance_id=crate::apis::urlencode(instance_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn ban_user_from_guild<'guild_id, 'user_id, 'ban_user_from_guild_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, ban_user_from_guild_request: models::BanUserFromGuildRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/bans/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&ban_user_from_guild_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_ban_users_from_guild<'guild_id, 'bulk_ban_users_from_guild_request>(&self, guild_id: &'guild_id str, bulk_ban_users_from_guild_request: models::BulkBanUsersFromGuildRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/bulk-ban", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bulk_ban_users_from_guild_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_delete_messages<'channel_id, 'bulk_delete_messages_request>(&self, channel_id: &'channel_id str, bulk_delete_messages_request: models::BulkDeleteMessagesRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/bulk-delete", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bulk_delete_messages_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_set_application_commands<'application_id, 'application_command_update_request>(&self, application_id: &'application_id str, application_command_update_request: Option>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_update_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_set_guild_application_commands<'application_id, 'guild_id, 'application_command_update_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, application_command_update_request: Option>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_update_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_update_guild_channels<'guild_id, 'bulk_update_guild_channels_request_inner>(&self, guild_id: &'guild_id str, bulk_update_guild_channels_request_inner: Vec) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/channels", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bulk_update_guild_channels_request_inner); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_update_guild_roles<'guild_id, 'bulk_update_guild_roles_request_inner>(&self, guild_id: &'guild_id str, bulk_update_guild_roles_request_inner: Vec) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bulk_update_guild_roles_request_inner); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn bulk_update_lobby_members<'lobby_id, 'bulk_lobby_member_request>(&self, lobby_id: &'lobby_id str, bulk_lobby_member_request: Option>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/members/bulk", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bulk_lobby_member_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn consume_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/entitlements/{entitlement_id}/consume", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), entitlement_id=crate::apis::urlencode(entitlement_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_application_command<'application_id, 'application_command_create_request>(&self, application_id: &'application_id str, application_command_create_request: models::ApplicationCommandCreateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_application_emoji<'application_id, 'create_application_emoji_request>(&self, application_id: &'application_id str, create_application_emoji_request: models::CreateApplicationEmojiRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/emojis", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_application_emoji_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_auto_moderation_rule<'guild_id, 'create_auto_moderation_rule_request>(&self, guild_id: &'guild_id str, create_auto_moderation_rule_request: models::CreateAutoModerationRuleRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/auto-moderation/rules", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_auto_moderation_rule_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_channel_invite<'channel_id, 'create_channel_invite_request>(&self, channel_id: &'channel_id str, create_channel_invite_request: models::CreateChannelInviteRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/invites", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_channel_invite_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_dm<'create_private_channel_request>(&self, create_private_channel_request: models::CreatePrivateChannelRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/channels", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_private_channel_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_entitlement<'application_id, 'create_entitlement_request_data>(&self, application_id: &'application_id str, create_entitlement_request_data: models::CreateEntitlementRequestData) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/entitlements", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_entitlement_request_data); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild<'guild_create_request>(&self, guild_create_request: models::GuildCreateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&guild_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_application_command<'application_id, 'guild_id, 'application_command_create_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, application_command_create_request: models::ApplicationCommandCreateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_channel<'guild_id, 'create_guild_channel_request>(&self, guild_id: &'guild_id str, create_guild_channel_request: models::CreateGuildChannelRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/channels", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_channel_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_emoji<'guild_id, 'create_guild_emoji_request>(&self, guild_id: &'guild_id str, create_guild_emoji_request: models::CreateGuildEmojiRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/emojis", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_emoji_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_from_template<'code, 'create_guild_from_template_request>(&self, code: &'code str, create_guild_from_template_request: models::CreateGuildFromTemplateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/templates/{code}", local_var_configuration.base_path, code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_from_template_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_role<'guild_id, 'create_guild_role_request>(&self, guild_id: &'guild_id str, create_guild_role_request: models::CreateGuildRoleRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_role_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_scheduled_event<'guild_id, 'create_guild_scheduled_event_request>(&self, guild_id: &'guild_id str, create_guild_scheduled_event_request: models::CreateGuildScheduledEventRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_scheduled_event_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_soundboard_sound<'guild_id, 'soundboard_create_request>(&self, guild_id: &'guild_id str, soundboard_create_request: models::SoundboardCreateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/soundboard-sounds", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&soundboard_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_sticker<'guild_id, 'name, 'tags, 'file, 'description>(&self, guild_id: &'guild_id str, name: &'name str, tags: &'tags str, file: &'file str, description: Option<&'description str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/stickers", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + let mut local_var_form = reqwest::multipart::Form::new(); + local_var_form = local_var_form.text("name", name.to_string()); + local_var_form = local_var_form.text("tags", tags.to_string()); + if let Some(local_var_param_value) = description { + local_var_form = local_var_form.text("description", local_var_param_value.to_string()); + } + local_var_form = local_var_form.text("file", file.to_string()); + local_var_req_builder = local_var_req_builder.multipart(local_var_form); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_guild_template<'guild_id, 'create_guild_template_request>(&self, guild_id: &'guild_id str, create_guild_template_request: models::CreateGuildTemplateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/templates", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_template_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_interaction_response<'interaction_id, 'interaction_token, 'create_interaction_response_request, 'with_response>(&self, interaction_id: &'interaction_id str, interaction_token: &'interaction_token str, create_interaction_response_request: models::CreateInteractionResponseRequest, with_response: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/interactions/{interaction_id}/{interaction_token}/callback", local_var_configuration.base_path, interaction_id=crate::apis::urlencode(interaction_id), interaction_token=crate::apis::urlencode(interaction_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_response { + local_var_req_builder = local_var_req_builder.query(&[("with_response", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_interaction_response_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_lobby<'create_lobby_request>(&self, create_lobby_request: models::CreateLobbyRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_lobby_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_lobby_message<'lobby_id, 'sdk_message_request>(&self, lobby_id: &'lobby_id str, sdk_message_request: models::SdkMessageRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/messages", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&sdk_message_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_message<'channel_id, 'message_create_request>(&self, channel_id: &'channel_id str, message_create_request: models::MessageCreateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&message_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_or_join_lobby<'create_or_join_lobby_request>(&self, create_or_join_lobby_request: models::CreateOrJoinLobbyRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_or_join_lobby_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/pins/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_stage_instance<'create_stage_instance_request>(&self, create_stage_instance_request: models::CreateStageInstanceRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/stage-instances", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_stage_instance_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_thread<'channel_id, 'create_thread_request>(&self, channel_id: &'channel_id str, create_thread_request: models::CreateThreadRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/threads", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_thread_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_thread_from_message<'channel_id, 'message_id, 'create_text_thread_with_message_request>(&self, channel_id: &'channel_id str, message_id: &'message_id str, create_text_thread_with_message_request: models::CreateTextThreadWithMessageRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/threads", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_text_thread_with_message_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn create_webhook<'channel_id, 'create_webhook_request>(&self, channel_id: &'channel_id str, create_webhook_request: models::CreateWebhookRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/webhooks", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_webhook_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn crosspost_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/crosspost", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_all_message_reactions<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_all_message_reactions_by_emoji<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), emoji_name=crate::apis::urlencode(emoji_name)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_application_command<'application_id, 'command_id>(&self, application_id: &'application_id str, command_id: &'command_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_application_emoji<'application_id, 'emoji_id>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/emojis/{emoji_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_application_user_role_connection<'application_id>(&self, application_id: &'application_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/applications/{application_id}/role-connection", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_auto_moderation_rule<'guild_id, 'rule_id>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/auto-moderation/rules/{rule_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), rule_id=crate::apis::urlencode(rule_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_channel<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_channel_permission_overwrite<'channel_id, 'overwrite_id>(&self, channel_id: &'channel_id str, overwrite_id: &'overwrite_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/permissions/{overwrite_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), overwrite_id=crate::apis::urlencode(overwrite_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/entitlements/{entitlement_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), entitlement_id=crate::apis::urlencode(entitlement_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_group_dm_user<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/recipients/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_application_command<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_emoji<'guild_id, 'emoji_id>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/emojis/{emoji_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_integration<'guild_id, 'integration_id>(&self, guild_id: &'guild_id str, integration_id: &'integration_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/integrations/{integration_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), integration_id=crate::apis::urlencode(integration_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_member<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_member_role<'guild_id, 'user_id, 'role_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str, role_id: &'role_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}/roles/{role_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id), role_id=crate::apis::urlencode(role_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_role<'guild_id, 'role_id>(&self, guild_id: &'guild_id str, role_id: &'role_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles/{role_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), role_id=crate::apis::urlencode(role_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), guild_scheduled_event_id=crate::apis::urlencode(guild_scheduled_event_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_soundboard_sound<'guild_id, 'sound_id>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/soundboard-sounds/{sound_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sound_id=crate::apis::urlencode(sound_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_sticker<'guild_id, 'sticker_id>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/stickers/{sticker_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sticker_id=crate::apis::urlencode(sticker_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_guild_template<'guild_id, 'code>(&self, guild_id: &'guild_id str, code: &'code str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/templates/{code}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_lobby_member<'lobby_id, 'user_id>(&self, lobby_id: &'lobby_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/members/{user_id}", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_my_message_reaction<'channel_id, 'message_id, 'emoji_name>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), emoji_name=crate::apis::urlencode(emoji_name)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_original_webhook_message<'webhook_id, 'webhook_token, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/@original", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/pins/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_stage_instance<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/stage-instances/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_thread_member<'channel_id, 'user_id>(&self, channel_id: &'channel_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_user_message_reaction<'channel_id, 'message_id, 'emoji_name, 'user_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), emoji_name=crate::apis::urlencode(emoji_name), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_webhook<'webhook_id>(&self, webhook_id: &'webhook_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_webhook_by_token<'webhook_id, 'webhook_token>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn delete_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/{message_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn deprecated_create_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/pins/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn deprecated_delete_pin<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/pins/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn deprecated_list_pins<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/pins", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn edit_lobby<'lobby_id, 'create_lobby_request>(&self, lobby_id: &'lobby_id str, create_lobby_request: models::CreateLobbyRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_lobby_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn edit_lobby_channel_link<'lobby_id, 'edit_lobby_channel_link_request>(&self, lobby_id: &'lobby_id str, edit_lobby_channel_link_request: models::EditLobbyChannelLinkRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/channel-linking", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&edit_lobby_channel_link_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn execute_github_compatible_webhook<'webhook_id, 'webhook_token, 'github_webhook, 'wait, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, github_webhook: models::GithubWebhook, wait: Option, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/github", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref param_value) = wait { + local_var_req_builder = local_var_req_builder.query(&[("wait", ¶m_value.to_string())]); + } + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&github_webhook); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn execute_slack_compatible_webhook<'webhook_id, 'webhook_token, 'slack_webhook, 'wait, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, slack_webhook: models::SlackWebhook, wait: Option, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/slack", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref param_value) = wait { + local_var_req_builder = local_var_req_builder.query(&[("wait", ¶m_value.to_string())]); + } + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&slack_webhook); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn execute_webhook<'webhook_id, 'webhook_token, 'execute_webhook_request, 'wait, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, execute_webhook_request: models::ExecuteWebhookRequest, wait: Option, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref param_value) = wait { + local_var_req_builder = local_var_req_builder.query(&[("wait", ¶m_value.to_string())]); + } + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = with_components { + local_var_req_builder = local_var_req_builder.query(&[("with_components", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&execute_webhook_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn follow_channel<'channel_id, 'follow_channel_request>(&self, channel_id: &'channel_id str, follow_channel_request: models::FollowChannelRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/followers", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&follow_channel_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_active_guild_threads<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/threads/active", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_answer_voters<'channel_id, 'message_id, 'answer_id, 'after, 'limit>(&self, channel_id: &'channel_id str, message_id: &'message_id str, answer_id: i32, after: Option<&'after str>, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/polls/{message_id}/answers/{answer_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), answer_id=answer_id); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_application<'application_id>(&self, application_id: &'application_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_application_command<'application_id, 'command_id>(&self, application_id: &'application_id str, command_id: &'command_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_application_emoji<'application_id, 'emoji_id>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/emojis/{emoji_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_application_role_connections_metadata<'application_id>(&self, application_id: &'application_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/role-connections/metadata", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_application_user_role_connection<'application_id>(&self, application_id: &'application_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/applications/{application_id}/role-connection", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_auto_moderation_rule<'guild_id, 'rule_id>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/auto-moderation/rules/{rule_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), rule_id=crate::apis::urlencode(rule_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_bot_gateway<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/gateway/bot", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_channel<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_entitlement<'application_id, 'entitlement_id>(&self, application_id: &'application_id str, entitlement_id: &'entitlement_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/entitlements/{entitlement_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), entitlement_id=crate::apis::urlencode(entitlement_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_entitlements<'sku_ids, 'application_id, 'user_id, 'guild_id, 'before, 'after, 'limit, 'exclude_ended, 'exclude_deleted, 'only_active>(&self, sku_ids: &'sku_ids str, application_id: &'application_id str, user_id: Option<&'user_id str>, guild_id: Option<&'guild_id str>, before: Option<&'before str>, after: Option<&'after str>, limit: Option, exclude_ended: Option, exclude_deleted: Option, only_active: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/entitlements", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = user_id { + local_var_req_builder = local_var_req_builder.query(&[("user_id", ¶m_value.to_string())]); + } + local_var_req_builder = local_var_req_builder.query(&[("sku_ids", &sku_ids.to_string())]); + if let Some(ref param_value) = guild_id { + local_var_req_builder = local_var_req_builder.query(&[("guild_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = exclude_ended { + local_var_req_builder = local_var_req_builder.query(&[("exclude_ended", ¶m_value.to_string())]); + } + if let Some(ref param_value) = exclude_deleted { + local_var_req_builder = local_var_req_builder.query(&[("exclude_deleted", ¶m_value.to_string())]); + } + if let Some(ref param_value) = only_active { + local_var_req_builder = local_var_req_builder.query(&[("only_active", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_gateway<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/gateway", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild<'guild_id, 'with_counts>(&self, guild_id: &'guild_id str, with_counts: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_counts { + local_var_req_builder = local_var_req_builder.query(&[("with_counts", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_application_command<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_application_command_permissions<'application_id, 'guild_id, 'command_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_ban<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/bans/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_emoji<'guild_id, 'emoji_id>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/emojis/{emoji_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_member<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_new_member_welcome<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/new-member-welcome", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_preview<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/preview", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_role<'guild_id, 'role_id>(&self, guild_id: &'guild_id str, role_id: &'role_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles/{role_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), role_id=crate::apis::urlencode(role_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id, 'with_user_count>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, with_user_count: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), guild_scheduled_event_id=crate::apis::urlencode(guild_scheduled_event_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_user_count { + local_var_req_builder = local_var_req_builder.query(&[("with_user_count", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_soundboard_sound<'guild_id, 'sound_id>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/soundboard-sounds/{sound_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sound_id=crate::apis::urlencode(sound_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_sticker<'guild_id, 'sticker_id>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/stickers/{sticker_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sticker_id=crate::apis::urlencode(sticker_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_template<'code>(&self, code: &'code str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/templates/{code}", local_var_configuration.base_path, code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_vanity_url<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/vanity-url", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_webhooks<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/webhooks", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_welcome_screen<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/welcome-screen", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_widget<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/widget.json", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_widget_png<'guild_id, 'style>(&self, guild_id: &'guild_id str, style: Option<&'style str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/widget.png", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = style { + local_var_req_builder = local_var_req_builder.query(&[("style", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guild_widget_settings<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/widget", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_guilds_onboarding<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/onboarding", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_lobby<'lobby_id>(&self, lobby_id: &'lobby_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_lobby_messages<'lobby_id, 'limit>(&self, lobby_id: &'lobby_id str, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/messages", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_message<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_my_application<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_my_guild_member<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/guilds/{guild_id}/member", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_my_oauth2_application<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/oauth2/applications/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_my_oauth2_authorization<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/oauth2/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_my_user<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_openid_connect_userinfo<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/oauth2/userinfo", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_original_webhook_message<'webhook_id, 'webhook_token, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/@original", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_public_keys<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/oauth2/keys", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_self_voice_state<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/voice-states/@me", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_soundboard_default_sounds<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/soundboard-default-sounds", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_stage_instance<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/stage-instances/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_sticker<'sticker_id>(&self, sticker_id: &'sticker_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/stickers/{sticker_id}", local_var_configuration.base_path, sticker_id=crate::apis::urlencode(sticker_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_sticker_pack<'pack_id>(&self, pack_id: &'pack_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/sticker-packs/{pack_id}", local_var_configuration.base_path, pack_id=crate::apis::urlencode(pack_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_thread_member<'channel_id, 'user_id, 'with_member>(&self, channel_id: &'channel_id str, user_id: &'user_id str, with_member: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members/{user_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_member { + local_var_req_builder = local_var_req_builder.query(&[("with_member", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_user<'user_id>(&self, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/{user_id}", local_var_configuration.base_path, user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_voice_state<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/voice-states/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_webhook<'webhook_id>(&self, webhook_id: &'webhook_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_webhook_by_token<'webhook_id, 'webhook_token>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn get_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'thread_id>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, thread_id: Option<&'thread_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/{message_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn invite_resolve<'code, 'with_counts, 'guild_scheduled_event_id>(&self, code: &'code str, with_counts: Option, guild_scheduled_event_id: Option<&'guild_scheduled_event_id str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/invites/{code}", local_var_configuration.base_path, code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_counts { + local_var_req_builder = local_var_req_builder.query(&[("with_counts", ¶m_value.to_string())]); + } + if let Some(ref param_value) = guild_scheduled_event_id { + local_var_req_builder = local_var_req_builder.query(&[("guild_scheduled_event_id", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn invite_revoke<'code>(&self, code: &'code str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/invites/{code}", local_var_configuration.base_path, code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn join_thread<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members/@me", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn leave_guild<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/guilds/{guild_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn leave_lobby<'lobby_id>(&self, lobby_id: &'lobby_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/lobbies/{lobby_id}/members/@me", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn leave_thread<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members/@me", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_application_commands<'application_id, 'with_localizations>(&self, application_id: &'application_id str, with_localizations: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_localizations { + local_var_req_builder = local_var_req_builder.query(&[("with_localizations", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_application_emojis<'application_id>(&self, application_id: &'application_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/emojis", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_auto_moderation_rules<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/auto-moderation/rules", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_channel_invites<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/invites", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_channel_webhooks<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/webhooks", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_application_command_permissions<'application_id, 'guild_id>(&self, application_id: &'application_id str, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/permissions", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_application_commands<'application_id, 'guild_id, 'with_localizations>(&self, application_id: &'application_id str, guild_id: &'guild_id str, with_localizations: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_localizations { + local_var_req_builder = local_var_req_builder.query(&[("with_localizations", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_audit_log_entries<'guild_id, 'user_id, 'target_id, 'action_type, 'before, 'after, 'limit>(&self, guild_id: &'guild_id str, user_id: Option<&'user_id str>, target_id: Option<&'target_id str>, action_type: Option, before: Option<&'before str>, after: Option<&'after str>, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/audit-logs", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = user_id { + local_var_req_builder = local_var_req_builder.query(&[("user_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = target_id { + local_var_req_builder = local_var_req_builder.query(&[("target_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = action_type { + local_var_req_builder = local_var_req_builder.query(&[("action_type", ¶m_value.to_string())]); + } + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_bans<'guild_id, 'limit, 'before, 'after>(&self, guild_id: &'guild_id str, limit: Option, before: Option<&'before str>, after: Option<&'after str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/bans", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_channels<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/channels", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_emojis<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/emojis", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_integrations<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/integrations", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_invites<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/invites", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_members<'guild_id, 'limit, 'after>(&self, guild_id: &'guild_id str, limit: Option, after: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_roles<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_scheduled_event_users<'guild_id, 'guild_scheduled_event_id, 'with_member, 'limit, 'before, 'after>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, with_member: Option, limit: Option, before: Option<&'before str>, after: Option<&'after str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), guild_scheduled_event_id=crate::apis::urlencode(guild_scheduled_event_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_member { + local_var_req_builder = local_var_req_builder.query(&[("with_member", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_scheduled_events<'guild_id, 'with_user_count>(&self, guild_id: &'guild_id str, with_user_count: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_user_count { + local_var_req_builder = local_var_req_builder.query(&[("with_user_count", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_soundboard_sounds<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/soundboard-sounds", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_stickers<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/stickers", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_templates<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/templates", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_guild_voice_regions<'guild_id>(&self, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/regions", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_message_reactions_by_emoji<'channel_id, 'message_id, 'emoji_name, 'after, 'limit, 'r_type>(&self, channel_id: &'channel_id str, message_id: &'message_id str, emoji_name: &'emoji_name str, after: Option<&'after str>, limit: Option, r#type: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id), emoji_name=crate::apis::urlencode(emoji_name)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = r#type { + local_var_req_builder = local_var_req_builder.query(&[("type", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_messages<'channel_id, 'around, 'before, 'after, 'limit>(&self, channel_id: &'channel_id str, around: Option<&'around str>, before: Option<&'before str>, after: Option<&'after str>, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = around { + local_var_req_builder = local_var_req_builder.query(&[("around", ¶m_value.to_string())]); + } + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_my_connections<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/connections", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_my_guilds<'before, 'after, 'limit, 'with_counts>(&self, before: Option<&'before str>, after: Option<&'after str>, limit: Option, with_counts: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/guilds", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = with_counts { + local_var_req_builder = local_var_req_builder.query(&[("with_counts", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_my_private_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option<&'before str>, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/users/@me/threads/archived/private", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_pins<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/pins", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_private_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/threads/archived/private", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_public_archived_threads<'channel_id, 'before, 'limit>(&self, channel_id: &'channel_id str, before: Option, limit: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/threads/archived/public", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = before { + local_var_req_builder = local_var_req_builder.query(&[("before", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_sticker_packs<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/sticker-packs", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_thread_members<'channel_id, 'with_member, 'limit, 'after>(&self, channel_id: &'channel_id str, with_member: Option, limit: Option, after: Option<&'after str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/thread-members", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = with_member { + local_var_req_builder = local_var_req_builder.query(&[("with_member", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = after { + local_var_req_builder = local_var_req_builder.query(&[("after", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn list_voice_regions<>(&self, ) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/voice/regions", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn partner_sdk_token<'partner_sdk_unmerge_provisional_account_request>(&self, partner_sdk_unmerge_provisional_account_request: models::PartnerSdkUnmergeProvisionalAccountRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/partner-sdk/token", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&partner_sdk_unmerge_provisional_account_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn partner_sdk_unmerge_provisional_account<'partner_sdk_unmerge_provisional_account_request>(&self, partner_sdk_unmerge_provisional_account_request: models::PartnerSdkUnmergeProvisionalAccountRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/partner-sdk/provisional-accounts/unmerge", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&partner_sdk_unmerge_provisional_account_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn poll_expire<'channel_id, 'message_id>(&self, channel_id: &'channel_id str, message_id: &'message_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/polls/{message_id}/expire", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn preview_prune_guild<'guild_id, 'days, 'include_roles>(&self, guild_id: &'guild_id str, days: Option, include_roles: Option<&'include_roles str>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/prune", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = days { + local_var_req_builder = local_var_req_builder.query(&[("days", ¶m_value.to_string())]); + } + if let Some(ref param_value) = include_roles { + local_var_req_builder = local_var_req_builder.query(&[("include_roles", &serde_json::to_value(param_value)?)]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn prune_guild<'guild_id, 'prune_guild_request>(&self, guild_id: &'guild_id str, prune_guild_request: models::PruneGuildRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/prune", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&prune_guild_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn put_guilds_onboarding<'guild_id, 'update_guild_onboarding_request>(&self, guild_id: &'guild_id str, update_guild_onboarding_request: models::UpdateGuildOnboardingRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/onboarding", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_onboarding_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn search_guild_members<'limit, 'query, 'guild_id>(&self, limit: i32, query: &'query str, guild_id: &'guild_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/search", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("limit", &limit.to_string())]); + local_var_req_builder = local_var_req_builder.query(&[("query", &query.to_string())]); + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn send_soundboard_sound<'channel_id, 'soundboard_sound_send_request>(&self, channel_id: &'channel_id str, soundboard_sound_send_request: models::SoundboardSoundSendRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/send-soundboard-sound", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&soundboard_sound_send_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn set_channel_permission_overwrite<'channel_id, 'overwrite_id, 'set_channel_permission_overwrite_request>(&self, channel_id: &'channel_id str, overwrite_id: &'overwrite_id str, set_channel_permission_overwrite_request: models::SetChannelPermissionOverwriteRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/permissions/{overwrite_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), overwrite_id=crate::apis::urlencode(overwrite_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&set_channel_permission_overwrite_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn set_guild_application_command_permissions<'application_id, 'guild_id, 'command_id, 'set_guild_application_command_permissions_request>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str, set_guild_application_command_permissions_request: models::SetGuildApplicationCommandPermissionsRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&set_guild_application_command_permissions_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn set_guild_mfa_level<'guild_id, 'set_guild_mfa_level_request>(&self, guild_id: &'guild_id str, set_guild_mfa_level_request: models::SetGuildMfaLevelRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/mfa", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&set_guild_mfa_level_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn sync_guild_template<'guild_id, 'code>(&self, guild_id: &'guild_id str, code: &'code str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/templates/{code}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn thread_search<'channel_id, 'name, 'slop, 'min_id, 'max_id, 'tag, 'tag_setting, 'archived, 'sort_by, 'sort_order, 'limit, 'offset>(&self, channel_id: &'channel_id str, name: Option<&'name str>, slop: Option, min_id: Option<&'min_id str>, max_id: Option<&'max_id str>, tag: Option<&'tag str>, tag_setting: Option<&'tag_setting str>, archived: Option, sort_by: Option<&'sort_by str>, sort_order: Option<&'sort_order str>, limit: Option, offset: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/threads/search", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref param_value) = name { + local_var_req_builder = local_var_req_builder.query(&[("name", ¶m_value.to_string())]); + } + if let Some(ref param_value) = slop { + local_var_req_builder = local_var_req_builder.query(&[("slop", ¶m_value.to_string())]); + } + if let Some(ref param_value) = min_id { + local_var_req_builder = local_var_req_builder.query(&[("min_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = max_id { + local_var_req_builder = local_var_req_builder.query(&[("max_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = tag { + local_var_req_builder = local_var_req_builder.query(&[("tag", &serde_json::to_value(param_value)?)]); + } + if let Some(ref param_value) = tag_setting { + local_var_req_builder = local_var_req_builder.query(&[("tag_setting", ¶m_value.to_string())]); + } + if let Some(ref param_value) = archived { + local_var_req_builder = local_var_req_builder.query(&[("archived", ¶m_value.to_string())]); + } + if let Some(ref param_value) = sort_by { + local_var_req_builder = local_var_req_builder.query(&[("sort_by", ¶m_value.to_string())]); + } + if let Some(ref param_value) = sort_order { + local_var_req_builder = local_var_req_builder.query(&[("sort_order", ¶m_value.to_string())]); + } + if let Some(ref param_value) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = offset { + local_var_req_builder = local_var_req_builder.query(&[("offset", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn trigger_typing_indicator<'channel_id>(&self, channel_id: &'channel_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/typing", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn unban_user_from_guild<'guild_id, 'user_id>(&self, guild_id: &'guild_id str, user_id: &'user_id str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/bans/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_application<'application_id, 'application_form_partial>(&self, application_id: &'application_id str, application_form_partial: models::ApplicationFormPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_form_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_application_command<'application_id, 'command_id, 'application_command_patch_request_partial>(&self, application_id: &'application_id str, command_id: &'command_id str, application_command_patch_request_partial: models::ApplicationCommandPatchRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_patch_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_application_emoji<'application_id, 'emoji_id, 'update_application_emoji_request>(&self, application_id: &'application_id str, emoji_id: &'emoji_id str, update_application_emoji_request: models::UpdateApplicationEmojiRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/emojis/{emoji_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_application_emoji_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_application_role_connections_metadata<'application_id, 'application_role_connections_metadata_item_request>(&self, application_id: &'application_id str, application_role_connections_metadata_item_request: Option>) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/role-connections/metadata", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_role_connections_metadata_item_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_application_user_role_connection<'application_id, 'update_application_user_role_connection_request>(&self, application_id: &'application_id str, update_application_user_role_connection_request: models::UpdateApplicationUserRoleConnectionRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me/applications/{application_id}/role-connection", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&update_application_user_role_connection_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_auto_moderation_rule<'guild_id, 'rule_id, 'update_auto_moderation_rule_request>(&self, guild_id: &'guild_id str, rule_id: &'rule_id str, update_auto_moderation_rule_request: models::UpdateAutoModerationRuleRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/auto-moderation/rules/{rule_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), rule_id=crate::apis::urlencode(rule_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_auto_moderation_rule_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_channel<'channel_id, 'update_channel_request>(&self, channel_id: &'channel_id str, update_channel_request: models::UpdateChannelRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_channel_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild<'guild_id, 'guild_patch_request_partial>(&self, guild_id: &'guild_id str, guild_patch_request_partial: models::GuildPatchRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&guild_patch_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_application_command<'application_id, 'guild_id, 'command_id, 'application_command_patch_request_partial>(&self, application_id: &'application_id str, guild_id: &'guild_id str, command_id: &'command_id str, application_command_patch_request_partial: models::ApplicationCommandPatchRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/guilds/{guild_id}/commands/{command_id}", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id), guild_id=crate::apis::urlencode(guild_id), command_id=crate::apis::urlencode(command_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_command_patch_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_emoji<'guild_id, 'emoji_id, 'update_guild_emoji_request>(&self, guild_id: &'guild_id str, emoji_id: &'emoji_id str, update_guild_emoji_request: models::UpdateGuildEmojiRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/emojis/{emoji_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), emoji_id=crate::apis::urlencode(emoji_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_emoji_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_member<'guild_id, 'user_id, 'update_guild_member_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, update_guild_member_request: models::UpdateGuildMemberRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_member_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_role<'guild_id, 'role_id, 'create_guild_role_request>(&self, guild_id: &'guild_id str, role_id: &'role_id str, create_guild_role_request: models::CreateGuildRoleRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/roles/{role_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), role_id=crate::apis::urlencode(role_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&create_guild_role_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_scheduled_event<'guild_id, 'guild_scheduled_event_id, 'update_guild_scheduled_event_request>(&self, guild_id: &'guild_id str, guild_scheduled_event_id: &'guild_scheduled_event_id str, update_guild_scheduled_event_request: models::UpdateGuildScheduledEventRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), guild_scheduled_event_id=crate::apis::urlencode(guild_scheduled_event_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_scheduled_event_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_soundboard_sound<'guild_id, 'sound_id, 'soundboard_patch_request_partial>(&self, guild_id: &'guild_id str, sound_id: &'sound_id str, soundboard_patch_request_partial: models::SoundboardPatchRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/soundboard-sounds/{sound_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sound_id=crate::apis::urlencode(sound_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&soundboard_patch_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_sticker<'guild_id, 'sticker_id, 'update_guild_sticker_request>(&self, guild_id: &'guild_id str, sticker_id: &'sticker_id str, update_guild_sticker_request: models::UpdateGuildStickerRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/stickers/{sticker_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), sticker_id=crate::apis::urlencode(sticker_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_sticker_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_template<'guild_id, 'code, 'update_guild_template_request>(&self, guild_id: &'guild_id str, code: &'code str, update_guild_template_request: models::UpdateGuildTemplateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/templates/{code}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), code=crate::apis::urlencode(code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_template_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_welcome_screen<'guild_id, 'welcome_screen_patch_request_partial>(&self, guild_id: &'guild_id str, welcome_screen_patch_request_partial: models::WelcomeScreenPatchRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/welcome-screen", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&welcome_screen_patch_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_guild_widget_settings<'guild_id, 'update_guild_widget_settings_request>(&self, guild_id: &'guild_id str, update_guild_widget_settings_request: models::UpdateGuildWidgetSettingsRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/widget", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_guild_widget_settings_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_message<'channel_id, 'message_id, 'message_edit_request_partial>(&self, channel_id: &'channel_id str, message_id: &'message_id str, message_edit_request_partial: models::MessageEditRequestPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/channels/{channel_id}/messages/{message_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&message_edit_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_my_application<'application_form_partial>(&self, application_form_partial: models::ApplicationFormPartial) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&application_form_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_my_guild_member<'guild_id, 'update_my_guild_member_request>(&self, guild_id: &'guild_id str, update_my_guild_member_request: models::UpdateMyGuildMemberRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/members/@me", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_my_guild_member_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_my_user<'bot_account_patch_request>(&self, bot_account_patch_request: models::BotAccountPatchRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/users/@me", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&bot_account_patch_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_original_webhook_message<'webhook_id, 'webhook_token, 'incoming_webhook_update_request_partial, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, incoming_webhook_update_request_partial: models::IncomingWebhookUpdateRequestPartial, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/@original", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = with_components { + local_var_req_builder = local_var_req_builder.query(&[("with_components", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&incoming_webhook_update_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_self_voice_state<'guild_id, 'update_self_voice_state_request>(&self, guild_id: &'guild_id str, update_self_voice_state_request: models::UpdateSelfVoiceStateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/voice-states/@me", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_self_voice_state_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_stage_instance<'channel_id, 'update_stage_instance_request>(&self, channel_id: &'channel_id str, update_stage_instance_request: models::UpdateStageInstanceRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/stage-instances/{channel_id}", local_var_configuration.base_path, channel_id=crate::apis::urlencode(channel_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_stage_instance_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_voice_state<'guild_id, 'user_id, 'update_voice_state_request>(&self, guild_id: &'guild_id str, user_id: &'user_id str, update_voice_state_request: models::UpdateVoiceStateRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/guilds/{guild_id}/voice-states/{user_id}", local_var_configuration.base_path, guild_id=crate::apis::urlencode(guild_id), user_id=crate::apis::urlencode(user_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_voice_state_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_webhook<'webhook_id, 'update_webhook_request>(&self, webhook_id: &'webhook_id str, update_webhook_request: models::UpdateWebhookRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_webhook_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_webhook_by_token<'webhook_id, 'webhook_token, 'update_webhook_by_token_request>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, update_webhook_by_token_request: models::UpdateWebhookByTokenRequest) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&update_webhook_by_token_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn update_webhook_message<'webhook_id, 'webhook_token, 'message_id, 'incoming_webhook_update_request_partial, 'thread_id, 'with_components>(&self, webhook_id: &'webhook_id str, webhook_token: &'webhook_token str, message_id: &'message_id str, incoming_webhook_update_request_partial: models::IncomingWebhookUpdateRequestPartial, thread_id: Option<&'thread_id str>, with_components: Option) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/webhooks/{webhook_id}/{webhook_token}/messages/{message_id}", local_var_configuration.base_path, webhook_id=crate::apis::urlencode(webhook_id), webhook_token=crate::apis::urlencode(webhook_token), message_id=crate::apis::urlencode(message_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref param_value) = thread_id { + local_var_req_builder = local_var_req_builder.query(&[("thread_id", ¶m_value.to_string())]); + } + if let Some(ref param_value) = with_components { + local_var_req_builder = local_var_req_builder.query(&[("with_components", ¶m_value.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + local_var_req_builder = local_var_req_builder.json(&incoming_webhook_update_request_partial); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + + async fn upload_application_attachment<'application_id, 'file>(&self, application_id: &'application_id str, file: &'file str) -> Result, Error> { + let local_var_configuration = &self.configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/applications/{application_id}/attachment", local_var_configuration.base_path, application_id=crate::apis::urlencode(application_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_token) = local_var_configuration.oauth_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + let mut local_var_form = reqwest::multipart::Form::new(); + local_var_form = local_var_form.text("file", file.to_string()); + local_var_req_builder = local_var_req_builder.multipart(local_var_form); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_result = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Ok(local_var_result) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } + } + +} + +/// struct for typed successes of method [`add_group_dm_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGroupDmUserSuccess { + Status201(models::AddGroupDmUser201Response), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`add_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGuildMemberSuccess { + Status201(models::GuildMemberResponse), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`add_guild_member_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGuildMemberRoleSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`add_lobby_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddLobbyMemberSuccess { + Status200(models::LobbyMemberResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`add_my_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddMyMessageReactionSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`add_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddThreadMemberSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`applications_get_activity_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationsGetActivityInstanceSuccess { + Status200(models::EmbeddedActivityInstance), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`ban_user_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BanUserFromGuildSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_ban_users_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkBanUsersFromGuildSuccess { + Status200(models::BulkBanUsersResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_delete_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkDeleteMessagesSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_set_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkSetApplicationCommandsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_set_guild_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkSetGuildApplicationCommandsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_update_guild_channels`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateGuildChannelsSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_update_guild_roles`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateGuildRolesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`bulk_update_lobby_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateLobbyMembersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`consume_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ConsumeEntitlementSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + Status201(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationEmojiSuccess { + Status201(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAutoModerationRuleSuccess { + Status200(models::CreateAutoModerationRule200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_channel_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateChannelInviteSuccess { + Status200(models::ListChannelInvites200ResponseInner), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_dm`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateDmSuccess { + Status200(models::AddGroupDmUser201Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateEntitlementSuccess { + Status200(models::EntitlementResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildSuccess { + Status201(models::GuildResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + Status201(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildChannelSuccess { + Status201(models::GuildChannelResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildEmojiSuccess { + Status201(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_from_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildFromTemplateSuccess { + Status201(models::GuildResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildRoleSuccess { + Status200(models::GuildRoleResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildScheduledEventSuccess { + Status200(models::ListGuildScheduledEvents200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildSoundboardSoundSuccess { + Status201(models::SoundboardSoundResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildStickerSuccess { + Status201(models::GuildStickerResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildTemplateSuccess { + Status200(models::GuildTemplateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_interaction_response`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateInteractionResponseSuccess { + Status200(models::InteractionCallbackResponse), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateLobbySuccess { + Status201(models::LobbyResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_lobby_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateLobbyMessageSuccess { + Status201(models::LobbyMessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_or_join_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateOrJoinLobbySuccess { + Status200(models::LobbyResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreatePinSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateStageInstanceSuccess { + Status200(models::StageInstanceResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateThreadSuccess { + Status201(models::CreatedThreadResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_thread_from_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateThreadFromMessageSuccess { + Status201(models::ThreadResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`create_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateWebhookSuccess { + Status200(models::GuildIncomingWebhookResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`crosspost_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CrosspostMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_all_message_reactions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAllMessageReactionsSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_all_message_reactions_by_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAllMessageReactionsByEmojiSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationCommandSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationEmojiSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationUserRoleConnectionSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAutoModerationRuleSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteChannelSuccess { + Status200(models::GetChannel200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_channel_permission_overwrite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteChannelPermissionOverwriteSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteEntitlementSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_group_dm_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGroupDmUserSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildApplicationCommandSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildEmojiSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_integration`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildIntegrationSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildMemberSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_member_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildMemberRoleSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildRoleSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildScheduledEventSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildSoundboardSoundSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildStickerSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildTemplateSuccess { + Status200(models::GuildTemplateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_lobby_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteLobbyMemberSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMessageSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_my_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMyMessageReactionSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteOriginalWebhookMessageSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeletePinSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteStageInstanceSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteThreadMemberSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_user_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUserMessageReactionSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookByTokenSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`delete_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookMessageSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`deprecated_create_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedCreatePinSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`deprecated_delete_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedDeletePinSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`deprecated_list_pins`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedListPinsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`edit_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum EditLobbySuccess { + Status200(models::LobbyResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`edit_lobby_channel_link`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum EditLobbyChannelLinkSuccess { + Status200(models::LobbyResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`execute_github_compatible_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteGithubCompatibleWebhookSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`execute_slack_compatible_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteSlackCompatibleWebhookSuccess { + Status200(String), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`execute_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteWebhookSuccess { + Status200(models::MessageResponse), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`follow_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FollowChannelSuccess { + Status200(models::ChannelFollowerResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_active_guild_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetActiveGuildThreadsSuccess { + Status200(models::ThreadsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_answer_voters`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetAnswerVotersSuccess { + Status200(models::PollAnswerDetailsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationSuccess { + Status200(models::PrivateApplicationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationEmojiSuccess { + Status200(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_application_role_connections_metadata`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationRoleConnectionsMetadataSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationUserRoleConnectionSuccess { + Status200(models::ApplicationUserRoleConnectionResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetAutoModerationRuleSuccess { + Status200(models::CreateAutoModerationRule200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_bot_gateway`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetBotGatewaySuccess { + Status200(models::GatewayBotResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetChannelSuccess { + Status200(models::GetChannel200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetEntitlementSuccess { + Status200(models::EntitlementResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_entitlements`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetEntitlementsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_gateway`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGatewaySuccess { + Status200(models::GatewayResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildSuccess { + Status200(models::GuildWithCountsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildApplicationCommandPermissionsSuccess { + Status200(models::CommandPermissionsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_ban`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildBanSuccess { + Status200(models::GuildBanResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildEmojiSuccess { + Status200(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildMemberSuccess { + Status200(models::GuildMemberResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_new_member_welcome`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildNewMemberWelcomeSuccess { + Status200(models::GuildHomeSettingsResponse), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_preview`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildPreviewSuccess { + Status200(models::GuildPreviewResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildRoleSuccess { + Status200(models::GuildRoleResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildScheduledEventSuccess { + Status200(models::ListGuildScheduledEvents200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildSoundboardSoundSuccess { + Status200(models::SoundboardSoundResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildStickerSuccess { + Status200(models::GuildStickerResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildTemplateSuccess { + Status200(models::GuildTemplateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_vanity_url`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildVanityUrlSuccess { + Status200(models::VanityUrlResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_webhooks`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWebhooksSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_welcome_screen`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWelcomeScreenSuccess { + Status200(models::GuildWelcomeScreenResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_widget`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetSuccess { + Status200(models::WidgetResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_widget_png`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetPngSuccess { + Status200(String), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guild_widget_settings`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetSettingsSuccess { + Status200(models::WidgetSettingsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_guilds_onboarding`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildsOnboardingSuccess { + Status200(models::UserGuildOnboardingResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLobbySuccess { + Status200(models::LobbyResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_lobby_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLobbyMessagesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_my_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyApplicationSuccess { + Status200(models::PrivateApplicationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_my_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyGuildMemberSuccess { + Status200(models::PrivateGuildMemberResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_my_oauth2_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyOauth2ApplicationSuccess { + Status200(models::PrivateApplicationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_my_oauth2_authorization`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyOauth2AuthorizationSuccess { + Status200(models::OAuth2GetAuthorizationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_my_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyUserSuccess { + Status200(models::UserPiiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_openid_connect_userinfo`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOpenidConnectUserinfoSuccess { + Status200(models::OAuth2GetOpenIdConnectUserInfoResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOriginalWebhookMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_public_keys`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetPublicKeysSuccess { + Status200(models::OAuth2GetKeys), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_self_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSelfVoiceStateSuccess { + Status200(models::VoiceStateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_soundboard_default_sounds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSoundboardDefaultSoundsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStageInstanceSuccess { + Status200(models::StageInstanceResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStickerSuccess { + Status200(models::GetSticker200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_sticker_pack`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStickerPackSuccess { + Status200(models::StickerPackResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetThreadMemberSuccess { + Status200(models::ThreadMemberResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUserSuccess { + Status200(models::UserResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetVoiceStateSuccess { + Status200(models::VoiceStateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookSuccess { + Status200(models::ListChannelWebhooks200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookByTokenSuccess { + Status200(models::ListChannelWebhooks200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`get_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`invite_resolve`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InviteResolveSuccess { + Status200(models::ListChannelInvites200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`invite_revoke`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InviteRevokeSuccess { + Status200(models::ListChannelInvites200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`join_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum JoinThreadSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`leave_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveGuildSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`leave_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveLobbySuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`leave_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveThreadSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationCommandsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_application_emojis`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationEmojisSuccess { + Status200(models::ListApplicationEmojisResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_auto_moderation_rules`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAutoModerationRulesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_channel_invites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListChannelInvitesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_channel_webhooks`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListChannelWebhooksSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildApplicationCommandPermissionsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildApplicationCommandsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_audit_log_entries`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildAuditLogEntriesSuccess { + Status200(models::GuildAuditLogResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_bans`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildBansSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_channels`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildChannelsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_emojis`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildEmojisSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_integrations`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildIntegrationsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_invites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildInvitesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildMembersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_roles`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildRolesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_scheduled_event_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildScheduledEventUsersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_scheduled_events`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildScheduledEventsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_soundboard_sounds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildSoundboardSoundsSuccess { + Status200(models::ListGuildSoundboardSoundsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_stickers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildStickersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_templates`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildTemplatesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_guild_voice_regions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildVoiceRegionsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_message_reactions_by_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessageReactionsByEmojiSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessagesSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_my_connections`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyConnectionsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_my_guilds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyGuildsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_my_private_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyPrivateArchivedThreadsSuccess { + Status200(models::ThreadsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_pins`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPinsSuccess { + Status200(models::PinnedMessagesResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_private_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPrivateArchivedThreadsSuccess { + Status200(models::ThreadsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_public_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPublicArchivedThreadsSuccess { + Status200(models::ThreadsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_sticker_packs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListStickerPacksSuccess { + Status200(models::StickerPackCollectionResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_thread_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListThreadMembersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`list_voice_regions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListVoiceRegionsSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`partner_sdk_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PartnerSdkTokenSuccess { + Status200(models::ProvisionalTokenResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`partner_sdk_unmerge_provisional_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PartnerSdkUnmergeProvisionalAccountSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`poll_expire`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PollExpireSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`preview_prune_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PreviewPruneGuildSuccess { + Status200(models::GuildPruneResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`prune_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PruneGuildSuccess { + Status200(models::GuildPruneResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`put_guilds_onboarding`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutGuildsOnboardingSuccess { + Status200(models::GuildOnboardingResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`search_guild_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SearchGuildMembersSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`send_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SendSoundboardSoundSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`set_channel_permission_overwrite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetChannelPermissionOverwriteSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`set_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetGuildApplicationCommandPermissionsSuccess { + Status200(models::CommandPermissionsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`set_guild_mfa_level`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetGuildMfaLevelSuccess { + Status200(models::GuildMfaLevelResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`sync_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SyncGuildTemplateSuccess { + Status200(models::GuildTemplateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`thread_search`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ThreadSearchSuccess { + Status200(models::ThreadSearchResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`trigger_typing_indicator`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TriggerTypingIndicatorSuccess { + Status200(serde_json::Value), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`unban_user_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UnbanUserFromGuildSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationSuccess { + Status200(models::PrivateApplicationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationEmojiSuccess { + Status200(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_application_role_connections_metadata`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationRoleConnectionsMetadataSuccess { + Status200(Vec), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationUserRoleConnectionSuccess { + Status200(models::ApplicationUserRoleConnectionResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAutoModerationRuleSuccess { + Status200(models::CreateAutoModerationRule200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateChannelSuccess { + Status200(models::GetChannel200Response), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildSuccess { + Status200(models::GuildResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildApplicationCommandSuccess { + Status200(models::ApplicationCommandResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildEmojiSuccess { + Status200(models::EmojiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildMemberSuccess { + Status200(models::GuildMemberResponse), + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildRoleSuccess { + Status200(models::GuildRoleResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildScheduledEventSuccess { + Status200(models::ListGuildScheduledEvents200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildSoundboardSoundSuccess { + Status200(models::SoundboardSoundResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildStickerSuccess { + Status200(models::GuildStickerResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildTemplateSuccess { + Status200(models::GuildTemplateResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_welcome_screen`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildWelcomeScreenSuccess { + Status200(models::GuildWelcomeScreenResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_guild_widget_settings`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildWidgetSettingsSuccess { + Status200(models::WidgetSettingsResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_my_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyApplicationSuccess { + Status200(models::PrivateApplicationResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_my_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyGuildMemberSuccess { + Status200(models::PrivateGuildMemberResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_my_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyUserSuccess { + Status200(models::UserPiiResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateOriginalWebhookMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_self_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSelfVoiceStateSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateStageInstanceSuccess { + Status200(models::StageInstanceResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateVoiceStateSuccess { + Status204(), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookSuccess { + Status200(models::ListChannelWebhooks200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookByTokenSuccess { + Status200(models::ListChannelWebhooks200ResponseInner), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`update_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookMessageSuccess { + Status200(models::MessageResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed successes of method [`upload_application_attachment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UploadApplicationAttachmentSuccess { + Status200(models::ActivitiesAttachmentResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_group_dm_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGroupDmUserError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_guild_member_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGuildMemberRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_lobby_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddLobbyMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_my_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddMyMessageReactionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`add_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddThreadMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`applications_get_activity_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationsGetActivityInstanceError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`ban_user_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BanUserFromGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_ban_users_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkBanUsersFromGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_delete_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkDeleteMessagesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_set_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkSetApplicationCommandsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_set_guild_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkSetGuildApplicationCommandsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_update_guild_channels`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateGuildChannelsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_update_guild_roles`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateGuildRolesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`bulk_update_lobby_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BulkUpdateLobbyMembersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`consume_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ConsumeEntitlementError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAutoModerationRuleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_channel_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateChannelInviteError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_dm`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateDmError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateEntitlementError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildChannelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_from_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildFromTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildScheduledEventError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildSoundboardSoundError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildStickerError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_interaction_response`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateInteractionResponseError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateLobbyError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_lobby_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateLobbyMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_or_join_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateOrJoinLobbyError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreatePinError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateStageInstanceError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateThreadError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_thread_from_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateThreadFromMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`crosspost_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CrosspostMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_all_message_reactions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAllMessageReactionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_all_message_reactions_by_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAllMessageReactionsByEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationUserRoleConnectionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAutoModerationRuleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteChannelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_channel_permission_overwrite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteChannelPermissionOverwriteError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteEntitlementError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_group_dm_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGroupDmUserError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_integration`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildIntegrationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_member_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildMemberRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildScheduledEventError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildSoundboardSoundError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildStickerError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteGuildTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_lobby_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteLobbyMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_my_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMyMessageReactionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteOriginalWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeletePinError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteStageInstanceError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteThreadMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_user_message_reaction`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUserMessageReactionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookByTokenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`deprecated_create_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedCreatePinError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`deprecated_delete_pin`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedDeletePinError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`deprecated_list_pins`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeprecatedListPinsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`edit_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum EditLobbyError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`edit_lobby_channel_link`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum EditLobbyChannelLinkError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`execute_github_compatible_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteGithubCompatibleWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`execute_slack_compatible_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteSlackCompatibleWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`execute_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ExecuteWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`follow_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FollowChannelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_active_guild_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetActiveGuildThreadsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_answer_voters`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetAnswerVotersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_application_role_connections_metadata`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationRoleConnectionsMetadataError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApplicationUserRoleConnectionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetAutoModerationRuleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_bot_gateway`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetBotGatewayError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetChannelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_entitlement`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetEntitlementError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_entitlements`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetEntitlementsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_gateway`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGatewayError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildApplicationCommandPermissionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_ban`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildBanError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_new_member_welcome`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildNewMemberWelcomeError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_preview`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildPreviewError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildScheduledEventError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildSoundboardSoundError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildStickerError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_vanity_url`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildVanityUrlError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_webhooks`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWebhooksError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_welcome_screen`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWelcomeScreenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_widget`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_widget_png`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetPngError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guild_widget_settings`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildWidgetSettingsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_guilds_onboarding`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGuildsOnboardingError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLobbyError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_lobby_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLobbyMessagesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_my_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyApplicationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_my_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_my_oauth2_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyOauth2ApplicationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_my_oauth2_authorization`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyOauth2AuthorizationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_my_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetMyUserError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_openid_connect_userinfo`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOpenidConnectUserinfoError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOriginalWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_public_keys`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetPublicKeysError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_self_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSelfVoiceStateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_soundboard_default_sounds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSoundboardDefaultSoundsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStageInstanceError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStickerError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_sticker_pack`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetStickerPackError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_thread_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetThreadMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUserError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetVoiceStateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookByTokenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`invite_resolve`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InviteResolveError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`invite_revoke`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InviteRevokeError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`join_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum JoinThreadError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`leave_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`leave_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveLobbyError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`leave_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LeaveThreadError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationCommandsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_application_emojis`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationEmojisError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_auto_moderation_rules`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAutoModerationRulesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_channel_invites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListChannelInvitesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_channel_webhooks`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListChannelWebhooksError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildApplicationCommandPermissionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_application_commands`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildApplicationCommandsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_audit_log_entries`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildAuditLogEntriesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_bans`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildBansError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_channels`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildChannelsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_emojis`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildEmojisError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_integrations`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildIntegrationsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_invites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildInvitesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildMembersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_roles`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildRolesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_scheduled_event_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildScheduledEventUsersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_scheduled_events`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildScheduledEventsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_soundboard_sounds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildSoundboardSoundsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_stickers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildStickersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_templates`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildTemplatesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_guild_voice_regions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildVoiceRegionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_message_reactions_by_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessageReactionsByEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_messages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessagesError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_my_connections`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyConnectionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_my_guilds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyGuildsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_my_private_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMyPrivateArchivedThreadsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_pins`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPinsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_private_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPrivateArchivedThreadsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_public_archived_threads`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListPublicArchivedThreadsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sticker_packs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListStickerPacksError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_thread_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListThreadMembersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_voice_regions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListVoiceRegionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`partner_sdk_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PartnerSdkTokenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`partner_sdk_unmerge_provisional_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PartnerSdkUnmergeProvisionalAccountError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`poll_expire`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PollExpireError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`preview_prune_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PreviewPruneGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`prune_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PruneGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`put_guilds_onboarding`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutGuildsOnboardingError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`search_guild_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SearchGuildMembersError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`send_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SendSoundboardSoundError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`set_channel_permission_overwrite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetChannelPermissionOverwriteError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`set_guild_application_command_permissions`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetGuildApplicationCommandPermissionsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`set_guild_mfa_level`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetGuildMfaLevelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`sync_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SyncGuildTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`thread_search`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ThreadSearchError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`trigger_typing_indicator`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TriggerTypingIndicatorError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`unban_user_from_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UnbanUserFromGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application_role_connections_metadata`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationRoleConnectionsMetadataError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application_user_role_connection`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationUserRoleConnectionError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_auto_moderation_rule`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAutoModerationRuleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_channel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateChannelError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_application_command`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildApplicationCommandError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_emoji`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildEmojiError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_role`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildRoleError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_scheduled_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildScheduledEventError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_soundboard_sound`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildSoundboardSoundError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_sticker`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildStickerError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_template`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildTemplateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_welcome_screen`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildWelcomeScreenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_guild_widget_settings`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateGuildWidgetSettingsError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_my_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyApplicationError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_my_guild_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyGuildMemberError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_my_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMyUserError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_original_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateOriginalWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_self_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSelfVoiceStateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_stage_instance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateStageInstanceError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_voice_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateVoiceStateError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_webhook`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_webhook_by_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookByTokenError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_webhook_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateWebhookMessageError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`upload_application_attachment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UploadApplicationAttachmentError { + Status4XX(models::ErrorResponse), + UnknownValue(serde_json::Value), +} + diff --git a/src/apis/mod.rs b/src/apis/mod.rs new file mode 100644 index 0000000..d0164ea --- /dev/null +++ b/src/apis/mod.rs @@ -0,0 +1,130 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + #[cfg(feature = "middleware")] + ReqwestMiddleware(reqwest_middleware::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + #[cfg(feature = "middleware")] + Error::ReqwestMiddleware(e) => ("reqwest-middleware", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + #[cfg(feature = "middleware")] + Error::ReqwestMiddleware(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +#[cfg(feature = "middleware")] +impl From for Error { + fn from(e: reqwest_middleware::Error) -> Self { + Error::ReqwestMiddleware(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +/// Internal use only +/// A content type supported by this client. +#[allow(dead_code)] +enum ContentType { + Json, + Text, + Unsupported(String) +} + +impl From<&str> for ContentType { + fn from(content_type: &str) -> Self { + if content_type.starts_with("application") && content_type.contains("json") { + return Self::Json; + } else if content_type.starts_with("text/plain") { + return Self::Text; + } else { + return Self::Unsupported(content_type.to_string()); + } + } +} + +pub mod default_api; + +pub mod configuration; + diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..edc482e --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,10 @@ +#![allow(unused_imports)] +#![allow(clippy::too_many_arguments)] + +extern crate serde_repr; +extern crate serde; +extern crate serde_json; +extern crate url; + +pub mod apis; +pub mod models; diff --git a/src/models/account_response.rs b/src/models/account_response.rs new file mode 100644 index 0000000..1887f61 --- /dev/null +++ b/src/models/account_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AccountResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, +} + +impl AccountResponse { + pub fn new(id: String) -> AccountResponse { + AccountResponse { + id, + name: None, + } + } +} + diff --git a/src/models/action_row_component_for_message_request.rs b/src/models/action_row_component_for_message_request.rs new file mode 100644 index 0000000..18000b2 --- /dev/null +++ b/src/models/action_row_component_for_message_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ActionRowComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "components")] + pub components: Vec, +} + +impl ActionRowComponentForMessageRequest { + pub fn new(r#type: i32, components: Vec) -> ActionRowComponentForMessageRequest { + ActionRowComponentForMessageRequest { + r#type, + components, + } + } +} + diff --git a/src/models/action_row_component_for_message_request_components_inner.rs b/src/models/action_row_component_for_message_request_components_inner.rs new file mode 100644 index 0000000..e9bcedc --- /dev/null +++ b/src/models/action_row_component_for_message_request_components_inner.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ActionRowComponentForMessageRequestComponentsInner { + ButtonComponentForMessageRequest(Box), + ChannelSelectComponentForMessageRequest(Box), + MentionableSelectComponentForMessageRequest(Box), + RoleSelectComponentForMessageRequest(Box), + StringSelectComponentForMessageRequest(Box), + UserSelectComponentForMessageRequest(Box), +} + +impl Default for ActionRowComponentForMessageRequestComponentsInner { + fn default() -> Self { + Self::ButtonComponentForMessageRequest(Default::default()) + } +} + diff --git a/src/models/action_row_component_for_modal_request.rs b/src/models/action_row_component_for_modal_request.rs new file mode 100644 index 0000000..d3eb0cc --- /dev/null +++ b/src/models/action_row_component_for_modal_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ActionRowComponentForModalRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "components")] + pub components: Vec, +} + +impl ActionRowComponentForModalRequest { + pub fn new(r#type: i32, components: Vec) -> ActionRowComponentForModalRequest { + ActionRowComponentForModalRequest { + r#type, + components, + } + } +} + diff --git a/src/models/action_row_component_response.rs b/src/models/action_row_component_response.rs new file mode 100644 index 0000000..f49856f --- /dev/null +++ b/src/models/action_row_component_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ActionRowComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, +} + +impl ActionRowComponentResponse { + pub fn new(r#type: i32, id: i32) -> ActionRowComponentResponse { + ActionRowComponentResponse { + r#type, + id, + components: None, + } + } +} + diff --git a/src/models/action_row_component_response_components_inner.rs b/src/models/action_row_component_response_components_inner.rs new file mode 100644 index 0000000..2191d56 --- /dev/null +++ b/src/models/action_row_component_response_components_inner.rs @@ -0,0 +1,64 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ActionRowComponentResponseComponentsInner { + ButtonComponentResponse(Box), + ChannelSelectComponentResponse(Box), + MentionableSelectComponentResponse(Box), + RoleSelectComponentResponse(Box), + StringSelectComponentResponse(Box), + TextInputComponentResponse(Box), + UserSelectComponentResponse(Box), +} + +impl Default for ActionRowComponentResponseComponentsInner { + fn default() -> Self { + Self::ButtonComponentResponse(Default::default()) + } +} + diff --git a/src/models/activities_attachment_response.rs b/src/models/activities_attachment_response.rs new file mode 100644 index 0000000..a33d2a0 --- /dev/null +++ b/src/models/activities_attachment_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ActivitiesAttachmentResponse { + #[serde(rename = "attachment")] + pub attachment: Box, +} + +impl ActivitiesAttachmentResponse { + pub fn new(attachment: models::AttachmentResponse) -> ActivitiesAttachmentResponse { + ActivitiesAttachmentResponse { + attachment: Box::new(attachment), + } + } +} + diff --git a/src/models/add_group_dm_user_201_response.rs b/src/models/add_group_dm_user_201_response.rs new file mode 100644 index 0000000..780fe3a --- /dev/null +++ b/src/models/add_group_dm_user_201_response.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AddGroupDmUser201Response { + PrivateChannelResponse(Box), + PrivateGroupChannelResponse(Box), +} + +impl Default for AddGroupDmUser201Response { + fn default() -> Self { + Self::PrivateChannelResponse(Default::default()) + } +} + diff --git a/src/models/add_group_dm_user_request.rs b/src/models/add_group_dm_user_request.rs new file mode 100644 index 0000000..5a0b987 --- /dev/null +++ b/src/models/add_group_dm_user_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddGroupDmUserRequest { + #[serde(rename = "access_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub access_token: Option>, + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, +} + +impl AddGroupDmUserRequest { + pub fn new() -> AddGroupDmUserRequest { + AddGroupDmUserRequest { + access_token: None, + nick: None, + } + } +} + diff --git a/src/models/add_guild_member_request.rs b/src/models/add_guild_member_request.rs new file mode 100644 index 0000000..b22a7ff --- /dev/null +++ b/src/models/add_guild_member_request.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddGuildMemberRequest { + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, + #[serde(rename = "mute", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mute: Option>, + #[serde(rename = "deaf", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deaf: Option>, + #[serde(rename = "access_token")] + pub access_token: String, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl AddGuildMemberRequest { + pub fn new(access_token: String) -> AddGuildMemberRequest { + AddGuildMemberRequest { + nick: None, + roles: None, + mute: None, + deaf: None, + access_token, + flags: None, + } + } +} + diff --git a/src/models/add_lobby_member_request.rs b/src/models/add_lobby_member_request.rs new file mode 100644 index 0000000..ade2edd --- /dev/null +++ b/src/models/add_lobby_member_request.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddLobbyMemberRequest { + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl AddLobbyMemberRequest { + pub fn new() -> AddLobbyMemberRequest { + AddLobbyMemberRequest { + metadata: None, + flags: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum FlagsEnum { + #[serde(rename = "1")] + Variant1, +} + +impl Default for FlagsEnum { + fn default() -> FlagsEnum { + Self::Variant1 + } +} + diff --git a/src/models/application_command_attachment_option.rs b/src/models/application_command_attachment_option.rs new file mode 100644 index 0000000..5b7d931 --- /dev/null +++ b/src/models/application_command_attachment_option.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandAttachmentOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandAttachmentOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandAttachmentOption { + ApplicationCommandAttachmentOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_attachment_option_response.rs b/src/models/application_command_attachment_option_response.rs new file mode 100644 index 0000000..99a0882 --- /dev/null +++ b/src/models/application_command_attachment_option_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandAttachmentOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandAttachmentOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandAttachmentOptionResponse { + ApplicationCommandAttachmentOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_autocomplete_callback_request.rs b/src/models/application_command_autocomplete_callback_request.rs new file mode 100644 index 0000000..0d06fe5 --- /dev/null +++ b/src/models/application_command_autocomplete_callback_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandAutocompleteCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "data")] + pub data: Box, +} + +impl ApplicationCommandAutocompleteCallbackRequest { + pub fn new(r#type: Option, data: models::ApplicationCommandAutocompleteCallbackRequestData) -> ApplicationCommandAutocompleteCallbackRequest { + ApplicationCommandAutocompleteCallbackRequest { + r#type, + data: Box::new(data), + } + } +} + diff --git a/src/models/application_command_autocomplete_callback_request_data.rs b/src/models/application_command_autocomplete_callback_request_data.rs new file mode 100644 index 0000000..f9296de --- /dev/null +++ b/src/models/application_command_autocomplete_callback_request_data.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandAutocompleteCallbackRequestData { + #[serde(rename = "choices", skip_serializing_if = "Option::is_none")] + pub choices: Option>, +} + +impl ApplicationCommandAutocompleteCallbackRequestData { + pub fn new() -> ApplicationCommandAutocompleteCallbackRequestData { + ApplicationCommandAutocompleteCallbackRequestData { + choices: None, + } + } +} + diff --git a/src/models/application_command_boolean_option.rs b/src/models/application_command_boolean_option.rs new file mode 100644 index 0000000..d1b80e5 --- /dev/null +++ b/src/models/application_command_boolean_option.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandBooleanOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandBooleanOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandBooleanOption { + ApplicationCommandBooleanOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_boolean_option_response.rs b/src/models/application_command_boolean_option_response.rs new file mode 100644 index 0000000..6b2fdfa --- /dev/null +++ b/src/models/application_command_boolean_option_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandBooleanOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandBooleanOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandBooleanOptionResponse { + ApplicationCommandBooleanOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_channel_option.rs b/src/models/application_command_channel_option.rs new file mode 100644 index 0000000..961c8c8 --- /dev/null +++ b/src/models/application_command_channel_option.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandChannelOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "channel_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel_types: Option>>, +} + +impl ApplicationCommandChannelOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandChannelOption { + ApplicationCommandChannelOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + channel_types: None, + } + } +} + diff --git a/src/models/application_command_channel_option_response.rs b/src/models/application_command_channel_option_response.rs new file mode 100644 index 0000000..0b5f07a --- /dev/null +++ b/src/models/application_command_channel_option_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandChannelOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "channel_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel_types: Option>>, +} + +impl ApplicationCommandChannelOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandChannelOptionResponse { + ApplicationCommandChannelOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + channel_types: None, + } + } +} + diff --git a/src/models/application_command_create_request.rs b/src/models/application_command_create_request.rs new file mode 100644 index 0000000..67478ec --- /dev/null +++ b/src/models/application_command_create_request.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandCreateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, + #[serde(rename = "default_member_permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_member_permissions: Option>, + #[serde(rename = "dm_permission", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub dm_permission: Option>, + #[serde(rename = "contexts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub contexts: Option>>, + #[serde(rename = "integration_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub integration_types: Option>>, + #[serde(rename = "handler", skip_serializing_if = "Option::is_none")] + pub handler: Option, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, +} + +impl ApplicationCommandCreateRequest { + pub fn new(name: String) -> ApplicationCommandCreateRequest { + ApplicationCommandCreateRequest { + name, + name_localizations: None, + description: None, + description_localizations: None, + options: None, + default_member_permissions: None, + dm_permission: None, + contexts: None, + integration_types: None, + handler: None, + r#type: None, + } + } +} + diff --git a/src/models/application_command_create_request_options_inner.rs b/src/models/application_command_create_request_options_inner.rs new file mode 100644 index 0000000..bbc4100 --- /dev/null +++ b/src/models/application_command_create_request_options_inner.rs @@ -0,0 +1,68 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationCommandCreateRequestOptionsInner { + ApplicationCommandAttachmentOption(Box), + ApplicationCommandBooleanOption(Box), + ApplicationCommandChannelOption(Box), + ApplicationCommandIntegerOption(Box), + ApplicationCommandMentionableOption(Box), + ApplicationCommandNumberOption(Box), + ApplicationCommandRoleOption(Box), + ApplicationCommandStringOption(Box), + ApplicationCommandSubcommandGroupOption(Box), + ApplicationCommandSubcommandOption(Box), + ApplicationCommandUserOption(Box), +} + +impl Default for ApplicationCommandCreateRequestOptionsInner { + fn default() -> Self { + Self::ApplicationCommandAttachmentOption(Default::default()) + } +} + diff --git a/src/models/application_command_integer_option.rs b/src/models/application_command_integer_option.rs new file mode 100644 index 0000000..174c062 --- /dev/null +++ b/src/models/application_command_integer_option.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandIntegerOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, + #[serde(rename = "min_value", skip_serializing_if = "Option::is_none")] + pub min_value: Option, + #[serde(rename = "max_value", skip_serializing_if = "Option::is_none")] + pub max_value: Option, +} + +impl ApplicationCommandIntegerOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandIntegerOption { + ApplicationCommandIntegerOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + autocomplete: None, + choices: None, + min_value: None, + max_value: None, + } + } +} + diff --git a/src/models/application_command_integer_option_response.rs b/src/models/application_command_integer_option_response.rs new file mode 100644 index 0000000..40b2cfe --- /dev/null +++ b/src/models/application_command_integer_option_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandIntegerOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, + #[serde(rename = "min_value", skip_serializing_if = "Option::is_none")] + pub min_value: Option, + #[serde(rename = "max_value", skip_serializing_if = "Option::is_none")] + pub max_value: Option, +} + +impl ApplicationCommandIntegerOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandIntegerOptionResponse { + ApplicationCommandIntegerOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + autocomplete: None, + choices: None, + min_value: None, + max_value: None, + } + } +} + diff --git a/src/models/application_command_interaction_metadata_response.rs b/src/models/application_command_interaction_metadata_response.rs new file mode 100644 index 0000000..21e928c --- /dev/null +++ b/src/models/application_command_interaction_metadata_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandInteractionMetadataResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "authorizing_integration_owners")] + pub authorizing_integration_owners: std::collections::HashMap, + #[serde(rename = "original_response_message_id", skip_serializing_if = "Option::is_none")] + pub original_response_message_id: Option, + #[serde(rename = "target_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_user: Option>>, + #[serde(rename = "target_message_id", skip_serializing_if = "Option::is_none")] + pub target_message_id: Option, +} + +impl ApplicationCommandInteractionMetadataResponse { + pub fn new(id: String, r#type: i32, authorizing_integration_owners: std::collections::HashMap) -> ApplicationCommandInteractionMetadataResponse { + ApplicationCommandInteractionMetadataResponse { + id, + r#type, + user: None, + authorizing_integration_owners, + original_response_message_id: None, + target_user: None, + target_message_id: None, + } + } +} + diff --git a/src/models/application_command_mentionable_option.rs b/src/models/application_command_mentionable_option.rs new file mode 100644 index 0000000..91cc7c4 --- /dev/null +++ b/src/models/application_command_mentionable_option.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandMentionableOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandMentionableOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandMentionableOption { + ApplicationCommandMentionableOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_mentionable_option_response.rs b/src/models/application_command_mentionable_option_response.rs new file mode 100644 index 0000000..87ceb0c --- /dev/null +++ b/src/models/application_command_mentionable_option_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandMentionableOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandMentionableOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandMentionableOptionResponse { + ApplicationCommandMentionableOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_number_option.rs b/src/models/application_command_number_option.rs new file mode 100644 index 0000000..2675d14 --- /dev/null +++ b/src/models/application_command_number_option.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandNumberOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, + #[serde(rename = "min_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_value: Option>, + #[serde(rename = "max_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_value: Option>, +} + +impl ApplicationCommandNumberOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandNumberOption { + ApplicationCommandNumberOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + autocomplete: None, + choices: None, + min_value: None, + max_value: None, + } + } +} + diff --git a/src/models/application_command_number_option_response.rs b/src/models/application_command_number_option_response.rs new file mode 100644 index 0000000..5c486d9 --- /dev/null +++ b/src/models/application_command_number_option_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandNumberOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, + #[serde(rename = "min_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_value: Option>, + #[serde(rename = "max_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_value: Option>, +} + +impl ApplicationCommandNumberOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandNumberOptionResponse { + ApplicationCommandNumberOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + autocomplete: None, + choices: None, + min_value: None, + max_value: None, + } + } +} + diff --git a/src/models/application_command_option_integer_choice.rs b/src/models/application_command_option_integer_choice.rs new file mode 100644 index 0000000..66cb43f --- /dev/null +++ b/src/models/application_command_option_integer_choice.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionIntegerChoice { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: i64, +} + +impl ApplicationCommandOptionIntegerChoice { + pub fn new(name: String, value: i64) -> ApplicationCommandOptionIntegerChoice { + ApplicationCommandOptionIntegerChoice { + name, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_option_integer_choice_response.rs b/src/models/application_command_option_integer_choice_response.rs new file mode 100644 index 0000000..bcb4b0b --- /dev/null +++ b/src/models/application_command_option_integer_choice_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionIntegerChoiceResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: i64, +} + +impl ApplicationCommandOptionIntegerChoiceResponse { + pub fn new(name: String, value: i64) -> ApplicationCommandOptionIntegerChoiceResponse { + ApplicationCommandOptionIntegerChoiceResponse { + name, + name_localized: None, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_option_number_choice.rs b/src/models/application_command_option_number_choice.rs new file mode 100644 index 0000000..a681544 --- /dev/null +++ b/src/models/application_command_option_number_choice.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionNumberChoice { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: f64, +} + +impl ApplicationCommandOptionNumberChoice { + pub fn new(name: String, value: f64) -> ApplicationCommandOptionNumberChoice { + ApplicationCommandOptionNumberChoice { + name, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_option_number_choice_response.rs b/src/models/application_command_option_number_choice_response.rs new file mode 100644 index 0000000..423a8b2 --- /dev/null +++ b/src/models/application_command_option_number_choice_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionNumberChoiceResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: f64, +} + +impl ApplicationCommandOptionNumberChoiceResponse { + pub fn new(name: String, value: f64) -> ApplicationCommandOptionNumberChoiceResponse { + ApplicationCommandOptionNumberChoiceResponse { + name, + name_localized: None, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_option_string_choice.rs b/src/models/application_command_option_string_choice.rs new file mode 100644 index 0000000..86400d0 --- /dev/null +++ b/src/models/application_command_option_string_choice.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionStringChoice { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: String, +} + +impl ApplicationCommandOptionStringChoice { + pub fn new(name: String, value: String) -> ApplicationCommandOptionStringChoice { + ApplicationCommandOptionStringChoice { + name, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_option_string_choice_response.rs b/src/models/application_command_option_string_choice_response.rs new file mode 100644 index 0000000..0a6103b --- /dev/null +++ b/src/models/application_command_option_string_choice_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandOptionStringChoiceResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "value")] + pub value: String, +} + +impl ApplicationCommandOptionStringChoiceResponse { + pub fn new(name: String, value: String) -> ApplicationCommandOptionStringChoiceResponse { + ApplicationCommandOptionStringChoiceResponse { + name, + name_localized: None, + name_localizations: None, + value, + } + } +} + diff --git a/src/models/application_command_patch_request_partial.rs b/src/models/application_command_patch_request_partial.rs new file mode 100644 index 0000000..7252d4f --- /dev/null +++ b/src/models/application_command_patch_request_partial.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandPatchRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, + #[serde(rename = "default_member_permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_member_permissions: Option>, + #[serde(rename = "dm_permission", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub dm_permission: Option>, + #[serde(rename = "contexts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub contexts: Option>>, + #[serde(rename = "integration_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub integration_types: Option>>, + #[serde(rename = "handler", skip_serializing_if = "Option::is_none")] + pub handler: Option, +} + +impl ApplicationCommandPatchRequestPartial { + pub fn new() -> ApplicationCommandPatchRequestPartial { + ApplicationCommandPatchRequestPartial { + name: None, + name_localizations: None, + description: None, + description_localizations: None, + options: None, + default_member_permissions: None, + dm_permission: None, + contexts: None, + integration_types: None, + handler: None, + } + } +} + diff --git a/src/models/application_command_permission.rs b/src/models/application_command_permission.rs new file mode 100644 index 0000000..717d910 --- /dev/null +++ b/src/models/application_command_permission.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandPermission { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "permission")] + pub permission: bool, +} + +impl ApplicationCommandPermission { + pub fn new(id: String, r#type: i32, permission: bool) -> ApplicationCommandPermission { + ApplicationCommandPermission { + id, + r#type, + permission, + } + } +} + diff --git a/src/models/application_command_response.rs b/src/models/application_command_response.rs new file mode 100644 index 0000000..1d7e459 --- /dev/null +++ b/src/models/application_command_response.rs @@ -0,0 +1,108 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "application_id")] + pub application_id: String, + #[serde(rename = "version")] + pub version: String, + #[serde(rename = "default_member_permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_member_permissions: Option>, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "dm_permission", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub dm_permission: Option>, + #[serde(rename = "contexts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub contexts: Option>>, + #[serde(rename = "integration_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub integration_types: Option>>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, +} + +impl ApplicationCommandResponse { + pub fn new(id: String, application_id: String, version: String, r#type: i32, name: String, description: String) -> ApplicationCommandResponse { + ApplicationCommandResponse { + id, + application_id, + version, + default_member_permissions: None, + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + guild_id: None, + dm_permission: None, + contexts: None, + integration_types: None, + options: None, + nsfw: None, + } + } +} + diff --git a/src/models/application_command_response_options_inner.rs b/src/models/application_command_response_options_inner.rs new file mode 100644 index 0000000..44eb592 --- /dev/null +++ b/src/models/application_command_response_options_inner.rs @@ -0,0 +1,68 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationCommandResponseOptionsInner { + ApplicationCommandAttachmentOptionResponse(Box), + ApplicationCommandBooleanOptionResponse(Box), + ApplicationCommandChannelOptionResponse(Box), + ApplicationCommandIntegerOptionResponse(Box), + ApplicationCommandMentionableOptionResponse(Box), + ApplicationCommandNumberOptionResponse(Box), + ApplicationCommandRoleOptionResponse(Box), + ApplicationCommandStringOptionResponse(Box), + ApplicationCommandSubcommandGroupOptionResponse(Box), + ApplicationCommandSubcommandOptionResponse(Box), + ApplicationCommandUserOptionResponse(Box), +} + +impl Default for ApplicationCommandResponseOptionsInner { + fn default() -> Self { + Self::ApplicationCommandAttachmentOptionResponse(Default::default()) + } +} + diff --git a/src/models/application_command_role_option.rs b/src/models/application_command_role_option.rs new file mode 100644 index 0000000..ea0f55e --- /dev/null +++ b/src/models/application_command_role_option.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandRoleOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandRoleOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandRoleOption { + ApplicationCommandRoleOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_role_option_response.rs b/src/models/application_command_role_option_response.rs new file mode 100644 index 0000000..03707ca --- /dev/null +++ b/src/models/application_command_role_option_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandRoleOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandRoleOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandRoleOptionResponse { + ApplicationCommandRoleOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_string_option.rs b/src/models/application_command_string_option.rs new file mode 100644 index 0000000..b95598d --- /dev/null +++ b/src/models/application_command_string_option.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandStringOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "min_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_length: Option>, + #[serde(rename = "max_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_length: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, +} + +impl ApplicationCommandStringOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandStringOption { + ApplicationCommandStringOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + autocomplete: None, + min_length: None, + max_length: None, + choices: None, + } + } +} + diff --git a/src/models/application_command_string_option_response.rs b/src/models/application_command_string_option_response.rs new file mode 100644 index 0000000..6c806a2 --- /dev/null +++ b/src/models/application_command_string_option_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandStringOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "autocomplete", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub autocomplete: Option>, + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, + #[serde(rename = "min_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_length: Option>, + #[serde(rename = "max_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_length: Option>, +} + +impl ApplicationCommandStringOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandStringOptionResponse { + ApplicationCommandStringOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + autocomplete: None, + choices: None, + min_length: None, + max_length: None, + } + } +} + diff --git a/src/models/application_command_subcommand_group_option.rs b/src/models/application_command_subcommand_group_option.rs new file mode 100644 index 0000000..6b02a66 --- /dev/null +++ b/src/models/application_command_subcommand_group_option.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandSubcommandGroupOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, +} + +impl ApplicationCommandSubcommandGroupOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandSubcommandGroupOption { + ApplicationCommandSubcommandGroupOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + options: None, + } + } +} + diff --git a/src/models/application_command_subcommand_group_option_response.rs b/src/models/application_command_subcommand_group_option_response.rs new file mode 100644 index 0000000..cb56da8 --- /dev/null +++ b/src/models/application_command_subcommand_group_option_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandSubcommandGroupOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, +} + +impl ApplicationCommandSubcommandGroupOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandSubcommandGroupOptionResponse { + ApplicationCommandSubcommandGroupOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + options: None, + } + } +} + diff --git a/src/models/application_command_subcommand_option.rs b/src/models/application_command_subcommand_option.rs new file mode 100644 index 0000000..ce1b43b --- /dev/null +++ b/src/models/application_command_subcommand_option.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandSubcommandOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, +} + +impl ApplicationCommandSubcommandOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandSubcommandOption { + ApplicationCommandSubcommandOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + options: None, + } + } +} + diff --git a/src/models/application_command_subcommand_option_options_inner.rs b/src/models/application_command_subcommand_option_options_inner.rs new file mode 100644 index 0000000..2165f0e --- /dev/null +++ b/src/models/application_command_subcommand_option_options_inner.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationCommandSubcommandOptionOptionsInner { + ApplicationCommandAttachmentOption(Box), + ApplicationCommandBooleanOption(Box), + ApplicationCommandChannelOption(Box), + ApplicationCommandIntegerOption(Box), + ApplicationCommandMentionableOption(Box), + ApplicationCommandNumberOption(Box), + ApplicationCommandRoleOption(Box), + ApplicationCommandStringOption(Box), + ApplicationCommandUserOption(Box), +} + +impl Default for ApplicationCommandSubcommandOptionOptionsInner { + fn default() -> Self { + Self::ApplicationCommandAttachmentOption(Default::default()) + } +} + diff --git a/src/models/application_command_subcommand_option_response.rs b/src/models/application_command_subcommand_option_response.rs new file mode 100644 index 0000000..e72485b --- /dev/null +++ b/src/models/application_command_subcommand_option_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandSubcommandOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, +} + +impl ApplicationCommandSubcommandOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandSubcommandOptionResponse { + ApplicationCommandSubcommandOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + options: None, + } + } +} + diff --git a/src/models/application_command_subcommand_option_response_options_inner.rs b/src/models/application_command_subcommand_option_response_options_inner.rs new file mode 100644 index 0000000..71547db --- /dev/null +++ b/src/models/application_command_subcommand_option_response_options_inner.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationCommandSubcommandOptionResponseOptionsInner { + ApplicationCommandAttachmentOptionResponse(Box), + ApplicationCommandBooleanOptionResponse(Box), + ApplicationCommandChannelOptionResponse(Box), + ApplicationCommandIntegerOptionResponse(Box), + ApplicationCommandMentionableOptionResponse(Box), + ApplicationCommandNumberOptionResponse(Box), + ApplicationCommandRoleOptionResponse(Box), + ApplicationCommandStringOptionResponse(Box), + ApplicationCommandUserOptionResponse(Box), +} + +impl Default for ApplicationCommandSubcommandOptionResponseOptionsInner { + fn default() -> Self { + Self::ApplicationCommandAttachmentOptionResponse(Default::default()) + } +} + diff --git a/src/models/application_command_update_request.rs b/src/models/application_command_update_request.rs new file mode 100644 index 0000000..d83f131 --- /dev/null +++ b/src/models/application_command_update_request.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandUpdateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "options", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub options: Option>>, + #[serde(rename = "default_member_permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_member_permissions: Option>, + #[serde(rename = "dm_permission", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub dm_permission: Option>, + #[serde(rename = "contexts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub contexts: Option>>, + #[serde(rename = "integration_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub integration_types: Option>>, + #[serde(rename = "handler", skip_serializing_if = "Option::is_none")] + pub handler: Option, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, +} + +impl ApplicationCommandUpdateRequest { + pub fn new(name: String) -> ApplicationCommandUpdateRequest { + ApplicationCommandUpdateRequest { + name, + name_localizations: None, + description: None, + description_localizations: None, + options: None, + default_member_permissions: None, + dm_permission: None, + contexts: None, + integration_types: None, + handler: None, + r#type: None, + id: None, + } + } +} + diff --git a/src/models/application_command_user_option.rs b/src/models/application_command_user_option.rs new file mode 100644 index 0000000..3f4cab4 --- /dev/null +++ b/src/models/application_command_user_option.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandUserOption { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandUserOption { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandUserOption { + ApplicationCommandUserOption { + r#type, + name, + name_localizations: None, + description, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_command_user_option_response.rs b/src/models/application_command_user_option_response.rs new file mode 100644 index 0000000..0de8e54 --- /dev/null +++ b/src/models/application_command_user_option_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationCommandUserOptionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description_localized: Option>, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, +} + +impl ApplicationCommandUserOptionResponse { + pub fn new(r#type: i32, name: String, description: String) -> ApplicationCommandUserOptionResponse { + ApplicationCommandUserOptionResponse { + r#type, + name, + name_localized: None, + name_localizations: None, + description, + description_localized: None, + description_localizations: None, + required: None, + } + } +} + diff --git a/src/models/application_form_partial.rs b/src/models/application_form_partial.rs new file mode 100644 index 0000000..52c743e --- /dev/null +++ b/src/models/application_form_partial.rs @@ -0,0 +1,99 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationFormPartial { + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "team_id", skip_serializing_if = "Option::is_none")] + pub team_id: Option, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "interactions_endpoint_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interactions_endpoint_url: Option>, + #[serde(rename = "explicit_content_filter", skip_serializing_if = "Option::is_none")] + pub explicit_content_filter: Option, + #[serde(rename = "max_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_participants: Option>, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, + #[serde(rename = "custom_install_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_install_url: Option>, + #[serde(rename = "install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub install_params: Option>>, + #[serde(rename = "role_connections_verification_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub role_connections_verification_url: Option>, + #[serde(rename = "integration_types_config", skip_serializing_if = "Option::is_none")] + pub integration_types_config: Option>, +} + +impl ApplicationFormPartial { + pub fn new() -> ApplicationFormPartial { + ApplicationFormPartial { + description: None, + icon: None, + cover_image: None, + team_id: None, + flags: None, + interactions_endpoint_url: None, + explicit_content_filter: None, + max_participants: None, + r#type: None, + tags: None, + custom_install_url: None, + install_params: None, + role_connections_verification_url: None, + integration_types_config: None, + } + } +} + diff --git a/src/models/application_form_partial_description.rs b/src/models/application_form_partial_description.rs new file mode 100644 index 0000000..037ad0b --- /dev/null +++ b/src/models/application_form_partial_description.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationFormPartialDescription { + #[serde(rename = "default")] + pub default: String, + #[serde(rename = "localizations", skip_serializing_if = "Option::is_none")] + pub localizations: Option>, +} + +impl ApplicationFormPartialDescription { + pub fn new(default: String) -> ApplicationFormPartialDescription { + ApplicationFormPartialDescription { + default, + localizations: None, + } + } +} + diff --git a/src/models/application_form_partial_integration_types_config_value.rs b/src/models/application_form_partial_integration_types_config_value.rs new file mode 100644 index 0000000..66b7669 --- /dev/null +++ b/src/models/application_form_partial_integration_types_config_value.rs @@ -0,0 +1,58 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApplicationFormPartialIntegrationTypesConfigValue { + ApplicationIntegrationTypeConfiguration(Box), +} + +impl Default for ApplicationFormPartialIntegrationTypesConfigValue { + fn default() -> Self { + Self::ApplicationIntegrationTypeConfiguration(Default::default()) + } +} + diff --git a/src/models/application_incoming_webhook_response.rs b/src/models/application_incoming_webhook_response.rs new file mode 100644 index 0000000..f9280fa --- /dev/null +++ b/src/models/application_incoming_webhook_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationIncomingWebhookResponse { + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, +} + +impl ApplicationIncomingWebhookResponse { + pub fn new(id: String, name: String, r#type: i32) -> ApplicationIncomingWebhookResponse { + ApplicationIncomingWebhookResponse { + application_id: None, + avatar: None, + channel_id: None, + guild_id: None, + id, + name, + r#type, + user: None, + } + } +} + diff --git a/src/models/application_integration_type_configuration.rs b/src/models/application_integration_type_configuration.rs new file mode 100644 index 0000000..ee0521d --- /dev/null +++ b/src/models/application_integration_type_configuration.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationIntegrationTypeConfiguration { + #[serde(rename = "oauth2_install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub oauth2_install_params: Option>>, +} + +impl ApplicationIntegrationTypeConfiguration { + pub fn new() -> ApplicationIntegrationTypeConfiguration { + ApplicationIntegrationTypeConfiguration { + oauth2_install_params: None, + } + } +} + diff --git a/src/models/application_integration_type_configuration_response.rs b/src/models/application_integration_type_configuration_response.rs new file mode 100644 index 0000000..417f458 --- /dev/null +++ b/src/models/application_integration_type_configuration_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationIntegrationTypeConfigurationResponse { + #[serde(rename = "oauth2_install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub oauth2_install_params: Option>>, +} + +impl ApplicationIntegrationTypeConfigurationResponse { + pub fn new() -> ApplicationIntegrationTypeConfigurationResponse { + ApplicationIntegrationTypeConfigurationResponse { + oauth2_install_params: None, + } + } +} + diff --git a/src/models/application_o_auth2_install_params.rs b/src/models/application_o_auth2_install_params.rs new file mode 100644 index 0000000..9cec540 --- /dev/null +++ b/src/models/application_o_auth2_install_params.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationOAuth2InstallParams { + #[serde(rename = "scopes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scopes: Option>>, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, +} + +impl ApplicationOAuth2InstallParams { + pub fn new() -> ApplicationOAuth2InstallParams { + ApplicationOAuth2InstallParams { + scopes: None, + permissions: None, + } + } +} + diff --git a/src/models/application_o_auth2_install_params_response.rs b/src/models/application_o_auth2_install_params_response.rs new file mode 100644 index 0000000..faedf15 --- /dev/null +++ b/src/models/application_o_auth2_install_params_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationOAuth2InstallParamsResponse { + #[serde(rename = "scopes")] + pub scopes: Vec, + #[serde(rename = "permissions")] + pub permissions: String, +} + +impl ApplicationOAuth2InstallParamsResponse { + pub fn new(scopes: Vec, permissions: String) -> ApplicationOAuth2InstallParamsResponse { + ApplicationOAuth2InstallParamsResponse { + scopes, + permissions, + } + } +} + diff --git a/src/models/application_response.rs b/src/models/application_response.rs new file mode 100644 index 0000000..276c5a4 --- /dev/null +++ b/src/models/application_response.rs @@ -0,0 +1,123 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "primary_sku_id", skip_serializing_if = "Option::is_none")] + pub primary_sku_id: Option, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>>, + #[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub slug: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "rpc_origins", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rpc_origins: Option>>, + #[serde(rename = "bot_public", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_public: Option>, + #[serde(rename = "bot_require_code_grant", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_require_code_grant: Option>, + #[serde(rename = "terms_of_service_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub terms_of_service_url: Option>, + #[serde(rename = "privacy_policy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_policy_url: Option>, + #[serde(rename = "custom_install_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_install_url: Option>, + #[serde(rename = "install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub install_params: Option>>, + #[serde(rename = "integration_types_config", skip_serializing_if = "Option::is_none")] + pub integration_types_config: Option>, + #[serde(rename = "verify_key")] + pub verify_key: String, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "max_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_participants: Option>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, +} + +impl ApplicationResponse { + pub fn new(id: String, name: String, description: String, verify_key: String, flags: i32) -> ApplicationResponse { + ApplicationResponse { + id, + name, + icon: None, + description, + r#type: None, + cover_image: None, + primary_sku_id: None, + bot: None, + slug: None, + guild_id: None, + rpc_origins: None, + bot_public: None, + bot_require_code_grant: None, + terms_of_service_url: None, + privacy_policy_url: None, + custom_install_url: None, + install_params: None, + integration_types_config: None, + verify_key, + flags, + max_participants: None, + tags: None, + } + } +} + diff --git a/src/models/application_role_connections_metadata_item_request.rs b/src/models/application_role_connections_metadata_item_request.rs new file mode 100644 index 0000000..c24fe97 --- /dev/null +++ b/src/models/application_role_connections_metadata_item_request.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationRoleConnectionsMetadataItemRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "key")] + pub key: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, +} + +impl ApplicationRoleConnectionsMetadataItemRequest { + pub fn new(r#type: i32, key: String, name: String, description: String) -> ApplicationRoleConnectionsMetadataItemRequest { + ApplicationRoleConnectionsMetadataItemRequest { + r#type, + key, + name, + name_localizations: None, + description, + description_localizations: None, + } + } +} + diff --git a/src/models/application_role_connections_metadata_item_response.rs b/src/models/application_role_connections_metadata_item_response.rs new file mode 100644 index 0000000..15fc08e --- /dev/null +++ b/src/models/application_role_connections_metadata_item_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationRoleConnectionsMetadataItemResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "key")] + pub key: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "name_localizations", skip_serializing_if = "Option::is_none")] + pub name_localizations: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "description_localizations", skip_serializing_if = "Option::is_none")] + pub description_localizations: Option>, +} + +impl ApplicationRoleConnectionsMetadataItemResponse { + pub fn new(r#type: i32, key: String, name: String, description: String) -> ApplicationRoleConnectionsMetadataItemResponse { + ApplicationRoleConnectionsMetadataItemResponse { + r#type, + key, + name, + name_localizations: None, + description, + description_localizations: None, + } + } +} + diff --git a/src/models/application_user_role_connection_response.rs b/src/models/application_user_role_connection_response.rs new file mode 100644 index 0000000..98ac95d --- /dev/null +++ b/src/models/application_user_role_connection_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApplicationUserRoleConnectionResponse { + #[serde(rename = "platform_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub platform_name: Option>, + #[serde(rename = "platform_username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub platform_username: Option>, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, +} + +impl ApplicationUserRoleConnectionResponse { + pub fn new() -> ApplicationUserRoleConnectionResponse { + ApplicationUserRoleConnectionResponse { + platform_name: None, + platform_username: None, + metadata: None, + } + } +} + diff --git a/src/models/attachment_response.rs b/src/models/attachment_response.rs new file mode 100644 index 0000000..75f373f --- /dev/null +++ b/src/models/attachment_response.rs @@ -0,0 +1,105 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AttachmentResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "filename")] + pub filename: String, + #[serde(rename = "size")] + pub size: i32, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "proxy_url")] + pub proxy_url: String, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "duration_secs", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration_secs: Option>, + #[serde(rename = "waveform", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub waveform: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + #[serde(rename = "ephemeral", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ephemeral: Option>, + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "application", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub application: Option>>, + #[serde(rename = "clip_created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub clip_created_at: Option>, + #[serde(rename = "clip_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub clip_participants: Option>>, +} + +impl AttachmentResponse { + pub fn new(id: String, filename: String, size: i32, url: String, proxy_url: String) -> AttachmentResponse { + AttachmentResponse { + id, + filename, + size, + url, + proxy_url, + width: None, + height: None, + duration_secs: None, + waveform: None, + description: None, + content_type: None, + ephemeral: None, + title: None, + application: None, + clip_created_at: None, + clip_participants: None, + } + } +} + diff --git a/src/models/audit_log_entry_response.rs b/src/models/audit_log_entry_response.rs new file mode 100644 index 0000000..720683e --- /dev/null +++ b/src/models/audit_log_entry_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AuditLogEntryResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "action_type", deserialize_with = "Option::deserialize")] + pub action_type: Option, + #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")] + pub user_id: Option, + #[serde(rename = "target_id", skip_serializing_if = "Option::is_none")] + pub target_id: Option, + #[serde(rename = "changes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub changes: Option>>, + #[serde(rename = "options", skip_serializing_if = "Option::is_none")] + pub options: Option>, + #[serde(rename = "reason", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reason: Option>, +} + +impl AuditLogEntryResponse { + pub fn new(id: String, action_type: Option) -> AuditLogEntryResponse { + AuditLogEntryResponse { + id, + action_type, + user_id: None, + target_id: None, + changes: None, + options: None, + reason: None, + } + } +} + diff --git a/src/models/audit_log_object_change_response.rs b/src/models/audit_log_object_change_response.rs new file mode 100644 index 0000000..f471d0f --- /dev/null +++ b/src/models/audit_log_object_change_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AuditLogObjectChangeResponse { + #[serde(rename = "key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub key: Option>, + #[serde(rename = "new_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub new_value: Option>, + #[serde(rename = "old_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub old_value: Option>, +} + +impl AuditLogObjectChangeResponse { + pub fn new() -> AuditLogObjectChangeResponse { + AuditLogObjectChangeResponse { + key: None, + new_value: None, + old_value: None, + } + } +} + diff --git a/src/models/ban_user_from_guild_request.rs b/src/models/ban_user_from_guild_request.rs new file mode 100644 index 0000000..72f6269 --- /dev/null +++ b/src/models/ban_user_from_guild_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BanUserFromGuildRequest { + #[serde(rename = "delete_message_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub delete_message_seconds: Option>, + #[serde(rename = "delete_message_days", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub delete_message_days: Option>, +} + +impl BanUserFromGuildRequest { + pub fn new() -> BanUserFromGuildRequest { + BanUserFromGuildRequest { + delete_message_seconds: None, + delete_message_days: None, + } + } +} + diff --git a/src/models/base_create_message_create_request.rs b/src/models/base_create_message_create_request.rs new file mode 100644 index 0000000..25c4ac5 --- /dev/null +++ b/src/models/base_create_message_create_request.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BaseCreateMessageCreateRequest { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "sticker_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_ids: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "confetti_potion", skip_serializing_if = "Option::is_none")] + pub confetti_potion: Option, +} + +impl BaseCreateMessageCreateRequest { + pub fn new() -> BaseCreateMessageCreateRequest { + BaseCreateMessageCreateRequest { + content: None, + embeds: None, + allowed_mentions: None, + sticker_ids: None, + components: None, + flags: None, + attachments: None, + poll: None, + confetti_potion: None, + } + } +} + diff --git a/src/models/base_create_message_create_request_components_inner.rs b/src/models/base_create_message_create_request_components_inner.rs new file mode 100644 index 0000000..bfc05b9 --- /dev/null +++ b/src/models/base_create_message_create_request_components_inner.rs @@ -0,0 +1,64 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BaseCreateMessageCreateRequestComponentsInner { + ActionRowComponentForMessageRequest(Box), + ContainerComponentForMessageRequest(Box), + FileComponentForMessageRequest(Box), + MediaGalleryComponentForMessageRequest(Box), + SectionComponentForMessageRequest(Box), + SeparatorComponentForMessageRequest(Box), + TextDisplayComponentForMessageRequest(Box), +} + +impl Default for BaseCreateMessageCreateRequestComponentsInner { + fn default() -> Self { + Self::ActionRowComponentForMessageRequest(Default::default()) + } +} + diff --git a/src/models/basic_application_response.rs b/src/models/basic_application_response.rs new file mode 100644 index 0000000..00d6470 --- /dev/null +++ b/src/models/basic_application_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BasicApplicationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "primary_sku_id", skip_serializing_if = "Option::is_none")] + pub primary_sku_id: Option, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>>, +} + +impl BasicApplicationResponse { + pub fn new(id: String, name: String, description: String) -> BasicApplicationResponse { + BasicApplicationResponse { + id, + name, + icon: None, + description, + r#type: None, + cover_image: None, + primary_sku_id: None, + bot: None, + } + } +} + diff --git a/src/models/basic_message_response.rs b/src/models/basic_message_response.rs new file mode 100644 index 0000000..531c7e0 --- /dev/null +++ b/src/models/basic_message_response.rs @@ -0,0 +1,162 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BasicMessageResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "content")] + pub content: String, + #[serde(rename = "mentions")] + pub mentions: Vec, + #[serde(rename = "mention_roles")] + pub mention_roles: Vec, + #[serde(rename = "attachments")] + pub attachments: Vec, + #[serde(rename = "embeds")] + pub embeds: Vec, + #[serde(rename = "timestamp")] + pub timestamp: String, + #[serde(rename = "edited_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub edited_timestamp: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "resolved", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resolved: Option>>, + #[serde(rename = "stickers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub stickers: Option>>, + #[serde(rename = "sticker_items", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_items: Option>>, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "author")] + pub author: Box, + #[serde(rename = "pinned")] + pub pinned: bool, + #[serde(rename = "mention_everyone")] + pub mention_everyone: bool, + #[serde(rename = "tts")] + pub tts: bool, + #[serde(rename = "call", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call: Option>>, + #[serde(rename = "activity", skip_serializing_if = "Option::is_none")] + pub activity: Option, + #[serde(rename = "application", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub application: Option>>, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "interaction", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interaction: Option>>, + #[serde(rename = "nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nonce: Option>>, + #[serde(rename = "webhook_id", skip_serializing_if = "Option::is_none")] + pub webhook_id: Option, + #[serde(rename = "message_reference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_reference: Option>>, + #[serde(rename = "thread", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thread: Option>>, + #[serde(rename = "mention_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mention_channels: Option>>, + #[serde(rename = "role_subscription_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub role_subscription_data: Option>>, + #[serde(rename = "purchase_notification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub purchase_notification: Option>>, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "interaction_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interaction_metadata: Option>>, + #[serde(rename = "message_snapshots", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_snapshots: Option>>, +} + +impl BasicMessageResponse { + pub fn new(r#type: i32, content: String, mentions: Vec, mention_roles: Vec, attachments: Vec, embeds: Vec, timestamp: String, flags: i32, components: Vec, id: String, channel_id: String, author: models::UserResponse, pinned: bool, mention_everyone: bool, tts: bool) -> BasicMessageResponse { + BasicMessageResponse { + r#type, + content, + mentions, + mention_roles, + attachments, + embeds, + timestamp, + edited_timestamp: None, + flags, + components, + resolved: None, + stickers: None, + sticker_items: None, + id, + channel_id, + author: Box::new(author), + pinned, + mention_everyone, + tts, + call: None, + activity: None, + application: None, + application_id: None, + interaction: None, + nonce: None, + webhook_id: None, + message_reference: None, + thread: None, + mention_channels: None, + role_subscription_data: None, + purchase_notification: None, + position: None, + poll: None, + interaction_metadata: None, + message_snapshots: None, + } + } +} + diff --git a/src/models/basic_message_response_components_inner.rs b/src/models/basic_message_response_components_inner.rs new file mode 100644 index 0000000..a9efbbb --- /dev/null +++ b/src/models/basic_message_response_components_inner.rs @@ -0,0 +1,64 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BasicMessageResponseComponentsInner { + ActionRowComponentResponse(Box), + ContainerComponentResponse(Box), + FileComponentResponse(Box), + MediaGalleryComponentResponse(Box), + SectionComponentResponse(Box), + SeparatorComponentResponse(Box), + TextDisplayComponentResponse(Box), +} + +impl Default for BasicMessageResponseComponentsInner { + fn default() -> Self { + Self::ActionRowComponentResponse(Default::default()) + } +} + diff --git a/src/models/basic_message_response_interaction_metadata.rs b/src/models/basic_message_response_interaction_metadata.rs new file mode 100644 index 0000000..8a4f7ba --- /dev/null +++ b/src/models/basic_message_response_interaction_metadata.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BasicMessageResponseInteractionMetadata { + ApplicationCommandInteractionMetadataResponse(Box), + MessageComponentInteractionMetadataResponse(Box), + ModalSubmitInteractionMetadataResponse(Box), +} + +impl Default for BasicMessageResponseInteractionMetadata { + fn default() -> Self { + Self::ApplicationCommandInteractionMetadataResponse(Default::default()) + } +} + diff --git a/src/models/basic_message_response_nonce.rs b/src/models/basic_message_response_nonce.rs new file mode 100644 index 0000000..6ac1ebf --- /dev/null +++ b/src/models/basic_message_response_nonce.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BasicMessageResponseNonce { + Integer(i64), + String(String), +} + +impl Default for BasicMessageResponseNonce { + fn default() -> Self { + Self::Integer(Default::default()) + } +} + diff --git a/src/models/block_message_action.rs b/src/models/block_message_action.rs new file mode 100644 index 0000000..58403b0 --- /dev/null +++ b/src/models/block_message_action.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BlockMessageAction { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub metadata: Option>>, +} + +impl BlockMessageAction { + pub fn new(r#type: i32) -> BlockMessageAction { + BlockMessageAction { + r#type, + metadata: None, + } + } +} + diff --git a/src/models/block_message_action_metadata.rs b/src/models/block_message_action_metadata.rs new file mode 100644 index 0000000..fda5f73 --- /dev/null +++ b/src/models/block_message_action_metadata.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BlockMessageActionMetadata { + #[serde(rename = "custom_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_message: Option>, +} + +impl BlockMessageActionMetadata { + pub fn new() -> BlockMessageActionMetadata { + BlockMessageActionMetadata { + custom_message: None, + } + } +} + diff --git a/src/models/block_message_action_metadata_response.rs b/src/models/block_message_action_metadata_response.rs new file mode 100644 index 0000000..88c14a7 --- /dev/null +++ b/src/models/block_message_action_metadata_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BlockMessageActionMetadataResponse { + #[serde(rename = "custom_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_message: Option>, +} + +impl BlockMessageActionMetadataResponse { + pub fn new() -> BlockMessageActionMetadataResponse { + BlockMessageActionMetadataResponse { + custom_message: None, + } + } +} + diff --git a/src/models/block_message_action_response.rs b/src/models/block_message_action_response.rs new file mode 100644 index 0000000..a2ce3fd --- /dev/null +++ b/src/models/block_message_action_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BlockMessageActionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: Box, +} + +impl BlockMessageActionResponse { + pub fn new(r#type: i32, metadata: models::BlockMessageActionMetadataResponse) -> BlockMessageActionResponse { + BlockMessageActionResponse { + r#type, + metadata: Box::new(metadata), + } + } +} + diff --git a/src/models/bot_account_patch_request.rs b/src/models/bot_account_patch_request.rs new file mode 100644 index 0000000..0baa077 --- /dev/null +++ b/src/models/bot_account_patch_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BotAccountPatchRequest { + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, +} + +impl BotAccountPatchRequest { + pub fn new(username: String) -> BotAccountPatchRequest { + BotAccountPatchRequest { + username, + avatar: None, + banner: None, + } + } +} + diff --git a/src/models/bulk_ban_users_from_guild_request.rs b/src/models/bulk_ban_users_from_guild_request.rs new file mode 100644 index 0000000..413a1a0 --- /dev/null +++ b/src/models/bulk_ban_users_from_guild_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkBanUsersFromGuildRequest { + #[serde(rename = "user_ids")] + pub user_ids: Vec, + #[serde(rename = "delete_message_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub delete_message_seconds: Option>, +} + +impl BulkBanUsersFromGuildRequest { + pub fn new(user_ids: Vec) -> BulkBanUsersFromGuildRequest { + BulkBanUsersFromGuildRequest { + user_ids, + delete_message_seconds: None, + } + } +} + diff --git a/src/models/bulk_ban_users_response.rs b/src/models/bulk_ban_users_response.rs new file mode 100644 index 0000000..94d10fe --- /dev/null +++ b/src/models/bulk_ban_users_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkBanUsersResponse { + #[serde(rename = "banned_users")] + pub banned_users: Vec, + #[serde(rename = "failed_users")] + pub failed_users: Vec, +} + +impl BulkBanUsersResponse { + pub fn new(banned_users: Vec, failed_users: Vec) -> BulkBanUsersResponse { + BulkBanUsersResponse { + banned_users, + failed_users, + } + } +} + diff --git a/src/models/bulk_delete_messages_request.rs b/src/models/bulk_delete_messages_request.rs new file mode 100644 index 0000000..1387b17 --- /dev/null +++ b/src/models/bulk_delete_messages_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkDeleteMessagesRequest { + #[serde(rename = "messages")] + pub messages: Vec, +} + +impl BulkDeleteMessagesRequest { + pub fn new(messages: Vec) -> BulkDeleteMessagesRequest { + BulkDeleteMessagesRequest { + messages, + } + } +} + diff --git a/src/models/bulk_lobby_member_request.rs b/src/models/bulk_lobby_member_request.rs new file mode 100644 index 0000000..50ba105 --- /dev/null +++ b/src/models/bulk_lobby_member_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkLobbyMemberRequest { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "remove_member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub remove_member: Option>, +} + +impl BulkLobbyMemberRequest { + pub fn new(id: String) -> BulkLobbyMemberRequest { + BulkLobbyMemberRequest { + id, + metadata: None, + flags: None, + remove_member: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum FlagsEnum { + #[serde(rename = "1")] + Variant1, +} + +impl Default for FlagsEnum { + fn default() -> FlagsEnum { + Self::Variant1 + } +} + diff --git a/src/models/bulk_update_guild_channels_request_inner.rs b/src/models/bulk_update_guild_channels_request_inner.rs new file mode 100644 index 0000000..bf48537 --- /dev/null +++ b/src/models/bulk_update_guild_channels_request_inner.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkUpdateGuildChannelsRequestInner { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "lock_permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lock_permissions: Option>, +} + +impl BulkUpdateGuildChannelsRequestInner { + pub fn new() -> BulkUpdateGuildChannelsRequestInner { + BulkUpdateGuildChannelsRequestInner { + id: None, + position: None, + parent_id: None, + lock_permissions: None, + } + } +} + diff --git a/src/models/bulk_update_guild_roles_request_inner.rs b/src/models/bulk_update_guild_roles_request_inner.rs new file mode 100644 index 0000000..c8c9a0f --- /dev/null +++ b/src/models/bulk_update_guild_roles_request_inner.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkUpdateGuildRolesRequestInner { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, +} + +impl BulkUpdateGuildRolesRequestInner { + pub fn new() -> BulkUpdateGuildRolesRequestInner { + BulkUpdateGuildRolesRequestInner { + id: None, + position: None, + } + } +} + diff --git a/src/models/button_component_for_message_request.rs b/src/models/button_component_for_message_request.rs new file mode 100644 index 0000000..c3c98d6 --- /dev/null +++ b/src/models/button_component_for_message_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ButtonComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_id: Option>, + #[serde(rename = "style", deserialize_with = "Option::deserialize")] + pub style: Option, + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "sku_id", skip_serializing_if = "Option::is_none")] + pub sku_id: Option, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, +} + +impl ButtonComponentForMessageRequest { + pub fn new(r#type: i32, style: Option) -> ButtonComponentForMessageRequest { + ButtonComponentForMessageRequest { + r#type, + custom_id: None, + style, + label: None, + disabled: None, + url: None, + sku_id: None, + emoji: None, + } + } +} + diff --git a/src/models/button_component_response.rs b/src/models/button_component_response.rs new file mode 100644 index 0000000..e8c2766 --- /dev/null +++ b/src/models/button_component_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ButtonComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_id: Option>, + #[serde(rename = "style", deserialize_with = "Option::deserialize")] + pub style: Option, + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "sku_id", skip_serializing_if = "Option::is_none")] + pub sku_id: Option, +} + +impl ButtonComponentResponse { + pub fn new(r#type: i32, id: i32, style: Option) -> ButtonComponentResponse { + ButtonComponentResponse { + r#type, + id, + custom_id: None, + style, + label: None, + disabled: None, + emoji: None, + url: None, + sku_id: None, + } + } +} + diff --git a/src/models/channel_follower_response.rs b/src/models/channel_follower_response.rs new file mode 100644 index 0000000..eeffb2d --- /dev/null +++ b/src/models/channel_follower_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelFollowerResponse { + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "webhook_id")] + pub webhook_id: String, +} + +impl ChannelFollowerResponse { + pub fn new(channel_id: String, webhook_id: String) -> ChannelFollowerResponse { + ChannelFollowerResponse { + channel_id, + webhook_id, + } + } +} + diff --git a/src/models/channel_follower_webhook_response.rs b/src/models/channel_follower_webhook_response.rs new file mode 100644 index 0000000..78339fb --- /dev/null +++ b/src/models/channel_follower_webhook_response.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelFollowerWebhookResponse { + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "source_guild", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub source_guild: Option>>, + #[serde(rename = "source_channel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub source_channel: Option>>, +} + +impl ChannelFollowerWebhookResponse { + pub fn new(id: String, name: String, r#type: i32) -> ChannelFollowerWebhookResponse { + ChannelFollowerWebhookResponse { + application_id: None, + avatar: None, + channel_id: None, + guild_id: None, + id, + name, + r#type, + user: None, + source_guild: None, + source_channel: None, + } + } +} + diff --git a/src/models/channel_permission_overwrite_request.rs b/src/models/channel_permission_overwrite_request.rs new file mode 100644 index 0000000..9ea1767 --- /dev/null +++ b/src/models/channel_permission_overwrite_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelPermissionOverwriteRequest { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "allow", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allow: Option>, + #[serde(rename = "deny", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deny: Option>, +} + +impl ChannelPermissionOverwriteRequest { + pub fn new(id: String) -> ChannelPermissionOverwriteRequest { + ChannelPermissionOverwriteRequest { + id, + r#type: None, + allow: None, + deny: None, + } + } +} + diff --git a/src/models/channel_permission_overwrite_response.rs b/src/models/channel_permission_overwrite_response.rs new file mode 100644 index 0000000..c2c5eb5 --- /dev/null +++ b/src/models/channel_permission_overwrite_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelPermissionOverwriteResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "allow")] + pub allow: String, + #[serde(rename = "deny")] + pub deny: String, +} + +impl ChannelPermissionOverwriteResponse { + pub fn new(id: String, r#type: Option, allow: String, deny: String) -> ChannelPermissionOverwriteResponse { + ChannelPermissionOverwriteResponse { + id, + r#type, + allow, + deny, + } + } +} + diff --git a/src/models/channel_select_component_for_message_request.rs b/src/models/channel_select_component_for_message_request.rs new file mode 100644 index 0000000..11bbea9 --- /dev/null +++ b/src/models/channel_select_component_for_message_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelSelectComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, + #[serde(rename = "channel_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel_types: Option>>, +} + +impl ChannelSelectComponentForMessageRequest { + pub fn new(r#type: i32, custom_id: String) -> ChannelSelectComponentForMessageRequest { + ChannelSelectComponentForMessageRequest { + r#type, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + channel_types: None, + } + } +} + diff --git a/src/models/channel_select_component_response.rs b/src/models/channel_select_component_response.rs new file mode 100644 index 0000000..7500060 --- /dev/null +++ b/src/models/channel_select_component_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelSelectComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "channel_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel_types: Option>>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl ChannelSelectComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String) -> ChannelSelectComponentResponse { + ChannelSelectComponentResponse { + r#type, + id, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + channel_types: None, + default_values: None, + } + } +} + diff --git a/src/models/channel_select_default_value.rs b/src/models/channel_select_default_value.rs new file mode 100644 index 0000000..8190a5c --- /dev/null +++ b/src/models/channel_select_default_value.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelSelectDefaultValue { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl ChannelSelectDefaultValue { + pub fn new(r#type: Option, id: String) -> ChannelSelectDefaultValue { + ChannelSelectDefaultValue { + r#type, + id, + } + } +} + diff --git a/src/models/channel_select_default_value_response.rs b/src/models/channel_select_default_value_response.rs new file mode 100644 index 0000000..b64f3f4 --- /dev/null +++ b/src/models/channel_select_default_value_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ChannelSelectDefaultValueResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl ChannelSelectDefaultValueResponse { + pub fn new(r#type: Option, id: String) -> ChannelSelectDefaultValueResponse { + ChannelSelectDefaultValueResponse { + r#type, + id, + } + } +} + diff --git a/src/models/command_permission_response.rs b/src/models/command_permission_response.rs new file mode 100644 index 0000000..0516d86 --- /dev/null +++ b/src/models/command_permission_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CommandPermissionResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "permission")] + pub permission: bool, +} + +impl CommandPermissionResponse { + pub fn new(id: String, r#type: i32, permission: bool) -> CommandPermissionResponse { + CommandPermissionResponse { + id, + r#type, + permission, + } + } +} + diff --git a/src/models/command_permissions_response.rs b/src/models/command_permissions_response.rs new file mode 100644 index 0000000..7e59b9e --- /dev/null +++ b/src/models/command_permissions_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CommandPermissionsResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "application_id")] + pub application_id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "permissions")] + pub permissions: Vec, +} + +impl CommandPermissionsResponse { + pub fn new(id: String, application_id: String, guild_id: String, permissions: Vec) -> CommandPermissionsResponse { + CommandPermissionsResponse { + id, + application_id, + guild_id, + permissions, + } + } +} + diff --git a/src/models/component_emoji_for_message_request.rs b/src/models/component_emoji_for_message_request.rs new file mode 100644 index 0000000..527693c --- /dev/null +++ b/src/models/component_emoji_for_message_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ComponentEmojiForMessageRequest { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name")] + pub name: String, +} + +impl ComponentEmojiForMessageRequest { + pub fn new(name: String) -> ComponentEmojiForMessageRequest { + ComponentEmojiForMessageRequest { + id: None, + name, + } + } +} + diff --git a/src/models/component_emoji_response.rs b/src/models/component_emoji_response.rs new file mode 100644 index 0000000..e9c3822 --- /dev/null +++ b/src/models/component_emoji_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ComponentEmojiResponse { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub animated: Option>, +} + +impl ComponentEmojiResponse { + pub fn new(name: String) -> ComponentEmojiResponse { + ComponentEmojiResponse { + id: None, + name, + animated: None, + } + } +} + diff --git a/src/models/connected_account_guild_response.rs b/src/models/connected_account_guild_response.rs new file mode 100644 index 0000000..5827d0b --- /dev/null +++ b/src/models/connected_account_guild_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ConnectedAccountGuildResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "name")] + pub name: String, +} + +impl ConnectedAccountGuildResponse { + pub fn new(id: String, name: String) -> ConnectedAccountGuildResponse { + ConnectedAccountGuildResponse { + id, + icon: None, + name, + } + } +} + diff --git a/src/models/connected_account_integration_response.rs b/src/models/connected_account_integration_response.rs new file mode 100644 index 0000000..458c9fc --- /dev/null +++ b/src/models/connected_account_integration_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ConnectedAccountIntegrationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "account")] + pub account: Box, + #[serde(rename = "guild")] + pub guild: Box, +} + +impl ConnectedAccountIntegrationResponse { + pub fn new(id: String, r#type: Option, account: models::AccountResponse, guild: models::ConnectedAccountGuildResponse) -> ConnectedAccountIntegrationResponse { + ConnectedAccountIntegrationResponse { + id, + r#type, + account: Box::new(account), + guild: Box::new(guild), + } + } +} + diff --git a/src/models/connected_account_response.rs b/src/models/connected_account_response.rs new file mode 100644 index 0000000..9846157 --- /dev/null +++ b/src/models/connected_account_response.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ConnectedAccountResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "friend_sync")] + pub friend_sync: bool, + #[serde(rename = "integrations", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub integrations: Option>>, + #[serde(rename = "show_activity")] + pub show_activity: bool, + #[serde(rename = "two_way_link")] + pub two_way_link: bool, + #[serde(rename = "verified")] + pub verified: bool, + #[serde(rename = "visibility", deserialize_with = "Option::deserialize")] + pub visibility: Option, + #[serde(rename = "revoked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub revoked: Option>, +} + +impl ConnectedAccountResponse { + pub fn new(id: String, r#type: Option, friend_sync: bool, show_activity: bool, two_way_link: bool, verified: bool, visibility: Option) -> ConnectedAccountResponse { + ConnectedAccountResponse { + id, + name: None, + r#type, + friend_sync, + integrations: None, + show_activity, + two_way_link, + verified, + visibility, + revoked: None, + } + } +} + diff --git a/src/models/container_component_for_message_request.rs b/src/models/container_component_for_message_request.rs new file mode 100644 index 0000000..ac86435 --- /dev/null +++ b/src/models/container_component_for_message_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ContainerComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "accent_color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub accent_color: Option>, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "spoiler", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub spoiler: Option>, +} + +impl ContainerComponentForMessageRequest { + pub fn new(r#type: i32, components: Vec) -> ContainerComponentForMessageRequest { + ContainerComponentForMessageRequest { + r#type, + accent_color: None, + components, + spoiler: None, + } + } +} + diff --git a/src/models/container_component_for_message_request_components_inner.rs b/src/models/container_component_for_message_request_components_inner.rs new file mode 100644 index 0000000..4facdd4 --- /dev/null +++ b/src/models/container_component_for_message_request_components_inner.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ContainerComponentForMessageRequestComponentsInner { + ActionRowComponentForMessageRequest(Box), + FileComponentForMessageRequest(Box), + MediaGalleryComponentForMessageRequest(Box), + SectionComponentForMessageRequest(Box), + SeparatorComponentForMessageRequest(Box), + TextDisplayComponentForMessageRequest(Box), +} + +impl Default for ContainerComponentForMessageRequestComponentsInner { + fn default() -> Self { + Self::ActionRowComponentForMessageRequest(Default::default()) + } +} + diff --git a/src/models/container_component_response.rs b/src/models/container_component_response.rs new file mode 100644 index 0000000..6f7f5a7 --- /dev/null +++ b/src/models/container_component_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ContainerComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "accent_color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub accent_color: Option>, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "spoiler")] + pub spoiler: bool, +} + +impl ContainerComponentResponse { + pub fn new(r#type: i32, id: i32, components: Vec, spoiler: bool) -> ContainerComponentResponse { + ContainerComponentResponse { + r#type, + id, + accent_color: None, + components, + spoiler, + } + } +} + diff --git a/src/models/container_component_response_components_inner.rs b/src/models/container_component_response_components_inner.rs new file mode 100644 index 0000000..9012ddc --- /dev/null +++ b/src/models/container_component_response_components_inner.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ContainerComponentResponseComponentsInner { + ActionRowComponentResponse(Box), + FileComponentResponse(Box), + MediaGalleryComponentResponse(Box), + SectionComponentResponse(Box), + SeparatorComponentResponse(Box), + TextDisplayComponentResponse(Box), +} + +impl Default for ContainerComponentResponseComponentsInner { + fn default() -> Self { + Self::ActionRowComponentResponse(Default::default()) + } +} + diff --git a/src/models/create_application_emoji_request.rs b/src/models/create_application_emoji_request.rs new file mode 100644 index 0000000..9f638c8 --- /dev/null +++ b/src/models/create_application_emoji_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateApplicationEmojiRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "image")] + pub image: String, +} + +impl CreateApplicationEmojiRequest { + pub fn new(name: String, image: String) -> CreateApplicationEmojiRequest { + CreateApplicationEmojiRequest { + name, + image, + } + } +} + diff --git a/src/models/create_auto_moderation_rule_200_response.rs b/src/models/create_auto_moderation_rule_200_response.rs new file mode 100644 index 0000000..d277024 --- /dev/null +++ b/src/models/create_auto_moderation_rule_200_response.rs @@ -0,0 +1,62 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAutoModerationRule200Response { + DefaultKeywordRuleResponse(Box), + KeywordRuleResponse(Box), + MlSpamRuleResponse(Box), + MentionSpamRuleResponse(Box), + SpamLinkRuleResponse(Box), +} + +impl Default for CreateAutoModerationRule200Response { + fn default() -> Self { + Self::DefaultKeywordRuleResponse(Default::default()) + } +} + diff --git a/src/models/create_auto_moderation_rule_request.rs b/src/models/create_auto_moderation_rule_request.rs new file mode 100644 index 0000000..8684b9b --- /dev/null +++ b/src/models/create_auto_moderation_rule_request.rs @@ -0,0 +1,61 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAutoModerationRuleRequest { + DefaultKeywordListUpsertRequest(Box), + KeywordUpsertRequest(Box), + MlSpamUpsertRequest(Box), + MentionSpamUpsertRequest(Box), +} + +impl Default for CreateAutoModerationRuleRequest { + fn default() -> Self { + Self::DefaultKeywordListUpsertRequest(Default::default()) + } +} + diff --git a/src/models/create_channel_invite_request.rs b/src/models/create_channel_invite_request.rs new file mode 100644 index 0000000..0db6971 --- /dev/null +++ b/src/models/create_channel_invite_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateChannelInviteRequest { + #[serde(rename = "max_age", skip_serializing_if = "Option::is_none")] + pub max_age: Option, + #[serde(rename = "temporary", skip_serializing_if = "Option::is_none")] + pub temporary: Option, + #[serde(rename = "max_uses", skip_serializing_if = "Option::is_none")] + pub max_uses: Option, + #[serde(rename = "unique", skip_serializing_if = "Option::is_none")] + pub unique: Option, + #[serde(rename = "target_user_id", skip_serializing_if = "Option::is_none")] + pub target_user_id: Option, + #[serde(rename = "target_application_id", skip_serializing_if = "Option::is_none")] + pub target_application_id: Option, + #[serde(rename = "target_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_type: Option>, +} + +impl CreateChannelInviteRequest { + pub fn new() -> CreateChannelInviteRequest { + CreateChannelInviteRequest { + max_age: None, + temporary: None, + max_uses: None, + unique: None, + target_user_id: None, + target_application_id: None, + target_type: None, + } + } +} + diff --git a/src/models/create_entitlement_request_data.rs b/src/models/create_entitlement_request_data.rs new file mode 100644 index 0000000..ee94d95 --- /dev/null +++ b/src/models/create_entitlement_request_data.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateEntitlementRequestData { + #[serde(rename = "sku_id")] + pub sku_id: String, + #[serde(rename = "owner_id")] + pub owner_id: String, + #[serde(rename = "owner_type")] + pub owner_type: i32, +} + +impl CreateEntitlementRequestData { + pub fn new(sku_id: String, owner_id: String, owner_type: i32) -> CreateEntitlementRequestData { + CreateEntitlementRequestData { + sku_id, + owner_id, + owner_type, + } + } +} + diff --git a/src/models/create_forum_thread_request.rs b/src/models/create_forum_thread_request.rs new file mode 100644 index 0000000..b5cb3de --- /dev/null +++ b/src/models/create_forum_thread_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateForumThreadRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "applied_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>>, + #[serde(rename = "message")] + pub message: Box, +} + +impl CreateForumThreadRequest { + pub fn new(name: String, message: models::BaseCreateMessageCreateRequest) -> CreateForumThreadRequest { + CreateForumThreadRequest { + name, + auto_archive_duration: None, + rate_limit_per_user: None, + applied_tags: None, + message: Box::new(message), + } + } +} + diff --git a/src/models/create_group_dm_invite_request.rs b/src/models/create_group_dm_invite_request.rs new file mode 100644 index 0000000..2092bf3 --- /dev/null +++ b/src/models/create_group_dm_invite_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGroupDmInviteRequest { + #[serde(rename = "max_age", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_age: Option>, +} + +impl CreateGroupDmInviteRequest { + pub fn new() -> CreateGroupDmInviteRequest { + CreateGroupDmInviteRequest { + max_age: None, + } + } +} + diff --git a/src/models/create_guild_channel_request.rs b/src/models/create_guild_channel_request.rs new file mode 100644 index 0000000..d569fcd --- /dev/null +++ b/src/models/create_guild_channel_request.rs @@ -0,0 +1,114 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildChannelRequest { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "topic", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub topic: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "permission_overwrites", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permission_overwrites: Option>>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "default_reaction_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>>, + #[serde(rename = "default_thread_rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option>, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "available_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>>, +} + +impl CreateGuildChannelRequest { + pub fn new(name: String) -> CreateGuildChannelRequest { + CreateGuildChannelRequest { + r#type: None, + name, + position: None, + topic: None, + bitrate: None, + user_limit: None, + nsfw: None, + rate_limit_per_user: None, + parent_id: None, + permission_overwrites: None, + rtc_region: None, + video_quality_mode: None, + default_auto_archive_duration: None, + default_reaction_emoji: None, + default_thread_rate_limit_per_user: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + available_tags: None, + } + } +} + diff --git a/src/models/create_guild_emoji_request.rs b/src/models/create_guild_emoji_request.rs new file mode 100644 index 0000000..e952eee --- /dev/null +++ b/src/models/create_guild_emoji_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildEmojiRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "image")] + pub image: String, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, +} + +impl CreateGuildEmojiRequest { + pub fn new(name: String, image: String) -> CreateGuildEmojiRequest { + CreateGuildEmojiRequest { + name, + image, + roles: None, + } + } +} + diff --git a/src/models/create_guild_from_template_request.rs b/src/models/create_guild_from_template_request.rs new file mode 100644 index 0000000..93c453f --- /dev/null +++ b/src/models/create_guild_from_template_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildFromTemplateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, +} + +impl CreateGuildFromTemplateRequest { + pub fn new(name: String) -> CreateGuildFromTemplateRequest { + CreateGuildFromTemplateRequest { + name, + icon: None, + } + } +} + diff --git a/src/models/create_guild_invite_request.rs b/src/models/create_guild_invite_request.rs new file mode 100644 index 0000000..3b56543 --- /dev/null +++ b/src/models/create_guild_invite_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildInviteRequest { + #[serde(rename = "max_age", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_age: Option>, + #[serde(rename = "temporary", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub temporary: Option>, + #[serde(rename = "max_uses", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_uses: Option>, + #[serde(rename = "unique", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unique: Option>, + #[serde(rename = "target_user_id", skip_serializing_if = "Option::is_none")] + pub target_user_id: Option, + #[serde(rename = "target_application_id", skip_serializing_if = "Option::is_none")] + pub target_application_id: Option, + #[serde(rename = "target_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_type: Option>, +} + +impl CreateGuildInviteRequest { + pub fn new() -> CreateGuildInviteRequest { + CreateGuildInviteRequest { + max_age: None, + temporary: None, + max_uses: None, + unique: None, + target_user_id: None, + target_application_id: None, + target_type: None, + } + } +} + diff --git a/src/models/create_guild_request_channel_item.rs b/src/models/create_guild_request_channel_item.rs new file mode 100644 index 0000000..35b0b13 --- /dev/null +++ b/src/models/create_guild_request_channel_item.rs @@ -0,0 +1,117 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildRequestChannelItem { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "topic", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub topic: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "permission_overwrites", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permission_overwrites: Option>>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "default_reaction_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>>, + #[serde(rename = "default_thread_rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option>, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "available_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>>, +} + +impl CreateGuildRequestChannelItem { + pub fn new(name: String) -> CreateGuildRequestChannelItem { + CreateGuildRequestChannelItem { + r#type: None, + name, + position: None, + topic: None, + bitrate: None, + user_limit: None, + nsfw: None, + rate_limit_per_user: None, + parent_id: None, + permission_overwrites: None, + rtc_region: None, + video_quality_mode: None, + default_auto_archive_duration: None, + default_reaction_emoji: None, + default_thread_rate_limit_per_user: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + id: None, + available_tags: None, + } + } +} + diff --git a/src/models/create_guild_request_role_item.rs b/src/models/create_guild_request_role_item.rs new file mode 100644 index 0000000..02848f9 --- /dev/null +++ b/src/models/create_guild_request_role_item.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildRequestRoleItem { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, + #[serde(rename = "color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub color: Option>, + #[serde(rename = "hoist", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub hoist: Option>, + #[serde(rename = "mentionable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mentionable: Option>, + #[serde(rename = "unicode_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unicode_emoji: Option>, +} + +impl CreateGuildRequestRoleItem { + pub fn new(id: i32) -> CreateGuildRequestRoleItem { + CreateGuildRequestRoleItem { + id, + name: None, + permissions: None, + color: None, + hoist: None, + mentionable: None, + unicode_emoji: None, + } + } +} + diff --git a/src/models/create_guild_role_request.rs b/src/models/create_guild_role_request.rs new file mode 100644 index 0000000..9454009 --- /dev/null +++ b/src/models/create_guild_role_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildRoleRequest { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, + #[serde(rename = "color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub color: Option>, + #[serde(rename = "hoist", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub hoist: Option>, + #[serde(rename = "mentionable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mentionable: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "unicode_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unicode_emoji: Option>, +} + +impl CreateGuildRoleRequest { + pub fn new() -> CreateGuildRoleRequest { + CreateGuildRoleRequest { + name: None, + permissions: None, + color: None, + hoist: None, + mentionable: None, + icon: None, + unicode_emoji: None, + } + } +} + diff --git a/src/models/create_guild_scheduled_event_request.rs b/src/models/create_guild_scheduled_event_request.rs new file mode 100644 index 0000000..c6c7e9f --- /dev/null +++ b/src/models/create_guild_scheduled_event_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateGuildScheduledEventRequest { + ExternalScheduledEventCreateRequest(Box), + StageScheduledEventCreateRequest(Box), + VoiceScheduledEventCreateRequest(Box), +} + +impl Default for CreateGuildScheduledEventRequest { + fn default() -> Self { + Self::ExternalScheduledEventCreateRequest(Default::default()) + } +} + diff --git a/src/models/create_guild_template_request.rs b/src/models/create_guild_template_request.rs new file mode 100644 index 0000000..3c74291 --- /dev/null +++ b/src/models/create_guild_template_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateGuildTemplateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl CreateGuildTemplateRequest { + pub fn new(name: String) -> CreateGuildTemplateRequest { + CreateGuildTemplateRequest { + name, + description: None, + } + } +} + diff --git a/src/models/create_interaction_response_request.rs b/src/models/create_interaction_response_request.rs new file mode 100644 index 0000000..fde3b77 --- /dev/null +++ b/src/models/create_interaction_response_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateInteractionResponseRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "data")] + pub data: Box, +} + +impl CreateInteractionResponseRequest { + pub fn new(r#type: Option, data: models::IncomingWebhookUpdateForInteractionCallbackRequestPartial) -> CreateInteractionResponseRequest { + CreateInteractionResponseRequest { + r#type, + data: Box::new(data), + } + } +} + diff --git a/src/models/create_lobby_request.rs b/src/models/create_lobby_request.rs new file mode 100644 index 0000000..88e334f --- /dev/null +++ b/src/models/create_lobby_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateLobbyRequest { + #[serde(rename = "idle_timeout_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub idle_timeout_seconds: Option>, + #[serde(rename = "members", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub members: Option>>, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, +} + +impl CreateLobbyRequest { + pub fn new() -> CreateLobbyRequest { + CreateLobbyRequest { + idle_timeout_seconds: None, + members: None, + metadata: None, + } + } +} + diff --git a/src/models/create_message_interaction_callback_request.rs b/src/models/create_message_interaction_callback_request.rs new file mode 100644 index 0000000..3286883 --- /dev/null +++ b/src/models/create_message_interaction_callback_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateMessageInteractionCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub data: Option>>, +} + +impl CreateMessageInteractionCallbackRequest { + pub fn new(r#type: Option) -> CreateMessageInteractionCallbackRequest { + CreateMessageInteractionCallbackRequest { + r#type, + data: None, + } + } +} + diff --git a/src/models/create_message_interaction_callback_response.rs b/src/models/create_message_interaction_callback_response.rs new file mode 100644 index 0000000..53b4ae8 --- /dev/null +++ b/src/models/create_message_interaction_callback_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateMessageInteractionCallbackResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "message")] + pub message: Box, +} + +impl CreateMessageInteractionCallbackResponse { + pub fn new(r#type: Option, message: models::MessageResponse) -> CreateMessageInteractionCallbackResponse { + CreateMessageInteractionCallbackResponse { + r#type, + message: Box::new(message), + } + } +} + diff --git a/src/models/create_or_join_lobby_request.rs b/src/models/create_or_join_lobby_request.rs new file mode 100644 index 0000000..fb8a984 --- /dev/null +++ b/src/models/create_or_join_lobby_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateOrJoinLobbyRequest { + #[serde(rename = "idle_timeout_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub idle_timeout_seconds: Option>, + #[serde(rename = "lobby_metadata", skip_serializing_if = "Option::is_none")] + pub lobby_metadata: Option>, + #[serde(rename = "member_metadata", skip_serializing_if = "Option::is_none")] + pub member_metadata: Option>, + #[serde(rename = "secret")] + pub secret: String, +} + +impl CreateOrJoinLobbyRequest { + pub fn new(secret: String) -> CreateOrJoinLobbyRequest { + CreateOrJoinLobbyRequest { + idle_timeout_seconds: None, + lobby_metadata: None, + member_metadata: None, + secret, + } + } +} + diff --git a/src/models/create_or_update_thread_tag_request.rs b/src/models/create_or_update_thread_tag_request.rs new file mode 100644 index 0000000..46f5912 --- /dev/null +++ b/src/models/create_or_update_thread_tag_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateOrUpdateThreadTagRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "moderated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub moderated: Option>, +} + +impl CreateOrUpdateThreadTagRequest { + pub fn new(name: String) -> CreateOrUpdateThreadTagRequest { + CreateOrUpdateThreadTagRequest { + name, + emoji_id: None, + emoji_name: None, + moderated: None, + } + } +} + diff --git a/src/models/create_private_channel_request.rs b/src/models/create_private_channel_request.rs new file mode 100644 index 0000000..e3bfe34 --- /dev/null +++ b/src/models/create_private_channel_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreatePrivateChannelRequest { + #[serde(rename = "recipient_id", skip_serializing_if = "Option::is_none")] + pub recipient_id: Option, + #[serde(rename = "access_tokens", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub access_tokens: Option>>, + #[serde(rename = "nicks", skip_serializing_if = "Option::is_none")] + pub nicks: Option>, +} + +impl CreatePrivateChannelRequest { + pub fn new() -> CreatePrivateChannelRequest { + CreatePrivateChannelRequest { + recipient_id: None, + access_tokens: None, + nicks: None, + } + } +} + diff --git a/src/models/create_stage_instance_request.rs b/src/models/create_stage_instance_request.rs new file mode 100644 index 0000000..509a8e5 --- /dev/null +++ b/src/models/create_stage_instance_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateStageInstanceRequest { + #[serde(rename = "topic")] + pub topic: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "privacy_level", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option, + #[serde(rename = "guild_scheduled_event_id", skip_serializing_if = "Option::is_none")] + pub guild_scheduled_event_id: Option, + #[serde(rename = "send_start_notification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub send_start_notification: Option>, +} + +impl CreateStageInstanceRequest { + pub fn new(topic: String, channel_id: String) -> CreateStageInstanceRequest { + CreateStageInstanceRequest { + topic, + channel_id, + privacy_level: None, + guild_scheduled_event_id: None, + send_start_notification: None, + } + } +} + diff --git a/src/models/create_text_thread_with_message_request.rs b/src/models/create_text_thread_with_message_request.rs new file mode 100644 index 0000000..6ac341c --- /dev/null +++ b/src/models/create_text_thread_with_message_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateTextThreadWithMessageRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, +} + +impl CreateTextThreadWithMessageRequest { + pub fn new(name: String) -> CreateTextThreadWithMessageRequest { + CreateTextThreadWithMessageRequest { + name, + auto_archive_duration: None, + rate_limit_per_user: None, + } + } +} + diff --git a/src/models/create_text_thread_without_message_request.rs b/src/models/create_text_thread_without_message_request.rs new file mode 100644 index 0000000..af7c89c --- /dev/null +++ b/src/models/create_text_thread_without_message_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateTextThreadWithoutMessageRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "invitable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub invitable: Option>, +} + +impl CreateTextThreadWithoutMessageRequest { + pub fn new(name: String) -> CreateTextThreadWithoutMessageRequest { + CreateTextThreadWithoutMessageRequest { + name, + auto_archive_duration: None, + rate_limit_per_user: None, + r#type: None, + invitable: None, + } + } +} + diff --git a/src/models/create_thread_request.rs b/src/models/create_thread_request.rs new file mode 100644 index 0000000..50e980c --- /dev/null +++ b/src/models/create_thread_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateThreadRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "rate_limit_per_user", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option, + #[serde(rename = "applied_tags", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>, + #[serde(rename = "message")] + pub message: Box, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + #[serde(rename = "invitable", skip_serializing_if = "Option::is_none")] + pub invitable: Option, +} + +impl CreateThreadRequest { + pub fn new(name: String, message: models::BaseCreateMessageCreateRequest) -> CreateThreadRequest { + CreateThreadRequest { + name, + auto_archive_duration: None, + rate_limit_per_user: None, + applied_tags: None, + message: Box::new(message), + r#type: None, + invitable: None, + } + } +} + diff --git a/src/models/create_webhook_request.rs b/src/models/create_webhook_request.rs new file mode 100644 index 0000000..55eb112 --- /dev/null +++ b/src/models/create_webhook_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateWebhookRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, +} + +impl CreateWebhookRequest { + pub fn new(name: String) -> CreateWebhookRequest { + CreateWebhookRequest { + name, + avatar: None, + } + } +} + diff --git a/src/models/created_thread_response.rs b/src/models/created_thread_response.rs new file mode 100644 index 0000000..1c5f05a --- /dev/null +++ b/src/models/created_thread_response.rs @@ -0,0 +1,120 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreatedThreadResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "last_message_id", skip_serializing_if = "Option::is_none")] + pub last_message_id: Option, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "last_pin_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_pin_timestamp: Option>, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, + #[serde(rename = "owner_id")] + pub owner_id: String, + #[serde(rename = "thread_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thread_metadata: Option>>, + #[serde(rename = "message_count")] + pub message_count: i32, + #[serde(rename = "member_count")] + pub member_count: i32, + #[serde(rename = "total_message_sent")] + pub total_message_sent: i32, + #[serde(rename = "applied_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>>, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, +} + +impl CreatedThreadResponse { + pub fn new(id: String, r#type: i32, flags: i32, guild_id: String, name: String, owner_id: String, message_count: i32, member_count: i32, total_message_sent: i32) -> CreatedThreadResponse { + CreatedThreadResponse { + id, + r#type, + last_message_id: None, + flags, + last_pin_timestamp: None, + guild_id, + name, + parent_id: None, + rate_limit_per_user: None, + bitrate: None, + user_limit: None, + rtc_region: None, + video_quality_mode: None, + permissions: None, + owner_id, + thread_metadata: None, + message_count, + member_count, + total_message_sent, + applied_tags: None, + member: None, + } + } +} + diff --git a/src/models/default_keyword_list_trigger_metadata.rs b/src/models/default_keyword_list_trigger_metadata.rs new file mode 100644 index 0000000..df24c5c --- /dev/null +++ b/src/models/default_keyword_list_trigger_metadata.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultKeywordListTriggerMetadata { + #[serde(rename = "allow_list", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allow_list: Option>>, + #[serde(rename = "presets", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub presets: Option>>, +} + +impl DefaultKeywordListTriggerMetadata { + pub fn new() -> DefaultKeywordListTriggerMetadata { + DefaultKeywordListTriggerMetadata { + allow_list: None, + presets: None, + } + } +} + diff --git a/src/models/default_keyword_list_trigger_metadata_response.rs b/src/models/default_keyword_list_trigger_metadata_response.rs new file mode 100644 index 0000000..3024f1e --- /dev/null +++ b/src/models/default_keyword_list_trigger_metadata_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultKeywordListTriggerMetadataResponse { + #[serde(rename = "allow_list")] + pub allow_list: Vec, + #[serde(rename = "presets")] + pub presets: Vec, +} + +impl DefaultKeywordListTriggerMetadataResponse { + pub fn new(allow_list: Vec, presets: Vec) -> DefaultKeywordListTriggerMetadataResponse { + DefaultKeywordListTriggerMetadataResponse { + allow_list, + presets, + } + } +} + diff --git a/src/models/default_keyword_list_upsert_request.rs b/src/models/default_keyword_list_upsert_request.rs new file mode 100644 index 0000000..c520b12 --- /dev/null +++ b/src/models/default_keyword_list_upsert_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultKeywordListUpsertRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: Box, +} + +impl DefaultKeywordListUpsertRequest { + pub fn new(name: String, event_type: i32, trigger_type: i32, trigger_metadata: models::DefaultKeywordListTriggerMetadata) -> DefaultKeywordListUpsertRequest { + DefaultKeywordListUpsertRequest { + name, + event_type, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type, + trigger_metadata: Box::new(trigger_metadata), + } + } +} + diff --git a/src/models/default_keyword_list_upsert_request_actions_inner.rs b/src/models/default_keyword_list_upsert_request_actions_inner.rs new file mode 100644 index 0000000..0b3e96b --- /dev/null +++ b/src/models/default_keyword_list_upsert_request_actions_inner.rs @@ -0,0 +1,61 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DefaultKeywordListUpsertRequestActionsInner { + BlockMessageAction(Box), + FlagToChannelAction(Box), + QuarantineUserAction(Box), + UserCommunicationDisabledAction(Box), +} + +impl Default for DefaultKeywordListUpsertRequestActionsInner { + fn default() -> Self { + Self::BlockMessageAction(Default::default()) + } +} + diff --git a/src/models/default_keyword_list_upsert_request_partial.rs b/src/models/default_keyword_list_upsert_request_partial.rs new file mode 100644 index 0000000..242c168 --- /dev/null +++ b/src/models/default_keyword_list_upsert_request_partial.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultKeywordListUpsertRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")] + pub event_type: Option, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type", skip_serializing_if = "Option::is_none")] + pub trigger_type: Option, + #[serde(rename = "trigger_metadata", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>, +} + +impl DefaultKeywordListUpsertRequestPartial { + pub fn new() -> DefaultKeywordListUpsertRequestPartial { + DefaultKeywordListUpsertRequestPartial { + name: None, + event_type: None, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type: None, + trigger_metadata: None, + } + } +} + diff --git a/src/models/default_keyword_rule_response.rs b/src/models/default_keyword_rule_response.rs new file mode 100644 index 0000000..6f57437 --- /dev/null +++ b/src/models/default_keyword_rule_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultKeywordRuleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions")] + pub actions: Vec, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: Box, +} + +impl DefaultKeywordRuleResponse { + pub fn new(id: String, guild_id: String, creator_id: String, name: String, event_type: i32, actions: Vec, trigger_type: i32, trigger_metadata: models::DefaultKeywordListTriggerMetadataResponse) -> DefaultKeywordRuleResponse { + DefaultKeywordRuleResponse { + id, + guild_id, + creator_id, + name, + event_type, + actions, + trigger_type, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_metadata: Box::new(trigger_metadata), + } + } +} + diff --git a/src/models/default_keyword_rule_response_actions_inner.rs b/src/models/default_keyword_rule_response_actions_inner.rs new file mode 100644 index 0000000..7d67ac4 --- /dev/null +++ b/src/models/default_keyword_rule_response_actions_inner.rs @@ -0,0 +1,61 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DefaultKeywordRuleResponseActionsInner { + BlockMessageActionResponse(Box), + FlagToChannelActionResponse(Box), + QuarantineUserActionResponse(Box), + UserCommunicationDisabledActionResponse(Box), +} + +impl Default for DefaultKeywordRuleResponseActionsInner { + fn default() -> Self { + Self::BlockMessageActionResponse(Default::default()) + } +} + diff --git a/src/models/default_reaction_emoji_response.rs b/src/models/default_reaction_emoji_response.rs new file mode 100644 index 0000000..ec081e0 --- /dev/null +++ b/src/models/default_reaction_emoji_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DefaultReactionEmojiResponse { + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl DefaultReactionEmojiResponse { + pub fn new() -> DefaultReactionEmojiResponse { + DefaultReactionEmojiResponse { + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/discord_integration_response.rs b/src/models/discord_integration_response.rs new file mode 100644 index 0000000..0c79ef2 --- /dev/null +++ b/src/models/discord_integration_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DiscordIntegrationResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "application")] + pub application: Box, + #[serde(rename = "scopes")] + pub scopes: Vec, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, +} + +impl DiscordIntegrationResponse { + pub fn new(r#type: Option, id: String, application: models::IntegrationApplicationResponse, scopes: Vec) -> DiscordIntegrationResponse { + DiscordIntegrationResponse { + r#type, + name: None, + account: None, + enabled: None, + id, + application: Box::new(application), + scopes, + user: None, + } + } +} + diff --git a/src/models/edit_lobby_channel_link_request.rs b/src/models/edit_lobby_channel_link_request.rs new file mode 100644 index 0000000..e1a6173 --- /dev/null +++ b/src/models/edit_lobby_channel_link_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EditLobbyChannelLinkRequest { + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl EditLobbyChannelLinkRequest { + pub fn new() -> EditLobbyChannelLinkRequest { + EditLobbyChannelLinkRequest { + channel_id: None, + } + } +} + diff --git a/src/models/embedded_activity_instance.rs b/src/models/embedded_activity_instance.rs new file mode 100644 index 0000000..915ce02 --- /dev/null +++ b/src/models/embedded_activity_instance.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EmbeddedActivityInstance { + #[serde(rename = "application_id")] + pub application_id: String, + #[serde(rename = "instance_id")] + pub instance_id: String, + #[serde(rename = "launch_id")] + pub launch_id: String, + #[serde(rename = "location", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub location: Option>>, + #[serde(rename = "users")] + pub users: Vec, +} + +impl EmbeddedActivityInstance { + pub fn new(application_id: String, instance_id: String, launch_id: String, users: Vec) -> EmbeddedActivityInstance { + EmbeddedActivityInstance { + application_id, + instance_id, + launch_id, + location: None, + users, + } + } +} + diff --git a/src/models/embedded_activity_instance_location.rs b/src/models/embedded_activity_instance_location.rs new file mode 100644 index 0000000..816e6a1 --- /dev/null +++ b/src/models/embedded_activity_instance_location.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum EmbeddedActivityInstanceLocation { + GuildChannelLocation(Box), + PrivateChannelLocation(Box), +} + +impl Default for EmbeddedActivityInstanceLocation { + fn default() -> Self { + Self::GuildChannelLocation(Default::default()) + } +} + diff --git a/src/models/emoji_response.rs b/src/models/emoji_response.rs new file mode 100644 index 0000000..441be43 --- /dev/null +++ b/src/models/emoji_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EmojiResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "require_colons")] + pub require_colons: bool, + #[serde(rename = "managed")] + pub managed: bool, + #[serde(rename = "animated")] + pub animated: bool, + #[serde(rename = "available")] + pub available: bool, +} + +impl EmojiResponse { + pub fn new(id: String, name: String, roles: Vec, require_colons: bool, managed: bool, animated: bool, available: bool) -> EmojiResponse { + EmojiResponse { + id, + name, + user: None, + roles, + require_colons, + managed, + animated, + available, + } + } +} + diff --git a/src/models/entitlement_response.rs b/src/models/entitlement_response.rs new file mode 100644 index 0000000..ccc4ae4 --- /dev/null +++ b/src/models/entitlement_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EntitlementResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "sku_id")] + pub sku_id: String, + #[serde(rename = "application_id")] + pub application_id: String, + #[serde(rename = "user_id")] + pub user_id: String, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "deleted")] + pub deleted: bool, + #[serde(rename = "starts_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub starts_at: Option>, + #[serde(rename = "ends_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ends_at: Option>, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "fulfilled_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fulfilled_at: Option>, + #[serde(rename = "fulfillment_status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fulfillment_status: Option>, + #[serde(rename = "consumed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub consumed: Option>, +} + +impl EntitlementResponse { + pub fn new(id: String, sku_id: String, application_id: String, user_id: String, deleted: bool, r#type: Option) -> EntitlementResponse { + EntitlementResponse { + id, + sku_id, + application_id, + user_id, + guild_id: None, + deleted, + starts_at: None, + ends_at: None, + r#type, + fulfilled_at: None, + fulfillment_status: None, + consumed: None, + } + } +} + diff --git a/src/models/entity_metadata_external.rs b/src/models/entity_metadata_external.rs new file mode 100644 index 0000000..5213fb5 --- /dev/null +++ b/src/models/entity_metadata_external.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EntityMetadataExternal { + #[serde(rename = "location")] + pub location: String, +} + +impl EntityMetadataExternal { + pub fn new(location: String) -> EntityMetadataExternal { + EntityMetadataExternal { + location, + } + } +} + diff --git a/src/models/entity_metadata_external_response.rs b/src/models/entity_metadata_external_response.rs new file mode 100644 index 0000000..3c16a3d --- /dev/null +++ b/src/models/entity_metadata_external_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EntityMetadataExternalResponse { + #[serde(rename = "location")] + pub location: String, +} + +impl EntityMetadataExternalResponse { + pub fn new(location: String) -> EntityMetadataExternalResponse { + EntityMetadataExternalResponse { + location, + } + } +} + diff --git a/src/models/error.rs b/src/models/error.rs new file mode 100644 index 0000000..b15e818 --- /dev/null +++ b/src/models/error.rs @@ -0,0 +1,67 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +/// Error : A single error, either for an API response or a specific field. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Error { + /// Discord internal error code. See error code reference + #[serde(rename = "code")] + pub code: i32, + /// Human-readable error message + #[serde(rename = "message")] + pub message: String, +} + +impl Error { + /// A single error, either for an API response or a specific field. + pub fn new(code: i32, message: String) -> Error { + Error { + code, + message, + } + } +} + diff --git a/src/models/error_details.rs b/src/models/error_details.rs new file mode 100644 index 0000000..9f617a8 --- /dev/null +++ b/src/models/error_details.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ErrorDetails { + ErrorDetailsProperties(std::collections::HashMap), + InnerErrors(Box), +} + +impl Default for ErrorDetails { + fn default() -> Self { + Self::ErrorDetailsProperties(Default::default()) + } +} + diff --git a/src/models/error_response.rs b/src/models/error_response.rs new file mode 100644 index 0000000..664cbd8 --- /dev/null +++ b/src/models/error_response.rs @@ -0,0 +1,70 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +/// ErrorResponse : Errors object returned by the Discord API +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ErrorResponse { + /// Discord internal error code. See error code reference + #[serde(rename = "code")] + pub code: i32, + /// Human-readable error message + #[serde(rename = "message")] + pub message: String, + #[serde(rename = "errors", skip_serializing_if = "Option::is_none")] + pub errors: Option>, +} + +impl ErrorResponse { + /// Errors object returned by the Discord API + pub fn new(code: i32, message: String) -> ErrorResponse { + ErrorResponse { + code, + message, + errors: None, + } + } +} + diff --git a/src/models/execute_webhook_request.rs b/src/models/execute_webhook_request.rs new file mode 100644 index 0000000..803fbef --- /dev/null +++ b/src/models/execute_webhook_request.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExecuteWebhookRequest { + #[serde(rename = "content", skip_serializing_if = "Option::is_none")] + pub content: Option, + #[serde(rename = "embeds", skip_serializing_if = "Option::is_none")] + pub embeds: Option>, + #[serde(rename = "allowed_mentions", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>, + #[serde(rename = "components", skip_serializing_if = "Option::is_none")] + pub components: Option>, + #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")] + pub attachments: Option>, + #[serde(rename = "poll", skip_serializing_if = "Option::is_none")] + pub poll: Option>, + #[serde(rename = "tts", skip_serializing_if = "Option::is_none")] + pub tts: Option, + #[serde(rename = "flags", skip_serializing_if = "Option::is_none")] + pub flags: Option, + #[serde(rename = "username", skip_serializing_if = "Option::is_none")] + pub username: Option, + #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] + pub avatar_url: Option, + #[serde(rename = "thread_name", skip_serializing_if = "Option::is_none")] + pub thread_name: Option, + #[serde(rename = "applied_tags", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>, +} + +impl ExecuteWebhookRequest { + pub fn new() -> ExecuteWebhookRequest { + ExecuteWebhookRequest { + content: None, + embeds: None, + allowed_mentions: None, + components: None, + attachments: None, + poll: None, + tts: None, + flags: None, + username: None, + avatar_url: None, + thread_name: None, + applied_tags: None, + } + } +} + diff --git a/src/models/external_connection_integration_response.rs b/src/models/external_connection_integration_response.rs new file mode 100644 index 0000000..ceff37a --- /dev/null +++ b/src/models/external_connection_integration_response.rs @@ -0,0 +1,99 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExternalConnectionIntegrationResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "revoked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub revoked: Option>, + #[serde(rename = "expire_behavior", skip_serializing_if = "Option::is_none")] + pub expire_behavior: Option, + #[serde(rename = "expire_grace_period", skip_serializing_if = "Option::is_none")] + pub expire_grace_period: Option, + #[serde(rename = "subscriber_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subscriber_count: Option>, + #[serde(rename = "synced_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub synced_at: Option>, + #[serde(rename = "role_id", skip_serializing_if = "Option::is_none")] + pub role_id: Option, + #[serde(rename = "syncing", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub syncing: Option>, + #[serde(rename = "enable_emoticons", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enable_emoticons: Option>, +} + +impl ExternalConnectionIntegrationResponse { + pub fn new(r#type: Option, id: String, user: models::UserResponse) -> ExternalConnectionIntegrationResponse { + ExternalConnectionIntegrationResponse { + r#type, + name: None, + account: None, + enabled: None, + id, + user: Box::new(user), + revoked: None, + expire_behavior: None, + expire_grace_period: None, + subscriber_count: None, + synced_at: None, + role_id: None, + syncing: None, + enable_emoticons: None, + } + } +} + diff --git a/src/models/external_scheduled_event_create_request.rs b/src/models/external_scheduled_event_create_request.rs new file mode 100644 index 0000000..d4b41b2 --- /dev/null +++ b/src/models/external_scheduled_event_create_request.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExternalScheduledEventCreateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata")] + pub entity_metadata: Box, +} + +impl ExternalScheduledEventCreateRequest { + pub fn new(name: String, scheduled_start_time: String, privacy_level: Option, entity_type: Option, entity_metadata: models::EntityMetadataExternal) -> ExternalScheduledEventCreateRequest { + ExternalScheduledEventCreateRequest { + name, + description: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + privacy_level, + entity_type, + channel_id: None, + entity_metadata: Box::new(entity_metadata), + } + } +} + diff --git a/src/models/external_scheduled_event_patch_request_partial.rs b/src/models/external_scheduled_event_patch_request_partial.rs new file mode 100644 index 0000000..b9f1265 --- /dev/null +++ b/src/models/external_scheduled_event_patch_request_partial.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExternalScheduledEventPatchRequestPartial { + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time", skip_serializing_if = "Option::is_none")] + pub scheduled_start_time: Option, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "entity_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub entity_type: Option>, + #[serde(rename = "privacy_level", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option>, +} + +impl ExternalScheduledEventPatchRequestPartial { + pub fn new() -> ExternalScheduledEventPatchRequestPartial { + ExternalScheduledEventPatchRequestPartial { + status: None, + name: None, + description: None, + image: None, + scheduled_start_time: None, + scheduled_end_time: None, + entity_type: None, + privacy_level: None, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/external_scheduled_event_response.rs b/src/models/external_scheduled_event_response.rs new file mode 100644 index 0000000..e3da76a --- /dev/null +++ b/src/models/external_scheduled_event_response.rs @@ -0,0 +1,108 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ExternalScheduledEventResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "creator_id", skip_serializing_if = "Option::is_none")] + pub creator_id: Option, + #[serde(rename = "creator", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub creator: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "entity_id", skip_serializing_if = "Option::is_none")] + pub entity_id: Option, + #[serde(rename = "user_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_count: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "user_rsvp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_rsvp: Option>>, + #[serde(rename = "entity_metadata")] + pub entity_metadata: Box, +} + +impl ExternalScheduledEventResponse { + pub fn new(id: String, guild_id: String, name: String, scheduled_start_time: String, status: Option, entity_type: Option, privacy_level: Option, entity_metadata: models::EntityMetadataExternalResponse) -> ExternalScheduledEventResponse { + ExternalScheduledEventResponse { + id, + guild_id, + name, + description: None, + channel_id: None, + creator_id: None, + creator: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + status, + entity_type, + entity_id: None, + user_count: None, + privacy_level, + user_rsvp: None, + entity_metadata: Box::new(entity_metadata), + } + } +} + diff --git a/src/models/file_component_for_message_request.rs b/src/models/file_component_for_message_request.rs new file mode 100644 index 0000000..be544de --- /dev/null +++ b/src/models/file_component_for_message_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FileComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "spoiler", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub spoiler: Option>, + #[serde(rename = "file")] + pub file: Box, +} + +impl FileComponentForMessageRequest { + pub fn new(r#type: i32, file: models::UnfurledMediaRequestWithAttachmentReferenceRequired) -> FileComponentForMessageRequest { + FileComponentForMessageRequest { + r#type, + spoiler: None, + file: Box::new(file), + } + } +} + diff --git a/src/models/file_component_response.rs b/src/models/file_component_response.rs new file mode 100644 index 0000000..c387db2 --- /dev/null +++ b/src/models/file_component_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FileComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "file")] + pub file: Box, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub size: Option>, + #[serde(rename = "spoiler")] + pub spoiler: bool, +} + +impl FileComponentResponse { + pub fn new(r#type: i32, id: i32, file: models::UnfurledMediaResponse, spoiler: bool) -> FileComponentResponse { + FileComponentResponse { + r#type, + id, + file: Box::new(file), + name: None, + size: None, + spoiler, + } + } +} + diff --git a/src/models/flag_to_channel_action.rs b/src/models/flag_to_channel_action.rs new file mode 100644 index 0000000..ac99e3c --- /dev/null +++ b/src/models/flag_to_channel_action.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FlagToChannelAction { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: Box, +} + +impl FlagToChannelAction { + pub fn new(r#type: i32, metadata: models::FlagToChannelActionMetadata) -> FlagToChannelAction { + FlagToChannelAction { + r#type, + metadata: Box::new(metadata), + } + } +} + diff --git a/src/models/flag_to_channel_action_metadata.rs b/src/models/flag_to_channel_action_metadata.rs new file mode 100644 index 0000000..55a78b6 --- /dev/null +++ b/src/models/flag_to_channel_action_metadata.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FlagToChannelActionMetadata { + #[serde(rename = "channel_id")] + pub channel_id: String, +} + +impl FlagToChannelActionMetadata { + pub fn new(channel_id: String) -> FlagToChannelActionMetadata { + FlagToChannelActionMetadata { + channel_id, + } + } +} + diff --git a/src/models/flag_to_channel_action_metadata_response.rs b/src/models/flag_to_channel_action_metadata_response.rs new file mode 100644 index 0000000..b153f62 --- /dev/null +++ b/src/models/flag_to_channel_action_metadata_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FlagToChannelActionMetadataResponse { + #[serde(rename = "channel_id")] + pub channel_id: String, +} + +impl FlagToChannelActionMetadataResponse { + pub fn new(channel_id: String) -> FlagToChannelActionMetadataResponse { + FlagToChannelActionMetadataResponse { + channel_id, + } + } +} + diff --git a/src/models/flag_to_channel_action_response.rs b/src/models/flag_to_channel_action_response.rs new file mode 100644 index 0000000..e13dd87 --- /dev/null +++ b/src/models/flag_to_channel_action_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FlagToChannelActionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: Box, +} + +impl FlagToChannelActionResponse { + pub fn new(r#type: i32, metadata: models::FlagToChannelActionMetadataResponse) -> FlagToChannelActionResponse { + FlagToChannelActionResponse { + r#type, + metadata: Box::new(metadata), + } + } +} + diff --git a/src/models/follow_channel_request.rs b/src/models/follow_channel_request.rs new file mode 100644 index 0000000..90ec6e2 --- /dev/null +++ b/src/models/follow_channel_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FollowChannelRequest { + #[serde(rename = "webhook_channel_id")] + pub webhook_channel_id: String, +} + +impl FollowChannelRequest { + pub fn new(webhook_channel_id: String) -> FollowChannelRequest { + FollowChannelRequest { + webhook_channel_id, + } + } +} + diff --git a/src/models/forum_tag_response.rs b/src/models/forum_tag_response.rs new file mode 100644 index 0000000..387a141 --- /dev/null +++ b/src/models/forum_tag_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ForumTagResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "moderated")] + pub moderated: bool, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl ForumTagResponse { + pub fn new(id: String, name: String, moderated: bool) -> ForumTagResponse { + ForumTagResponse { + id, + name, + moderated, + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/friend_invite_response.rs b/src/models/friend_invite_response.rs new file mode 100644 index 0000000..f0bd8e6 --- /dev/null +++ b/src/models/friend_invite_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FriendInviteResponse { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "inviter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub inviter: Option>>, + #[serde(rename = "max_age", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_age: Option>, + #[serde(rename = "created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub created_at: Option>, + #[serde(rename = "expires_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expires_at: Option>, + #[serde(rename = "friends_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friends_count: Option>, + #[serde(rename = "channel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel: Option>>, + #[serde(rename = "is_contact", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_contact: Option>, + #[serde(rename = "uses", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uses: Option>, + #[serde(rename = "max_uses", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_uses: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl FriendInviteResponse { + pub fn new(code: String) -> FriendInviteResponse { + FriendInviteResponse { + r#type: None, + code, + inviter: None, + max_age: None, + created_at: None, + expires_at: None, + friends_count: None, + channel: None, + is_contact: None, + uses: None, + max_uses: None, + flags: None, + } + } +} + diff --git a/src/models/gateway_bot_response.rs b/src/models/gateway_bot_response.rs new file mode 100644 index 0000000..993724a --- /dev/null +++ b/src/models/gateway_bot_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GatewayBotResponse { + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "session_start_limit")] + pub session_start_limit: Box, + #[serde(rename = "shards")] + pub shards: i32, +} + +impl GatewayBotResponse { + pub fn new(url: String, session_start_limit: models::GatewayBotSessionStartLimitResponse, shards: i32) -> GatewayBotResponse { + GatewayBotResponse { + url, + session_start_limit: Box::new(session_start_limit), + shards, + } + } +} + diff --git a/src/models/gateway_bot_session_start_limit_response.rs b/src/models/gateway_bot_session_start_limit_response.rs new file mode 100644 index 0000000..8a884c0 --- /dev/null +++ b/src/models/gateway_bot_session_start_limit_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GatewayBotSessionStartLimitResponse { + #[serde(rename = "max_concurrency")] + pub max_concurrency: i32, + #[serde(rename = "remaining")] + pub remaining: i32, + #[serde(rename = "reset_after")] + pub reset_after: i32, + #[serde(rename = "total")] + pub total: i32, +} + +impl GatewayBotSessionStartLimitResponse { + pub fn new(max_concurrency: i32, remaining: i32, reset_after: i32, total: i32) -> GatewayBotSessionStartLimitResponse { + GatewayBotSessionStartLimitResponse { + max_concurrency, + remaining, + reset_after, + total, + } + } +} + diff --git a/src/models/gateway_response.rs b/src/models/gateway_response.rs new file mode 100644 index 0000000..25fe718 --- /dev/null +++ b/src/models/gateway_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GatewayResponse { + #[serde(rename = "url")] + pub url: String, +} + +impl GatewayResponse { + pub fn new(url: String) -> GatewayResponse { + GatewayResponse { + url, + } + } +} + diff --git a/src/models/get_channel_200_response.rs b/src/models/get_channel_200_response.rs new file mode 100644 index 0000000..603b3d8 --- /dev/null +++ b/src/models/get_channel_200_response.rs @@ -0,0 +1,61 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetChannel200Response { + GuildChannelResponse(Box), + PrivateChannelResponse(Box), + PrivateGroupChannelResponse(Box), + ThreadResponse(Box), +} + +impl Default for GetChannel200Response { + fn default() -> Self { + Self::GuildChannelResponse(Default::default()) + } +} + diff --git a/src/models/get_entitlements_sku_ids_parameter.rs b/src/models/get_entitlements_sku_ids_parameter.rs new file mode 100644 index 0000000..4a049f9 --- /dev/null +++ b/src/models/get_entitlements_sku_ids_parameter.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetEntitlementsSkuIdsParameter { + String(String), + Array(Vec), +} + +impl Default for GetEntitlementsSkuIdsParameter { + fn default() -> Self { + Self::String(Default::default()) + } +} + diff --git a/src/models/get_sticker_200_response.rs b/src/models/get_sticker_200_response.rs new file mode 100644 index 0000000..bda484e --- /dev/null +++ b/src/models/get_sticker_200_response.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSticker200Response { + GuildStickerResponse(Box), + StandardStickerResponse(Box), +} + +impl Default for GetSticker200Response { + fn default() -> Self { + Self::GuildStickerResponse(Default::default()) + } +} + diff --git a/src/models/github_author.rs b/src/models/github_author.rs new file mode 100644 index 0000000..dd4d5b0 --- /dev/null +++ b/src/models/github_author.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubAuthor { + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + #[serde(rename = "name")] + pub name: String, +} + +impl GithubAuthor { + pub fn new(name: String) -> GithubAuthor { + GithubAuthor { + username: None, + name, + } + } +} + diff --git a/src/models/github_check_app.rs b/src/models/github_check_app.rs new file mode 100644 index 0000000..64c7159 --- /dev/null +++ b/src/models/github_check_app.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCheckApp { + #[serde(rename = "name")] + pub name: String, +} + +impl GithubCheckApp { + pub fn new(name: String) -> GithubCheckApp { + GithubCheckApp { + name, + } + } +} + diff --git a/src/models/github_check_pull_request.rs b/src/models/github_check_pull_request.rs new file mode 100644 index 0000000..a8b3217 --- /dev/null +++ b/src/models/github_check_pull_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCheckPullRequest { + #[serde(rename = "number")] + pub number: i32, +} + +impl GithubCheckPullRequest { + pub fn new(number: i32) -> GithubCheckPullRequest { + GithubCheckPullRequest { + number, + } + } +} + diff --git a/src/models/github_check_run.rs b/src/models/github_check_run.rs new file mode 100644 index 0000000..ebc5875 --- /dev/null +++ b/src/models/github_check_run.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCheckRun { + #[serde(rename = "conclusion", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conclusion: Option>, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "check_suite")] + pub check_suite: Box, + #[serde(rename = "details_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub details_url: Option>, + #[serde(rename = "output", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub output: Option>>, + #[serde(rename = "pull_requests", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pull_requests: Option>>, +} + +impl GithubCheckRun { + pub fn new(name: String, html_url: String, check_suite: models::GithubCheckSuite) -> GithubCheckRun { + GithubCheckRun { + conclusion: None, + name, + html_url, + check_suite: Box::new(check_suite), + details_url: None, + output: None, + pull_requests: None, + } + } +} + diff --git a/src/models/github_check_run_output.rs b/src/models/github_check_run_output.rs new file mode 100644 index 0000000..adc0b57 --- /dev/null +++ b/src/models/github_check_run_output.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCheckRunOutput { + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "summary", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub summary: Option>, +} + +impl GithubCheckRunOutput { + pub fn new() -> GithubCheckRunOutput { + GithubCheckRunOutput { + title: None, + summary: None, + } + } +} + diff --git a/src/models/github_check_suite.rs b/src/models/github_check_suite.rs new file mode 100644 index 0000000..9f52a85 --- /dev/null +++ b/src/models/github_check_suite.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCheckSuite { + #[serde(rename = "conclusion", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conclusion: Option>, + #[serde(rename = "head_branch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub head_branch: Option>, + #[serde(rename = "head_sha")] + pub head_sha: String, + #[serde(rename = "pull_requests", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pull_requests: Option>>, + #[serde(rename = "app")] + pub app: Box, +} + +impl GithubCheckSuite { + pub fn new(head_sha: String, app: models::GithubCheckApp) -> GithubCheckSuite { + GithubCheckSuite { + conclusion: None, + head_branch: None, + head_sha, + pull_requests: None, + app: Box::new(app), + } + } +} + diff --git a/src/models/github_comment.rs b/src/models/github_comment.rs new file mode 100644 index 0000000..aad5d19 --- /dev/null +++ b/src/models/github_comment.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubComment { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "commit_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub commit_id: Option>, + #[serde(rename = "body")] + pub body: String, +} + +impl GithubComment { + pub fn new(id: i32, html_url: String, user: models::GithubUser, body: String) -> GithubComment { + GithubComment { + id, + html_url, + user: Box::new(user), + commit_id: None, + body, + } + } +} + diff --git a/src/models/github_commit.rs b/src/models/github_commit.rs new file mode 100644 index 0000000..1789ca8 --- /dev/null +++ b/src/models/github_commit.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubCommit { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "message")] + pub message: String, + #[serde(rename = "author")] + pub author: Box, +} + +impl GithubCommit { + pub fn new(id: String, url: String, message: String, author: models::GithubAuthor) -> GithubCommit { + GithubCommit { + id, + url, + message, + author: Box::new(author), + } + } +} + diff --git a/src/models/github_discussion.rs b/src/models/github_discussion.rs new file mode 100644 index 0000000..800c4fa --- /dev/null +++ b/src/models/github_discussion.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubDiscussion { + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "number")] + pub number: i32, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "answer_html_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub answer_html_url: Option>, + #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub body: Option>, + #[serde(rename = "user")] + pub user: Box, +} + +impl GithubDiscussion { + pub fn new(title: String, number: i32, html_url: String, user: models::GithubUser) -> GithubDiscussion { + GithubDiscussion { + title, + number, + html_url, + answer_html_url: None, + body: None, + user: Box::new(user), + } + } +} + diff --git a/src/models/github_issue.rs b/src/models/github_issue.rs new file mode 100644 index 0000000..c4a2c65 --- /dev/null +++ b/src/models/github_issue.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubIssue { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "number")] + pub number: i32, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub body: Option>, + #[serde(rename = "pull_request", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pull_request: Option>, +} + +impl GithubIssue { + pub fn new(id: i32, number: i32, html_url: String, user: models::GithubUser, title: String) -> GithubIssue { + GithubIssue { + id, + number, + html_url, + user: Box::new(user), + title, + body: None, + pull_request: None, + } + } +} + diff --git a/src/models/github_release.rs b/src/models/github_release.rs new file mode 100644 index 0000000..cca679f --- /dev/null +++ b/src/models/github_release.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubRelease { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "tag_name")] + pub tag_name: String, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "author")] + pub author: Box, +} + +impl GithubRelease { + pub fn new(id: i32, tag_name: String, html_url: String, author: models::GithubUser) -> GithubRelease { + GithubRelease { + id, + tag_name, + html_url, + author: Box::new(author), + } + } +} + diff --git a/src/models/github_repository.rs b/src/models/github_repository.rs new file mode 100644 index 0000000..741a63f --- /dev/null +++ b/src/models/github_repository.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubRepository { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "full_name")] + pub full_name: String, +} + +impl GithubRepository { + pub fn new(id: i32, html_url: String, name: String, full_name: String) -> GithubRepository { + GithubRepository { + id, + html_url, + name, + full_name, + } + } +} + diff --git a/src/models/github_review.rs b/src/models/github_review.rs new file mode 100644 index 0000000..c3ac177 --- /dev/null +++ b/src/models/github_review.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubReview { + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub body: Option>, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "state")] + pub state: String, +} + +impl GithubReview { + pub fn new(user: models::GithubUser, html_url: String, state: String) -> GithubReview { + GithubReview { + user: Box::new(user), + body: None, + html_url, + state, + } + } +} + diff --git a/src/models/github_user.rs b/src/models/github_user.rs new file mode 100644 index 0000000..15d9e65 --- /dev/null +++ b/src/models/github_user.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubUser { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "login")] + pub login: String, + #[serde(rename = "html_url")] + pub html_url: String, + #[serde(rename = "avatar_url")] + pub avatar_url: String, +} + +impl GithubUser { + pub fn new(id: i32, login: String, html_url: String, avatar_url: String) -> GithubUser { + GithubUser { + id, + login, + html_url, + avatar_url, + } + } +} + diff --git a/src/models/github_webhook.rs b/src/models/github_webhook.rs new file mode 100644 index 0000000..b4a1a9e --- /dev/null +++ b/src/models/github_webhook.rs @@ -0,0 +1,117 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GithubWebhook { + #[serde(rename = "action", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub action: Option>, + #[serde(rename = "ref", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#ref: Option>, + #[serde(rename = "ref_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ref_type: Option>, + #[serde(rename = "comment", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub comment: Option>>, + #[serde(rename = "issue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub issue: Option>>, + #[serde(rename = "pull_request", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pull_request: Option>>, + #[serde(rename = "repository", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub repository: Option>>, + #[serde(rename = "forkee", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub forkee: Option>>, + #[serde(rename = "sender")] + pub sender: Box, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, + #[serde(rename = "release", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub release: Option>>, + #[serde(rename = "head_commit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub head_commit: Option>>, + #[serde(rename = "commits", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub commits: Option>>, + #[serde(rename = "forced", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub forced: Option>, + #[serde(rename = "compare", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub compare: Option>, + #[serde(rename = "review", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub review: Option>>, + #[serde(rename = "check_run", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub check_run: Option>>, + #[serde(rename = "check_suite", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub check_suite: Option>>, + #[serde(rename = "discussion", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discussion: Option>>, + #[serde(rename = "answer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub answer: Option>>, +} + +impl GithubWebhook { + pub fn new(sender: models::GithubUser) -> GithubWebhook { + GithubWebhook { + action: None, + r#ref: None, + ref_type: None, + comment: None, + issue: None, + pull_request: None, + repository: None, + forkee: None, + sender: Box::new(sender), + member: None, + release: None, + head_commit: None, + commits: None, + forced: None, + compare: None, + review: None, + check_run: None, + check_suite: None, + discussion: None, + answer: None, + } + } +} + diff --git a/src/models/group_dm_invite_response.rs b/src/models/group_dm_invite_response.rs new file mode 100644 index 0000000..b9889ce --- /dev/null +++ b/src/models/group_dm_invite_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GroupDmInviteResponse { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "inviter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub inviter: Option>>, + #[serde(rename = "max_age", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_age: Option>, + #[serde(rename = "created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub created_at: Option>, + #[serde(rename = "expires_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expires_at: Option>, + #[serde(rename = "channel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel: Option>>, + #[serde(rename = "approximate_member_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_member_count: Option>, +} + +impl GroupDmInviteResponse { + pub fn new(code: String) -> GroupDmInviteResponse { + GroupDmInviteResponse { + r#type: None, + code, + inviter: None, + max_age: None, + created_at: None, + expires_at: None, + channel: None, + approximate_member_count: None, + } + } +} + diff --git a/src/models/guild_audit_log_response.rs b/src/models/guild_audit_log_response.rs new file mode 100644 index 0000000..3d33065 --- /dev/null +++ b/src/models/guild_audit_log_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildAuditLogResponse { + #[serde(rename = "audit_log_entries")] + pub audit_log_entries: Vec, + #[serde(rename = "users")] + pub users: Vec, + #[serde(rename = "integrations")] + pub integrations: Vec, + #[serde(rename = "webhooks")] + pub webhooks: Vec, + #[serde(rename = "guild_scheduled_events")] + pub guild_scheduled_events: Vec, + #[serde(rename = "threads")] + pub threads: Vec, + #[serde(rename = "application_commands")] + pub application_commands: Vec, + #[serde(rename = "auto_moderation_rules")] + pub auto_moderation_rules: Vec, +} + +impl GuildAuditLogResponse { + pub fn new(audit_log_entries: Vec, users: Vec, integrations: Vec, webhooks: Vec, guild_scheduled_events: Vec, threads: Vec, application_commands: Vec, auto_moderation_rules: Vec) -> GuildAuditLogResponse { + GuildAuditLogResponse { + audit_log_entries, + users, + integrations, + webhooks, + guild_scheduled_events, + threads, + application_commands, + auto_moderation_rules, + } + } +} + diff --git a/src/models/guild_audit_log_response_integrations_inner.rs b/src/models/guild_audit_log_response_integrations_inner.rs new file mode 100644 index 0000000..f9d1498 --- /dev/null +++ b/src/models/guild_audit_log_response_integrations_inner.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GuildAuditLogResponseIntegrationsInner { + PartialDiscordIntegrationResponse(Box), + PartialExternalConnectionIntegrationResponse(Box), + PartialGuildSubscriptionIntegrationResponse(Box), +} + +impl Default for GuildAuditLogResponseIntegrationsInner { + fn default() -> Self { + Self::PartialDiscordIntegrationResponse(Default::default()) + } +} + diff --git a/src/models/guild_ban_response.rs b/src/models/guild_ban_response.rs new file mode 100644 index 0000000..7123156 --- /dev/null +++ b/src/models/guild_ban_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildBanResponse { + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "reason", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reason: Option>, +} + +impl GuildBanResponse { + pub fn new(user: models::UserResponse) -> GuildBanResponse { + GuildBanResponse { + user: Box::new(user), + reason: None, + } + } +} + diff --git a/src/models/guild_channel_location.rs b/src/models/guild_channel_location.rs new file mode 100644 index 0000000..9841e2f --- /dev/null +++ b/src/models/guild_channel_location.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildChannelLocation { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "kind")] + pub kind: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, +} + +impl GuildChannelLocation { + pub fn new(id: String, kind: String, channel_id: String, guild_id: String) -> GuildChannelLocation { + GuildChannelLocation { + id, + kind, + channel_id, + guild_id, + } + } +} + diff --git a/src/models/guild_channel_response.rs b/src/models/guild_channel_response.rs new file mode 100644 index 0000000..cf901b1 --- /dev/null +++ b/src/models/guild_channel_response.rs @@ -0,0 +1,138 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "last_message_id", skip_serializing_if = "Option::is_none")] + pub last_message_id: Option, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "last_pin_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_pin_timestamp: Option>, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, + #[serde(rename = "topic", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub topic: Option>, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "default_thread_rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option>, + #[serde(rename = "position")] + pub position: i32, + #[serde(rename = "permission_overwrites", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permission_overwrites: Option>>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, + #[serde(rename = "available_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>>, + #[serde(rename = "default_reaction_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>>, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "hd_streaming_until", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub hd_streaming_until: Option>, + #[serde(rename = "hd_streaming_buyer_id", skip_serializing_if = "Option::is_none")] + pub hd_streaming_buyer_id: Option, +} + +impl GuildChannelResponse { + pub fn new(id: String, r#type: i32, flags: i32, guild_id: String, name: String, position: i32) -> GuildChannelResponse { + GuildChannelResponse { + id, + r#type, + last_message_id: None, + flags, + last_pin_timestamp: None, + guild_id, + name, + parent_id: None, + rate_limit_per_user: None, + bitrate: None, + user_limit: None, + rtc_region: None, + video_quality_mode: None, + permissions: None, + topic: None, + default_auto_archive_duration: None, + default_thread_rate_limit_per_user: None, + position, + permission_overwrites: None, + nsfw: None, + available_tags: None, + default_reaction_emoji: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + hd_streaming_until: None, + hd_streaming_buyer_id: None, + } + } +} + diff --git a/src/models/guild_create_request.rs b/src/models/guild_create_request.rs new file mode 100644 index 0000000..5f6dd10 --- /dev/null +++ b/src/models/guild_create_request.rs @@ -0,0 +1,99 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildCreateRequest { + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "verification_level", skip_serializing_if = "Option::is_none")] + pub verification_level: Option, + #[serde(rename = "default_message_notifications", skip_serializing_if = "Option::is_none")] + pub default_message_notifications: Option, + #[serde(rename = "explicit_content_filter", skip_serializing_if = "Option::is_none")] + pub explicit_content_filter: Option, + #[serde(rename = "preferred_locale", skip_serializing_if = "Option::is_none")] + pub preferred_locale: Option, + #[serde(rename = "afk_timeout", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub afk_timeout: Option>, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>>, + #[serde(rename = "afk_channel_id", skip_serializing_if = "Option::is_none")] + pub afk_channel_id: Option, + #[serde(rename = "system_channel_id", skip_serializing_if = "Option::is_none")] + pub system_channel_id: Option, + #[serde(rename = "system_channel_flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub system_channel_flags: Option>, +} + +impl GuildCreateRequest { + pub fn new(name: String) -> GuildCreateRequest { + GuildCreateRequest { + description: None, + name, + region: None, + icon: None, + verification_level: None, + default_message_notifications: None, + explicit_content_filter: None, + preferred_locale: None, + afk_timeout: None, + roles: None, + channels: None, + afk_channel_id: None, + system_channel_id: None, + system_channel_flags: None, + } + } +} + diff --git a/src/models/guild_home_settings_response.rs b/src/models/guild_home_settings_response.rs new file mode 100644 index 0000000..d7d7410 --- /dev/null +++ b/src/models/guild_home_settings_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildHomeSettingsResponse { + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "welcome_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub welcome_message: Option>>, + #[serde(rename = "new_member_actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub new_member_actions: Option>>, + #[serde(rename = "resource_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource_channels: Option>>, +} + +impl GuildHomeSettingsResponse { + pub fn new(guild_id: String, enabled: bool) -> GuildHomeSettingsResponse { + GuildHomeSettingsResponse { + guild_id, + enabled, + welcome_message: None, + new_member_actions: None, + resource_channels: None, + } + } +} + diff --git a/src/models/guild_incoming_webhook_response.rs b/src/models/guild_incoming_webhook_response.rs new file mode 100644 index 0000000..3ee7b47 --- /dev/null +++ b/src/models/guild_incoming_webhook_response.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildIncomingWebhookResponse { + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub token: Option>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, +} + +impl GuildIncomingWebhookResponse { + pub fn new(id: String, name: String, r#type: i32) -> GuildIncomingWebhookResponse { + GuildIncomingWebhookResponse { + application_id: None, + avatar: None, + channel_id: None, + guild_id: None, + id, + name, + r#type, + user: None, + token: None, + url: None, + } + } +} + diff --git a/src/models/guild_invite_response.rs b/src/models/guild_invite_response.rs new file mode 100644 index 0000000..092bf2f --- /dev/null +++ b/src/models/guild_invite_response.rs @@ -0,0 +1,120 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildInviteResponse { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "inviter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub inviter: Option>>, + #[serde(rename = "max_age", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_age: Option>, + #[serde(rename = "created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub created_at: Option>, + #[serde(rename = "expires_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expires_at: Option>, + #[serde(rename = "is_contact", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_contact: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "guild", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub guild: Option>>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "channel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel: Option>>, + #[serde(rename = "target_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_type: Option>, + #[serde(rename = "target_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_user: Option>>, + #[serde(rename = "target_application", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub target_application: Option>>, + #[serde(rename = "guild_scheduled_event", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub guild_scheduled_event: Option>>, + #[serde(rename = "uses", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uses: Option>, + #[serde(rename = "max_uses", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_uses: Option>, + #[serde(rename = "temporary", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub temporary: Option>, + #[serde(rename = "approximate_member_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_member_count: Option>, + #[serde(rename = "approximate_presence_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_presence_count: Option>, + #[serde(rename = "is_nickname_changeable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_nickname_changeable: Option>, +} + +impl GuildInviteResponse { + pub fn new(code: String) -> GuildInviteResponse { + GuildInviteResponse { + r#type: None, + code, + inviter: None, + max_age: None, + created_at: None, + expires_at: None, + is_contact: None, + flags: None, + guild: None, + guild_id: None, + channel: None, + target_type: None, + target_user: None, + target_application: None, + guild_scheduled_event: None, + uses: None, + max_uses: None, + temporary: None, + approximate_member_count: None, + approximate_presence_count: None, + is_nickname_changeable: None, + } + } +} + diff --git a/src/models/guild_member_response.rs b/src/models/guild_member_response.rs new file mode 100644 index 0000000..0ae37a9 --- /dev/null +++ b/src/models/guild_member_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildMemberResponse { + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "avatar_decoration_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_decoration_data: Option>>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "communication_disabled_until", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub communication_disabled_until: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "joined_at")] + pub joined_at: String, + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, + #[serde(rename = "pending")] + pub pending: bool, + #[serde(rename = "premium_since", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub premium_since: Option>, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "mute")] + pub mute: bool, + #[serde(rename = "deaf")] + pub deaf: bool, +} + +impl GuildMemberResponse { + pub fn new(flags: i32, joined_at: String, pending: bool, roles: Vec, user: models::UserResponse, mute: bool, deaf: bool) -> GuildMemberResponse { + GuildMemberResponse { + avatar: None, + avatar_decoration_data: None, + banner: None, + communication_disabled_until: None, + flags, + joined_at, + nick: None, + pending, + premium_since: None, + roles, + user: Box::new(user), + mute, + deaf, + } + } +} + diff --git a/src/models/guild_mfa_level_response.rs b/src/models/guild_mfa_level_response.rs new file mode 100644 index 0000000..ca41c1b --- /dev/null +++ b/src/models/guild_mfa_level_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildMfaLevelResponse { + #[serde(rename = "level")] + pub level: i32, +} + +impl GuildMfaLevelResponse { + pub fn new(level: i32) -> GuildMfaLevelResponse { + GuildMfaLevelResponse { + level, + } + } +} + diff --git a/src/models/guild_onboarding_response.rs b/src/models/guild_onboarding_response.rs new file mode 100644 index 0000000..12519df --- /dev/null +++ b/src/models/guild_onboarding_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildOnboardingResponse { + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "prompts")] + pub prompts: Vec, + #[serde(rename = "default_channel_ids")] + pub default_channel_ids: Vec, + #[serde(rename = "enabled")] + pub enabled: bool, +} + +impl GuildOnboardingResponse { + pub fn new(guild_id: String, prompts: Vec, default_channel_ids: Vec, enabled: bool) -> GuildOnboardingResponse { + GuildOnboardingResponse { + guild_id, + prompts, + default_channel_ids, + enabled, + } + } +} + diff --git a/src/models/guild_patch_request_partial.rs b/src/models/guild_patch_request_partial.rs new file mode 100644 index 0000000..f5aa46b --- /dev/null +++ b/src/models/guild_patch_request_partial.rs @@ -0,0 +1,123 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildPatchRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "verification_level", skip_serializing_if = "Option::is_none")] + pub verification_level: Option, + #[serde(rename = "default_message_notifications", skip_serializing_if = "Option::is_none")] + pub default_message_notifications: Option, + #[serde(rename = "explicit_content_filter", skip_serializing_if = "Option::is_none")] + pub explicit_content_filter: Option, + #[serde(rename = "preferred_locale", skip_serializing_if = "Option::is_none")] + pub preferred_locale: Option, + #[serde(rename = "afk_timeout", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub afk_timeout: Option>, + #[serde(rename = "afk_channel_id", skip_serializing_if = "Option::is_none")] + pub afk_channel_id: Option, + #[serde(rename = "system_channel_id", skip_serializing_if = "Option::is_none")] + pub system_channel_id: Option, + #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")] + pub owner_id: Option, + #[serde(rename = "splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub splash: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "system_channel_flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub system_channel_flags: Option>, + #[serde(rename = "features", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub features: Option>>, + #[serde(rename = "discovery_splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discovery_splash: Option>, + #[serde(rename = "home_header", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub home_header: Option>, + #[serde(rename = "rules_channel_id", skip_serializing_if = "Option::is_none")] + pub rules_channel_id: Option, + #[serde(rename = "safety_alerts_channel_id", skip_serializing_if = "Option::is_none")] + pub safety_alerts_channel_id: Option, + #[serde(rename = "public_updates_channel_id", skip_serializing_if = "Option::is_none")] + pub public_updates_channel_id: Option, + #[serde(rename = "premium_progress_bar_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub premium_progress_bar_enabled: Option>, +} + +impl GuildPatchRequestPartial { + pub fn new() -> GuildPatchRequestPartial { + GuildPatchRequestPartial { + name: None, + description: None, + region: None, + icon: None, + verification_level: None, + default_message_notifications: None, + explicit_content_filter: None, + preferred_locale: None, + afk_timeout: None, + afk_channel_id: None, + system_channel_id: None, + owner_id: None, + splash: None, + banner: None, + system_channel_flags: None, + features: None, + discovery_splash: None, + home_header: None, + rules_channel_id: None, + safety_alerts_channel_id: None, + public_updates_channel_id: None, + premium_progress_bar_enabled: None, + } + } +} + diff --git a/src/models/guild_preview_response.rs b/src/models/guild_preview_response.rs new file mode 100644 index 0000000..866dc66 --- /dev/null +++ b/src/models/guild_preview_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildPreviewResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "home_header", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub home_header: Option>, + #[serde(rename = "splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub splash: Option>, + #[serde(rename = "discovery_splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discovery_splash: Option>, + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "approximate_member_count")] + pub approximate_member_count: i32, + #[serde(rename = "approximate_presence_count")] + pub approximate_presence_count: i32, + #[serde(rename = "emojis")] + pub emojis: Vec, + #[serde(rename = "stickers")] + pub stickers: Vec, +} + +impl GuildPreviewResponse { + pub fn new(id: String, name: String, features: Vec, approximate_member_count: i32, approximate_presence_count: i32, emojis: Vec, stickers: Vec) -> GuildPreviewResponse { + GuildPreviewResponse { + id, + name, + icon: None, + description: None, + home_header: None, + splash: None, + discovery_splash: None, + features, + approximate_member_count, + approximate_presence_count, + emojis, + stickers, + } + } +} + diff --git a/src/models/guild_product_purchase_response.rs b/src/models/guild_product_purchase_response.rs new file mode 100644 index 0000000..1b62990 --- /dev/null +++ b/src/models/guild_product_purchase_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildProductPurchaseResponse { + #[serde(rename = "listing_id")] + pub listing_id: String, + #[serde(rename = "product_name")] + pub product_name: String, +} + +impl GuildProductPurchaseResponse { + pub fn new(listing_id: String, product_name: String) -> GuildProductPurchaseResponse { + GuildProductPurchaseResponse { + listing_id, + product_name, + } + } +} + diff --git a/src/models/guild_prune_response.rs b/src/models/guild_prune_response.rs new file mode 100644 index 0000000..8345cee --- /dev/null +++ b/src/models/guild_prune_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildPruneResponse { + #[serde(rename = "pruned", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pruned: Option>, +} + +impl GuildPruneResponse { + pub fn new() -> GuildPruneResponse { + GuildPruneResponse { + pruned: None, + } + } +} + diff --git a/src/models/guild_response.rs b/src/models/guild_response.rs new file mode 100644 index 0000000..43d8fe1 --- /dev/null +++ b/src/models/guild_response.rs @@ -0,0 +1,174 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "home_header", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub home_header: Option>, + #[serde(rename = "splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub splash: Option>, + #[serde(rename = "discovery_splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discovery_splash: Option>, + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "owner_id")] + pub owner_id: String, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "region")] + pub region: String, + #[serde(rename = "afk_channel_id", skip_serializing_if = "Option::is_none")] + pub afk_channel_id: Option, + #[serde(rename = "afk_timeout", deserialize_with = "Option::deserialize")] + pub afk_timeout: Option, + #[serde(rename = "system_channel_id", skip_serializing_if = "Option::is_none")] + pub system_channel_id: Option, + #[serde(rename = "system_channel_flags")] + pub system_channel_flags: i32, + #[serde(rename = "widget_enabled")] + pub widget_enabled: bool, + #[serde(rename = "widget_channel_id", skip_serializing_if = "Option::is_none")] + pub widget_channel_id: Option, + #[serde(rename = "verification_level")] + pub verification_level: i32, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "default_message_notifications")] + pub default_message_notifications: i32, + #[serde(rename = "mfa_level")] + pub mfa_level: i32, + #[serde(rename = "explicit_content_filter")] + pub explicit_content_filter: i32, + #[serde(rename = "max_presences", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_presences: Option>, + #[serde(rename = "max_members", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_members: Option>, + #[serde(rename = "max_stage_video_channel_users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_stage_video_channel_users: Option>, + #[serde(rename = "max_video_channel_users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_video_channel_users: Option>, + #[serde(rename = "vanity_url_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub vanity_url_code: Option>, + #[serde(rename = "premium_tier")] + pub premium_tier: i32, + #[serde(rename = "premium_subscription_count")] + pub premium_subscription_count: i32, + #[serde(rename = "preferred_locale")] + pub preferred_locale: String, + #[serde(rename = "rules_channel_id", skip_serializing_if = "Option::is_none")] + pub rules_channel_id: Option, + #[serde(rename = "safety_alerts_channel_id", skip_serializing_if = "Option::is_none")] + pub safety_alerts_channel_id: Option, + #[serde(rename = "public_updates_channel_id", skip_serializing_if = "Option::is_none")] + pub public_updates_channel_id: Option, + #[serde(rename = "premium_progress_bar_enabled")] + pub premium_progress_bar_enabled: bool, + #[serde(rename = "nsfw")] + pub nsfw: bool, + #[serde(rename = "nsfw_level", deserialize_with = "Option::deserialize")] + pub nsfw_level: Option, + #[serde(rename = "emojis")] + pub emojis: Vec, + #[serde(rename = "stickers")] + pub stickers: Vec, +} + +impl GuildResponse { + pub fn new(id: String, name: String, features: Vec, owner_id: String, region: String, afk_timeout: Option, system_channel_flags: i32, widget_enabled: bool, verification_level: i32, roles: Vec, default_message_notifications: i32, mfa_level: i32, explicit_content_filter: i32, premium_tier: i32, premium_subscription_count: i32, preferred_locale: String, premium_progress_bar_enabled: bool, nsfw: bool, nsfw_level: Option, emojis: Vec, stickers: Vec) -> GuildResponse { + GuildResponse { + id, + name, + icon: None, + description: None, + home_header: None, + splash: None, + discovery_splash: None, + features, + banner: None, + owner_id, + application_id: None, + region, + afk_channel_id: None, + afk_timeout, + system_channel_id: None, + system_channel_flags, + widget_enabled, + widget_channel_id: None, + verification_level, + roles, + default_message_notifications, + mfa_level, + explicit_content_filter, + max_presences: None, + max_members: None, + max_stage_video_channel_users: None, + max_video_channel_users: None, + vanity_url_code: None, + premium_tier, + premium_subscription_count, + preferred_locale, + rules_channel_id: None, + safety_alerts_channel_id: None, + public_updates_channel_id: None, + premium_progress_bar_enabled, + nsfw, + nsfw_level, + emojis, + stickers, + } + } +} + diff --git a/src/models/guild_role_response.rs b/src/models/guild_role_response.rs new file mode 100644 index 0000000..9a358b5 --- /dev/null +++ b/src/models/guild_role_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildRoleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "permissions")] + pub permissions: String, + #[serde(rename = "position")] + pub position: i32, + #[serde(rename = "color")] + pub color: i32, + #[serde(rename = "hoist")] + pub hoist: bool, + #[serde(rename = "managed")] + pub managed: bool, + #[serde(rename = "mentionable")] + pub mentionable: bool, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "unicode_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unicode_emoji: Option>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, +} + +impl GuildRoleResponse { + pub fn new(id: String, name: String, permissions: String, position: i32, color: i32, hoist: bool, managed: bool, mentionable: bool) -> GuildRoleResponse { + GuildRoleResponse { + id, + name, + description: None, + permissions, + position, + color, + hoist, + managed, + mentionable, + icon: None, + unicode_emoji: None, + tags: None, + } + } +} + diff --git a/src/models/guild_role_tags_response.rs b/src/models/guild_role_tags_response.rs new file mode 100644 index 0000000..9d676c6 --- /dev/null +++ b/src/models/guild_role_tags_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildRoleTagsResponse { + #[serde(rename = "premium_subscriber", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub premium_subscriber: Option>, + #[serde(rename = "bot_id", skip_serializing_if = "Option::is_none")] + pub bot_id: Option, + #[serde(rename = "integration_id", skip_serializing_if = "Option::is_none")] + pub integration_id: Option, + #[serde(rename = "subscription_listing_id", skip_serializing_if = "Option::is_none")] + pub subscription_listing_id: Option, + #[serde(rename = "available_for_purchase", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_for_purchase: Option>, + #[serde(rename = "guild_connections", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub guild_connections: Option>, +} + +impl GuildRoleTagsResponse { + pub fn new() -> GuildRoleTagsResponse { + GuildRoleTagsResponse { + premium_subscriber: None, + bot_id: None, + integration_id: None, + subscription_listing_id: None, + available_for_purchase: None, + guild_connections: None, + } + } +} + diff --git a/src/models/guild_sticker_response.rs b/src/models/guild_sticker_response.rs new file mode 100644 index 0000000..7a118ae --- /dev/null +++ b/src/models/guild_sticker_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildStickerResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "tags")] + pub tags: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "format_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub format_type: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "available")] + pub available: bool, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, +} + +impl GuildStickerResponse { + pub fn new(id: String, name: String, tags: String, r#type: i32, available: bool, guild_id: String) -> GuildStickerResponse { + GuildStickerResponse { + id, + name, + tags, + r#type, + format_type: None, + description: None, + available, + guild_id, + user: None, + } + } +} + diff --git a/src/models/guild_subscription_integration_response.rs b/src/models/guild_subscription_integration_response.rs new file mode 100644 index 0000000..fd693c1 --- /dev/null +++ b/src/models/guild_subscription_integration_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildSubscriptionIntegrationResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "id")] + pub id: String, +} + +impl GuildSubscriptionIntegrationResponse { + pub fn new(r#type: Option, id: String) -> GuildSubscriptionIntegrationResponse { + GuildSubscriptionIntegrationResponse { + r#type, + name: None, + account: None, + enabled: None, + id, + } + } +} + diff --git a/src/models/guild_template_channel_response.rs b/src/models/guild_template_channel_response.rs new file mode 100644 index 0000000..85d5ff1 --- /dev/null +++ b/src/models/guild_template_channel_response.rs @@ -0,0 +1,120 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildTemplateChannelResponse { + #[serde(rename = "id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub id: Option>, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "topic", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub topic: Option>, + #[serde(rename = "bitrate")] + pub bitrate: i32, + #[serde(rename = "user_limit")] + pub user_limit: i32, + #[serde(rename = "nsfw")] + pub nsfw: bool, + #[serde(rename = "rate_limit_per_user")] + pub rate_limit_per_user: i32, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "permission_overwrites")] + pub permission_overwrites: Vec, + #[serde(rename = "available_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>>, + #[serde(rename = "template")] + pub template: String, + #[serde(rename = "default_reaction_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>>, + #[serde(rename = "default_thread_rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option>, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "icon_emoji", skip_serializing_if = "Option::is_none")] + pub icon_emoji: Option, + #[serde(rename = "theme_color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub theme_color: Option>, +} + +impl GuildTemplateChannelResponse { + pub fn new(r#type: i32, bitrate: i32, user_limit: i32, nsfw: bool, rate_limit_per_user: i32, permission_overwrites: Vec, template: String) -> GuildTemplateChannelResponse { + GuildTemplateChannelResponse { + id: None, + r#type, + name: None, + position: None, + topic: None, + bitrate, + user_limit, + nsfw, + rate_limit_per_user, + parent_id: None, + default_auto_archive_duration: None, + permission_overwrites, + available_tags: None, + template, + default_reaction_emoji: None, + default_thread_rate_limit_per_user: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + icon_emoji: None, + theme_color: None, + } + } +} + diff --git a/src/models/guild_template_channel_tags.rs b/src/models/guild_template_channel_tags.rs new file mode 100644 index 0000000..bd1ae06 --- /dev/null +++ b/src/models/guild_template_channel_tags.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildTemplateChannelTags { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "moderated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub moderated: Option>, +} + +impl GuildTemplateChannelTags { + pub fn new(name: String) -> GuildTemplateChannelTags { + GuildTemplateChannelTags { + name, + emoji_id: None, + emoji_name: None, + moderated: None, + } + } +} + diff --git a/src/models/guild_template_response.rs b/src/models/guild_template_response.rs new file mode 100644 index 0000000..fc220d4 --- /dev/null +++ b/src/models/guild_template_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildTemplateResponse { + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "usage_count")] + pub usage_count: i32, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "creator", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub creator: Option>>, + #[serde(rename = "created_at")] + pub created_at: String, + #[serde(rename = "updated_at")] + pub updated_at: String, + #[serde(rename = "source_guild_id")] + pub source_guild_id: String, + #[serde(rename = "serialized_source_guild")] + pub serialized_source_guild: Box, + #[serde(rename = "is_dirty", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_dirty: Option>, +} + +impl GuildTemplateResponse { + pub fn new(code: String, name: String, usage_count: i32, creator_id: String, created_at: String, updated_at: String, source_guild_id: String, serialized_source_guild: models::GuildTemplateSnapshotResponse) -> GuildTemplateResponse { + GuildTemplateResponse { + code, + name, + description: None, + usage_count, + creator_id, + creator: None, + created_at, + updated_at, + source_guild_id, + serialized_source_guild: Box::new(serialized_source_guild), + is_dirty: None, + } + } +} + diff --git a/src/models/guild_template_role_response.rs b/src/models/guild_template_role_response.rs new file mode 100644 index 0000000..9db0af4 --- /dev/null +++ b/src/models/guild_template_role_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildTemplateRoleResponse { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "permissions")] + pub permissions: String, + #[serde(rename = "color")] + pub color: i32, + #[serde(rename = "hoist")] + pub hoist: bool, + #[serde(rename = "mentionable")] + pub mentionable: bool, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "unicode_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unicode_emoji: Option>, +} + +impl GuildTemplateRoleResponse { + pub fn new(id: i32, name: String, permissions: String, color: i32, hoist: bool, mentionable: bool) -> GuildTemplateRoleResponse { + GuildTemplateRoleResponse { + id, + name, + permissions, + color, + hoist, + mentionable, + icon: None, + unicode_emoji: None, + } + } +} + diff --git a/src/models/guild_template_snapshot_response.rs b/src/models/guild_template_snapshot_response.rs new file mode 100644 index 0000000..0c67b34 --- /dev/null +++ b/src/models/guild_template_snapshot_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildTemplateSnapshotResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + #[serde(rename = "verification_level")] + pub verification_level: i32, + #[serde(rename = "default_message_notifications")] + pub default_message_notifications: i32, + #[serde(rename = "explicit_content_filter")] + pub explicit_content_filter: i32, + #[serde(rename = "preferred_locale")] + pub preferred_locale: String, + #[serde(rename = "afk_channel_id", skip_serializing_if = "Option::is_none")] + pub afk_channel_id: Option, + #[serde(rename = "afk_timeout", deserialize_with = "Option::deserialize")] + pub afk_timeout: Option, + #[serde(rename = "system_channel_id", skip_serializing_if = "Option::is_none")] + pub system_channel_id: Option, + #[serde(rename = "system_channel_flags")] + pub system_channel_flags: i32, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "channels")] + pub channels: Vec, +} + +impl GuildTemplateSnapshotResponse { + pub fn new(name: String, verification_level: i32, default_message_notifications: i32, explicit_content_filter: i32, preferred_locale: String, afk_timeout: Option, system_channel_flags: i32, roles: Vec, channels: Vec) -> GuildTemplateSnapshotResponse { + GuildTemplateSnapshotResponse { + name, + description: None, + region: None, + verification_level, + default_message_notifications, + explicit_content_filter, + preferred_locale, + afk_channel_id: None, + afk_timeout, + system_channel_id: None, + system_channel_flags, + roles, + channels, + } + } +} + diff --git a/src/models/guild_welcome_channel.rs b/src/models/guild_welcome_channel.rs new file mode 100644 index 0000000..6f1a907 --- /dev/null +++ b/src/models/guild_welcome_channel.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildWelcomeChannel { + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl GuildWelcomeChannel { + pub fn new(channel_id: String, description: String) -> GuildWelcomeChannel { + GuildWelcomeChannel { + channel_id, + description, + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/guild_welcome_screen_channel_response.rs b/src/models/guild_welcome_screen_channel_response.rs new file mode 100644 index 0000000..f1826a2 --- /dev/null +++ b/src/models/guild_welcome_screen_channel_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildWelcomeScreenChannelResponse { + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl GuildWelcomeScreenChannelResponse { + pub fn new(channel_id: String, description: String) -> GuildWelcomeScreenChannelResponse { + GuildWelcomeScreenChannelResponse { + channel_id, + description, + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/guild_welcome_screen_response.rs b/src/models/guild_welcome_screen_response.rs new file mode 100644 index 0000000..724b86e --- /dev/null +++ b/src/models/guild_welcome_screen_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildWelcomeScreenResponse { + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "welcome_channels")] + pub welcome_channels: Vec, +} + +impl GuildWelcomeScreenResponse { + pub fn new(welcome_channels: Vec) -> GuildWelcomeScreenResponse { + GuildWelcomeScreenResponse { + description: None, + welcome_channels, + } + } +} + diff --git a/src/models/guild_with_counts_response.rs b/src/models/guild_with_counts_response.rs new file mode 100644 index 0000000..56a8bfb --- /dev/null +++ b/src/models/guild_with_counts_response.rs @@ -0,0 +1,180 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GuildWithCountsResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "home_header", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub home_header: Option>, + #[serde(rename = "splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub splash: Option>, + #[serde(rename = "discovery_splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discovery_splash: Option>, + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "owner_id")] + pub owner_id: String, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "region")] + pub region: String, + #[serde(rename = "afk_channel_id", skip_serializing_if = "Option::is_none")] + pub afk_channel_id: Option, + #[serde(rename = "afk_timeout", deserialize_with = "Option::deserialize")] + pub afk_timeout: Option, + #[serde(rename = "system_channel_id", skip_serializing_if = "Option::is_none")] + pub system_channel_id: Option, + #[serde(rename = "system_channel_flags")] + pub system_channel_flags: i32, + #[serde(rename = "widget_enabled")] + pub widget_enabled: bool, + #[serde(rename = "widget_channel_id", skip_serializing_if = "Option::is_none")] + pub widget_channel_id: Option, + #[serde(rename = "verification_level")] + pub verification_level: i32, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "default_message_notifications")] + pub default_message_notifications: i32, + #[serde(rename = "mfa_level")] + pub mfa_level: i32, + #[serde(rename = "explicit_content_filter")] + pub explicit_content_filter: i32, + #[serde(rename = "max_presences", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_presences: Option>, + #[serde(rename = "max_members", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_members: Option>, + #[serde(rename = "max_stage_video_channel_users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_stage_video_channel_users: Option>, + #[serde(rename = "max_video_channel_users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_video_channel_users: Option>, + #[serde(rename = "vanity_url_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub vanity_url_code: Option>, + #[serde(rename = "premium_tier")] + pub premium_tier: i32, + #[serde(rename = "premium_subscription_count")] + pub premium_subscription_count: i32, + #[serde(rename = "preferred_locale")] + pub preferred_locale: String, + #[serde(rename = "rules_channel_id", skip_serializing_if = "Option::is_none")] + pub rules_channel_id: Option, + #[serde(rename = "safety_alerts_channel_id", skip_serializing_if = "Option::is_none")] + pub safety_alerts_channel_id: Option, + #[serde(rename = "public_updates_channel_id", skip_serializing_if = "Option::is_none")] + pub public_updates_channel_id: Option, + #[serde(rename = "premium_progress_bar_enabled")] + pub premium_progress_bar_enabled: bool, + #[serde(rename = "nsfw")] + pub nsfw: bool, + #[serde(rename = "nsfw_level", deserialize_with = "Option::deserialize")] + pub nsfw_level: Option, + #[serde(rename = "emojis")] + pub emojis: Vec, + #[serde(rename = "stickers")] + pub stickers: Vec, + #[serde(rename = "approximate_member_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_member_count: Option>, + #[serde(rename = "approximate_presence_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_presence_count: Option>, +} + +impl GuildWithCountsResponse { + pub fn new(id: String, name: String, features: Vec, owner_id: String, region: String, afk_timeout: Option, system_channel_flags: i32, widget_enabled: bool, verification_level: i32, roles: Vec, default_message_notifications: i32, mfa_level: i32, explicit_content_filter: i32, premium_tier: i32, premium_subscription_count: i32, preferred_locale: String, premium_progress_bar_enabled: bool, nsfw: bool, nsfw_level: Option, emojis: Vec, stickers: Vec) -> GuildWithCountsResponse { + GuildWithCountsResponse { + id, + name, + icon: None, + description: None, + home_header: None, + splash: None, + discovery_splash: None, + features, + banner: None, + owner_id, + application_id: None, + region, + afk_channel_id: None, + afk_timeout, + system_channel_id: None, + system_channel_flags, + widget_enabled, + widget_channel_id: None, + verification_level, + roles, + default_message_notifications, + mfa_level, + explicit_content_filter, + max_presences: None, + max_members: None, + max_stage_video_channel_users: None, + max_video_channel_users: None, + vanity_url_code: None, + premium_tier, + premium_subscription_count, + preferred_locale, + rules_channel_id: None, + safety_alerts_channel_id: None, + public_updates_channel_id: None, + premium_progress_bar_enabled, + nsfw, + nsfw_level, + emojis, + stickers, + approximate_member_count: None, + approximate_presence_count: None, + } + } +} + diff --git a/src/models/incoming_webhook_interaction_request.rs b/src/models/incoming_webhook_interaction_request.rs new file mode 100644 index 0000000..00ebd63 --- /dev/null +++ b/src/models/incoming_webhook_interaction_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IncomingWebhookInteractionRequest { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "tts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tts: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl IncomingWebhookInteractionRequest { + pub fn new() -> IncomingWebhookInteractionRequest { + IncomingWebhookInteractionRequest { + content: None, + embeds: None, + allowed_mentions: None, + components: None, + attachments: None, + poll: None, + tts: None, + flags: None, + } + } +} + diff --git a/src/models/incoming_webhook_request_partial.rs b/src/models/incoming_webhook_request_partial.rs new file mode 100644 index 0000000..ab2ae4f --- /dev/null +++ b/src/models/incoming_webhook_request_partial.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IncomingWebhookRequestPartial { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "tts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tts: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + #[serde(rename = "avatar_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_url: Option>, + #[serde(rename = "thread_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thread_name: Option>, + #[serde(rename = "applied_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>>, +} + +impl IncomingWebhookRequestPartial { + pub fn new() -> IncomingWebhookRequestPartial { + IncomingWebhookRequestPartial { + content: None, + embeds: None, + allowed_mentions: None, + components: None, + attachments: None, + poll: None, + tts: None, + flags: None, + username: None, + avatar_url: None, + thread_name: None, + applied_tags: None, + } + } +} + diff --git a/src/models/incoming_webhook_update_for_interaction_callback_request_partial.rs b/src/models/incoming_webhook_update_for_interaction_callback_request_partial.rs new file mode 100644 index 0000000..c2c6a3a --- /dev/null +++ b/src/models/incoming_webhook_update_for_interaction_callback_request_partial.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IncomingWebhookUpdateForInteractionCallbackRequestPartial { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl IncomingWebhookUpdateForInteractionCallbackRequestPartial { + pub fn new() -> IncomingWebhookUpdateForInteractionCallbackRequestPartial { + IncomingWebhookUpdateForInteractionCallbackRequestPartial { + content: None, + embeds: None, + allowed_mentions: None, + components: None, + attachments: None, + flags: None, + } + } +} + diff --git a/src/models/incoming_webhook_update_request_partial.rs b/src/models/incoming_webhook_update_request_partial.rs new file mode 100644 index 0000000..060678a --- /dev/null +++ b/src/models/incoming_webhook_update_request_partial.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IncomingWebhookUpdateRequestPartial { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl IncomingWebhookUpdateRequestPartial { + pub fn new() -> IncomingWebhookUpdateRequestPartial { + IncomingWebhookUpdateRequestPartial { + content: None, + embeds: None, + allowed_mentions: None, + components: None, + attachments: None, + poll: None, + flags: None, + } + } +} + diff --git a/src/models/inner_errors.rs b/src/models/inner_errors.rs new file mode 100644 index 0000000..17ac2f9 --- /dev/null +++ b/src/models/inner_errors.rs @@ -0,0 +1,61 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InnerErrors { + /// The list of errors for this field + #[serde(rename = "_errors")] + pub _errors: Vec, +} + +impl InnerErrors { + pub fn new(_errors: Vec) -> InnerErrors { + InnerErrors { + _errors, + } + } +} + diff --git a/src/models/integration_application_response.rs b/src/models/integration_application_response.rs new file mode 100644 index 0000000..0b6c0cf --- /dev/null +++ b/src/models/integration_application_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct IntegrationApplicationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "primary_sku_id", skip_serializing_if = "Option::is_none")] + pub primary_sku_id: Option, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>>, +} + +impl IntegrationApplicationResponse { + pub fn new(id: String, name: String, description: String) -> IntegrationApplicationResponse { + IntegrationApplicationResponse { + id, + name, + icon: None, + description, + r#type: None, + cover_image: None, + primary_sku_id: None, + bot: None, + } + } +} + diff --git a/src/models/interaction_application_command_autocomplete_callback_integer_data.rs b/src/models/interaction_application_command_autocomplete_callback_integer_data.rs new file mode 100644 index 0000000..4374c94 --- /dev/null +++ b/src/models/interaction_application_command_autocomplete_callback_integer_data.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InteractionApplicationCommandAutocompleteCallbackIntegerData { + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, +} + +impl InteractionApplicationCommandAutocompleteCallbackIntegerData { + pub fn new() -> InteractionApplicationCommandAutocompleteCallbackIntegerData { + InteractionApplicationCommandAutocompleteCallbackIntegerData { + choices: None, + } + } +} + diff --git a/src/models/interaction_application_command_autocomplete_callback_number_data.rs b/src/models/interaction_application_command_autocomplete_callback_number_data.rs new file mode 100644 index 0000000..aa9c6c9 --- /dev/null +++ b/src/models/interaction_application_command_autocomplete_callback_number_data.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InteractionApplicationCommandAutocompleteCallbackNumberData { + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, +} + +impl InteractionApplicationCommandAutocompleteCallbackNumberData { + pub fn new() -> InteractionApplicationCommandAutocompleteCallbackNumberData { + InteractionApplicationCommandAutocompleteCallbackNumberData { + choices: None, + } + } +} + diff --git a/src/models/interaction_application_command_autocomplete_callback_string_data.rs b/src/models/interaction_application_command_autocomplete_callback_string_data.rs new file mode 100644 index 0000000..2da0a78 --- /dev/null +++ b/src/models/interaction_application_command_autocomplete_callback_string_data.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InteractionApplicationCommandAutocompleteCallbackStringData { + #[serde(rename = "choices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub choices: Option>>, +} + +impl InteractionApplicationCommandAutocompleteCallbackStringData { + pub fn new() -> InteractionApplicationCommandAutocompleteCallbackStringData { + InteractionApplicationCommandAutocompleteCallbackStringData { + choices: None, + } + } +} + diff --git a/src/models/interaction_callback_response.rs b/src/models/interaction_callback_response.rs new file mode 100644 index 0000000..30ae859 --- /dev/null +++ b/src/models/interaction_callback_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InteractionCallbackResponse { + #[serde(rename = "interaction")] + pub interaction: Box, + #[serde(rename = "resource", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource: Option>>, +} + +impl InteractionCallbackResponse { + pub fn new(interaction: models::InteractionResponse) -> InteractionCallbackResponse { + InteractionCallbackResponse { + interaction: Box::new(interaction), + resource: None, + } + } +} + diff --git a/src/models/interaction_callback_response_resource.rs b/src/models/interaction_callback_response_resource.rs new file mode 100644 index 0000000..ce96723 --- /dev/null +++ b/src/models/interaction_callback_response_resource.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InteractionCallbackResponseResource { + CreateMessageInteractionCallbackResponse(Box), + LaunchActivityInteractionCallbackResponse(Box), + UpdateMessageInteractionCallbackResponse(Box), +} + +impl Default for InteractionCallbackResponseResource { + fn default() -> Self { + Self::CreateMessageInteractionCallbackResponse(Default::default()) + } +} + diff --git a/src/models/interaction_response.rs b/src/models/interaction_response.rs new file mode 100644 index 0000000..504e7b0 --- /dev/null +++ b/src/models/interaction_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InteractionResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "response_message_id", skip_serializing_if = "Option::is_none")] + pub response_message_id: Option, + #[serde(rename = "response_message_loading", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_message_loading: Option>, + #[serde(rename = "response_message_ephemeral", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_message_ephemeral: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, +} + +impl InteractionResponse { + pub fn new(id: String, r#type: i32) -> InteractionResponse { + InteractionResponse { + id, + r#type, + response_message_id: None, + response_message_loading: None, + response_message_ephemeral: None, + channel_id: None, + guild_id: None, + } + } +} + diff --git a/src/models/invite_application_response.rs b/src/models/invite_application_response.rs new file mode 100644 index 0000000..130d8c2 --- /dev/null +++ b/src/models/invite_application_response.rs @@ -0,0 +1,123 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InviteApplicationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "primary_sku_id", skip_serializing_if = "Option::is_none")] + pub primary_sku_id: Option, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>>, + #[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub slug: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "rpc_origins", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rpc_origins: Option>>, + #[serde(rename = "bot_public", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_public: Option>, + #[serde(rename = "bot_require_code_grant", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_require_code_grant: Option>, + #[serde(rename = "terms_of_service_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub terms_of_service_url: Option>, + #[serde(rename = "privacy_policy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_policy_url: Option>, + #[serde(rename = "custom_install_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_install_url: Option>, + #[serde(rename = "install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub install_params: Option>>, + #[serde(rename = "integration_types_config", skip_serializing_if = "Option::is_none")] + pub integration_types_config: Option>, + #[serde(rename = "verify_key")] + pub verify_key: String, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "max_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_participants: Option>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, +} + +impl InviteApplicationResponse { + pub fn new(id: String, name: String, description: String, verify_key: String, flags: i32) -> InviteApplicationResponse { + InviteApplicationResponse { + id, + name, + icon: None, + description, + r#type: None, + cover_image: None, + primary_sku_id: None, + bot: None, + slug: None, + guild_id: None, + rpc_origins: None, + bot_public: None, + bot_require_code_grant: None, + terms_of_service_url: None, + privacy_policy_url: None, + custom_install_url: None, + install_params: None, + integration_types_config: None, + verify_key, + flags, + max_participants: None, + tags: None, + } + } +} + diff --git a/src/models/invite_channel_recipient_response.rs b/src/models/invite_channel_recipient_response.rs new file mode 100644 index 0000000..09ff040 --- /dev/null +++ b/src/models/invite_channel_recipient_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InviteChannelRecipientResponse { + #[serde(rename = "username")] + pub username: String, +} + +impl InviteChannelRecipientResponse { + pub fn new(username: String) -> InviteChannelRecipientResponse { + InviteChannelRecipientResponse { + username, + } + } +} + diff --git a/src/models/invite_channel_response.rs b/src/models/invite_channel_response.rs new file mode 100644 index 0000000..c7f8bf9 --- /dev/null +++ b/src/models/invite_channel_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InviteChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "recipients", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub recipients: Option>>, +} + +impl InviteChannelResponse { + pub fn new(id: String, r#type: i32) -> InviteChannelResponse { + InviteChannelResponse { + id, + r#type, + name: None, + icon: None, + recipients: None, + } + } +} + diff --git a/src/models/invite_guild_response.rs b/src/models/invite_guild_response.rs new file mode 100644 index 0000000..bea9bcc --- /dev/null +++ b/src/models/invite_guild_response.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InviteGuildResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "splash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub splash: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "verification_level", skip_serializing_if = "Option::is_none")] + pub verification_level: Option, + #[serde(rename = "vanity_url_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub vanity_url_code: Option>, + #[serde(rename = "nsfw_level", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw_level: Option>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, + #[serde(rename = "premium_subscription_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub premium_subscription_count: Option>, +} + +impl InviteGuildResponse { + pub fn new(id: String, name: String, features: Vec) -> InviteGuildResponse { + InviteGuildResponse { + id, + name, + splash: None, + banner: None, + description: None, + icon: None, + features, + verification_level: None, + vanity_url_code: None, + nsfw_level: None, + nsfw: None, + premium_subscription_count: None, + } + } +} + diff --git a/src/models/keyword_rule_response.rs b/src/models/keyword_rule_response.rs new file mode 100644 index 0000000..47b136c --- /dev/null +++ b/src/models/keyword_rule_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct KeywordRuleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions")] + pub actions: Vec, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: Box, +} + +impl KeywordRuleResponse { + pub fn new(id: String, guild_id: String, creator_id: String, name: String, event_type: i32, actions: Vec, trigger_type: i32, trigger_metadata: models::KeywordTriggerMetadataResponse) -> KeywordRuleResponse { + KeywordRuleResponse { + id, + guild_id, + creator_id, + name, + event_type, + actions, + trigger_type, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_metadata: Box::new(trigger_metadata), + } + } +} + diff --git a/src/models/keyword_trigger_metadata.rs b/src/models/keyword_trigger_metadata.rs new file mode 100644 index 0000000..f1bd006 --- /dev/null +++ b/src/models/keyword_trigger_metadata.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct KeywordTriggerMetadata { + #[serde(rename = "keyword_filter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub keyword_filter: Option>>, + #[serde(rename = "regex_patterns", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub regex_patterns: Option>>, + #[serde(rename = "allow_list", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allow_list: Option>>, +} + +impl KeywordTriggerMetadata { + pub fn new() -> KeywordTriggerMetadata { + KeywordTriggerMetadata { + keyword_filter: None, + regex_patterns: None, + allow_list: None, + } + } +} + diff --git a/src/models/keyword_trigger_metadata_response.rs b/src/models/keyword_trigger_metadata_response.rs new file mode 100644 index 0000000..94d2bed --- /dev/null +++ b/src/models/keyword_trigger_metadata_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct KeywordTriggerMetadataResponse { + #[serde(rename = "keyword_filter")] + pub keyword_filter: Vec, + #[serde(rename = "regex_patterns")] + pub regex_patterns: Vec, + #[serde(rename = "allow_list")] + pub allow_list: Vec, +} + +impl KeywordTriggerMetadataResponse { + pub fn new(keyword_filter: Vec, regex_patterns: Vec, allow_list: Vec) -> KeywordTriggerMetadataResponse { + KeywordTriggerMetadataResponse { + keyword_filter, + regex_patterns, + allow_list, + } + } +} + diff --git a/src/models/keyword_upsert_request.rs b/src/models/keyword_upsert_request.rs new file mode 100644 index 0000000..d198fe4 --- /dev/null +++ b/src/models/keyword_upsert_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct KeywordUpsertRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "trigger_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>>, +} + +impl KeywordUpsertRequest { + pub fn new(name: String, event_type: i32, trigger_type: i32) -> KeywordUpsertRequest { + KeywordUpsertRequest { + name, + event_type, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type, + trigger_metadata: None, + } + } +} + diff --git a/src/models/keyword_upsert_request_partial.rs b/src/models/keyword_upsert_request_partial.rs new file mode 100644 index 0000000..a00c46c --- /dev/null +++ b/src/models/keyword_upsert_request_partial.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct KeywordUpsertRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")] + pub event_type: Option, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type", skip_serializing_if = "Option::is_none")] + pub trigger_type: Option, + #[serde(rename = "trigger_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>>, +} + +impl KeywordUpsertRequestPartial { + pub fn new() -> KeywordUpsertRequestPartial { + KeywordUpsertRequestPartial { + name: None, + event_type: None, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type: None, + trigger_metadata: None, + } + } +} + diff --git a/src/models/launch_activity_interaction_callback_request.rs b/src/models/launch_activity_interaction_callback_request.rs new file mode 100644 index 0000000..f58bc3e --- /dev/null +++ b/src/models/launch_activity_interaction_callback_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LaunchActivityInteractionCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, +} + +impl LaunchActivityInteractionCallbackRequest { + pub fn new(r#type: Option) -> LaunchActivityInteractionCallbackRequest { + LaunchActivityInteractionCallbackRequest { + r#type, + } + } +} + diff --git a/src/models/launch_activity_interaction_callback_response.rs b/src/models/launch_activity_interaction_callback_response.rs new file mode 100644 index 0000000..9768f9c --- /dev/null +++ b/src/models/launch_activity_interaction_callback_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LaunchActivityInteractionCallbackResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, +} + +impl LaunchActivityInteractionCallbackResponse { + pub fn new(r#type: Option) -> LaunchActivityInteractionCallbackResponse { + LaunchActivityInteractionCallbackResponse { + r#type, + } + } +} + diff --git a/src/models/list_application_emojis_response.rs b/src/models/list_application_emojis_response.rs new file mode 100644 index 0000000..7a1f7e3 --- /dev/null +++ b/src/models/list_application_emojis_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListApplicationEmojisResponse { + #[serde(rename = "items")] + pub items: Vec, +} + +impl ListApplicationEmojisResponse { + pub fn new(items: Vec) -> ListApplicationEmojisResponse { + ListApplicationEmojisResponse { + items, + } + } +} + diff --git a/src/models/list_auto_moderation_rules_200_response_inner.rs b/src/models/list_auto_moderation_rules_200_response_inner.rs new file mode 100644 index 0000000..ebd435c --- /dev/null +++ b/src/models/list_auto_moderation_rules_200_response_inner.rs @@ -0,0 +1,62 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAutoModerationRules200ResponseInner { + DefaultKeywordRuleResponse(Box), + KeywordRuleResponse(Box), + MlSpamRuleResponse(Box), + MentionSpamRuleResponse(Box), + SpamLinkRuleResponse(Box), +} + +impl Default for ListAutoModerationRules200ResponseInner { + fn default() -> Self { + Self::DefaultKeywordRuleResponse(Default::default()) + } +} + diff --git a/src/models/list_channel_invites_200_response_inner.rs b/src/models/list_channel_invites_200_response_inner.rs new file mode 100644 index 0000000..009e4f7 --- /dev/null +++ b/src/models/list_channel_invites_200_response_inner.rs @@ -0,0 +1,123 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListChannelInvites200ResponseInner { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "inviter", skip_serializing_if = "Option::is_none")] + pub inviter: Option>, + #[serde(rename = "max_age", skip_serializing_if = "Option::is_none")] + pub max_age: Option, + #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] + pub created_at: Option, + #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")] + pub expires_at: Option, + #[serde(rename = "friends_count", skip_serializing_if = "Option::is_none")] + pub friends_count: Option, + #[serde(rename = "channel", skip_serializing_if = "Option::is_none")] + pub channel: Option>, + #[serde(rename = "is_contact", skip_serializing_if = "Option::is_none")] + pub is_contact: Option, + #[serde(rename = "uses", skip_serializing_if = "Option::is_none")] + pub uses: Option, + #[serde(rename = "max_uses", skip_serializing_if = "Option::is_none")] + pub max_uses: Option, + #[serde(rename = "flags", skip_serializing_if = "Option::is_none")] + pub flags: Option, + #[serde(rename = "approximate_member_count", skip_serializing_if = "Option::is_none")] + pub approximate_member_count: Option, + #[serde(rename = "guild", skip_serializing_if = "Option::is_none")] + pub guild: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "target_type", skip_serializing_if = "Option::is_none")] + pub target_type: Option, + #[serde(rename = "target_user", skip_serializing_if = "Option::is_none")] + pub target_user: Option>, + #[serde(rename = "target_application", skip_serializing_if = "Option::is_none")] + pub target_application: Option>, + #[serde(rename = "guild_scheduled_event", skip_serializing_if = "Option::is_none")] + pub guild_scheduled_event: Option>, + #[serde(rename = "temporary", skip_serializing_if = "Option::is_none")] + pub temporary: Option, + #[serde(rename = "approximate_presence_count", skip_serializing_if = "Option::is_none")] + pub approximate_presence_count: Option, + #[serde(rename = "is_nickname_changeable", skip_serializing_if = "Option::is_none")] + pub is_nickname_changeable: Option, +} + +impl ListChannelInvites200ResponseInner { + pub fn new(code: String) -> ListChannelInvites200ResponseInner { + ListChannelInvites200ResponseInner { + r#type: None, + code, + inviter: None, + max_age: None, + created_at: None, + expires_at: None, + friends_count: None, + channel: None, + is_contact: None, + uses: None, + max_uses: None, + flags: None, + approximate_member_count: None, + guild: None, + guild_id: None, + target_type: None, + target_user: None, + target_application: None, + guild_scheduled_event: None, + temporary: None, + approximate_presence_count: None, + is_nickname_changeable: None, + } + } +} + diff --git a/src/models/list_channel_webhooks_200_response_inner.rs b/src/models/list_channel_webhooks_200_response_inner.rs new file mode 100644 index 0000000..231da7e --- /dev/null +++ b/src/models/list_channel_webhooks_200_response_inner.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListChannelWebhooks200ResponseInner { + ApplicationIncomingWebhookResponse(Box), + ChannelFollowerWebhookResponse(Box), + GuildIncomingWebhookResponse(Box), +} + +impl Default for ListChannelWebhooks200ResponseInner { + fn default() -> Self { + Self::ApplicationIncomingWebhookResponse(Default::default()) + } +} + diff --git a/src/models/list_guild_integrations_200_response_inner.rs b/src/models/list_guild_integrations_200_response_inner.rs new file mode 100644 index 0000000..7ad39f0 --- /dev/null +++ b/src/models/list_guild_integrations_200_response_inner.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildIntegrations200ResponseInner { + DiscordIntegrationResponse(Box), + ExternalConnectionIntegrationResponse(Box), + GuildSubscriptionIntegrationResponse(Box), +} + +impl Default for ListGuildIntegrations200ResponseInner { + fn default() -> Self { + Self::DiscordIntegrationResponse(Default::default()) + } +} + diff --git a/src/models/list_guild_scheduled_events_200_response_inner.rs b/src/models/list_guild_scheduled_events_200_response_inner.rs new file mode 100644 index 0000000..8f1ed49 --- /dev/null +++ b/src/models/list_guild_scheduled_events_200_response_inner.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListGuildScheduledEvents200ResponseInner { + ExternalScheduledEventResponse(Box), + StageScheduledEventResponse(Box), + VoiceScheduledEventResponse(Box), +} + +impl Default for ListGuildScheduledEvents200ResponseInner { + fn default() -> Self { + Self::ExternalScheduledEventResponse(Default::default()) + } +} + diff --git a/src/models/list_guild_soundboard_sounds_response.rs b/src/models/list_guild_soundboard_sounds_response.rs new file mode 100644 index 0000000..dabda4d --- /dev/null +++ b/src/models/list_guild_soundboard_sounds_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListGuildSoundboardSoundsResponse { + #[serde(rename = "items")] + pub items: Vec, +} + +impl ListGuildSoundboardSoundsResponse { + pub fn new(items: Vec) -> ListGuildSoundboardSoundsResponse { + ListGuildSoundboardSoundsResponse { + items, + } + } +} + diff --git a/src/models/lobby_member_request.rs b/src/models/lobby_member_request.rs new file mode 100644 index 0000000..8f1e69f --- /dev/null +++ b/src/models/lobby_member_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LobbyMemberRequest { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl LobbyMemberRequest { + pub fn new(id: String) -> LobbyMemberRequest { + LobbyMemberRequest { + id, + metadata: None, + flags: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum FlagsEnum { + #[serde(rename = "1")] + Variant1, +} + +impl Default for FlagsEnum { + fn default() -> FlagsEnum { + Self::Variant1 + } +} + diff --git a/src/models/lobby_member_response.rs b/src/models/lobby_member_response.rs new file mode 100644 index 0000000..0a392c7 --- /dev/null +++ b/src/models/lobby_member_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LobbyMemberResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "flags")] + pub flags: i32, +} + +impl LobbyMemberResponse { + pub fn new(id: String, flags: i32) -> LobbyMemberResponse { + LobbyMemberResponse { + id, + metadata: None, + flags, + } + } +} + diff --git a/src/models/lobby_message_response.rs b/src/models/lobby_message_response.rs new file mode 100644 index 0000000..b2dc274 --- /dev/null +++ b/src/models/lobby_message_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LobbyMessageResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "content")] + pub content: String, + #[serde(rename = "lobby_id")] + pub lobby_id: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "author")] + pub author: Box, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, +} + +impl LobbyMessageResponse { + pub fn new(id: String, r#type: i32, content: String, lobby_id: String, channel_id: String, author: models::UserResponse, flags: i32) -> LobbyMessageResponse { + LobbyMessageResponse { + id, + r#type, + content, + lobby_id, + channel_id, + author: Box::new(author), + metadata: None, + flags, + application_id: None, + } + } +} + diff --git a/src/models/lobby_response.rs b/src/models/lobby_response.rs new file mode 100644 index 0000000..6dc3fe6 --- /dev/null +++ b/src/models/lobby_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LobbyResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "application_id")] + pub application_id: String, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "members", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub members: Option>>, + #[serde(rename = "linked_channel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub linked_channel: Option>>, +} + +impl LobbyResponse { + pub fn new(id: String, application_id: String) -> LobbyResponse { + LobbyResponse { + id, + application_id, + metadata: None, + members: None, + linked_channel: None, + } + } +} + diff --git a/src/models/media_gallery_component_for_message_request.rs b/src/models/media_gallery_component_for_message_request.rs new file mode 100644 index 0000000..693864a --- /dev/null +++ b/src/models/media_gallery_component_for_message_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MediaGalleryComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "items")] + pub items: Vec, +} + +impl MediaGalleryComponentForMessageRequest { + pub fn new(r#type: i32, items: Vec) -> MediaGalleryComponentForMessageRequest { + MediaGalleryComponentForMessageRequest { + r#type, + items, + } + } +} + diff --git a/src/models/media_gallery_component_response.rs b/src/models/media_gallery_component_response.rs new file mode 100644 index 0000000..305f267 --- /dev/null +++ b/src/models/media_gallery_component_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MediaGalleryComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "items")] + pub items: Vec, +} + +impl MediaGalleryComponentResponse { + pub fn new(r#type: i32, id: i32, items: Vec) -> MediaGalleryComponentResponse { + MediaGalleryComponentResponse { + r#type, + id, + items, + } + } +} + diff --git a/src/models/media_gallery_item_request.rs b/src/models/media_gallery_item_request.rs new file mode 100644 index 0000000..faff4f7 --- /dev/null +++ b/src/models/media_gallery_item_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MediaGalleryItemRequest { + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "spoiler", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub spoiler: Option>, + #[serde(rename = "media")] + pub media: Box, +} + +impl MediaGalleryItemRequest { + pub fn new(media: models::UnfurledMediaRequest) -> MediaGalleryItemRequest { + MediaGalleryItemRequest { + description: None, + spoiler: None, + media: Box::new(media), + } + } +} + diff --git a/src/models/media_gallery_item_response.rs b/src/models/media_gallery_item_response.rs new file mode 100644 index 0000000..1bd0372 --- /dev/null +++ b/src/models/media_gallery_item_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MediaGalleryItemResponse { + #[serde(rename = "media")] + pub media: Box, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "spoiler")] + pub spoiler: bool, +} + +impl MediaGalleryItemResponse { + pub fn new(media: models::UnfurledMediaResponse, spoiler: bool) -> MediaGalleryItemResponse { + MediaGalleryItemResponse { + media: Box::new(media), + description: None, + spoiler, + } + } +} + diff --git a/src/models/mention_spam_rule_response.rs b/src/models/mention_spam_rule_response.rs new file mode 100644 index 0000000..a191509 --- /dev/null +++ b/src/models/mention_spam_rule_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionSpamRuleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions")] + pub actions: Vec, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: Box, +} + +impl MentionSpamRuleResponse { + pub fn new(id: String, guild_id: String, creator_id: String, name: String, event_type: i32, actions: Vec, trigger_type: i32, trigger_metadata: models::MentionSpamTriggerMetadataResponse) -> MentionSpamRuleResponse { + MentionSpamRuleResponse { + id, + guild_id, + creator_id, + name, + event_type, + actions, + trigger_type, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_metadata: Box::new(trigger_metadata), + } + } +} + diff --git a/src/models/mention_spam_trigger_metadata.rs b/src/models/mention_spam_trigger_metadata.rs new file mode 100644 index 0000000..3a9d5c8 --- /dev/null +++ b/src/models/mention_spam_trigger_metadata.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionSpamTriggerMetadata { + #[serde(rename = "mention_total_limit")] + pub mention_total_limit: i32, + #[serde(rename = "mention_raid_protection_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mention_raid_protection_enabled: Option>, +} + +impl MentionSpamTriggerMetadata { + pub fn new(mention_total_limit: i32) -> MentionSpamTriggerMetadata { + MentionSpamTriggerMetadata { + mention_total_limit, + mention_raid_protection_enabled: None, + } + } +} + diff --git a/src/models/mention_spam_trigger_metadata_response.rs b/src/models/mention_spam_trigger_metadata_response.rs new file mode 100644 index 0000000..37969d9 --- /dev/null +++ b/src/models/mention_spam_trigger_metadata_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionSpamTriggerMetadataResponse { + #[serde(rename = "mention_total_limit")] + pub mention_total_limit: i32, + #[serde(rename = "mention_raid_protection_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mention_raid_protection_enabled: Option>, +} + +impl MentionSpamTriggerMetadataResponse { + pub fn new(mention_total_limit: i32) -> MentionSpamTriggerMetadataResponse { + MentionSpamTriggerMetadataResponse { + mention_total_limit, + mention_raid_protection_enabled: None, + } + } +} + diff --git a/src/models/mention_spam_upsert_request.rs b/src/models/mention_spam_upsert_request.rs new file mode 100644 index 0000000..e39bb9e --- /dev/null +++ b/src/models/mention_spam_upsert_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionSpamUpsertRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "trigger_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>>, +} + +impl MentionSpamUpsertRequest { + pub fn new(name: String, event_type: i32, trigger_type: i32) -> MentionSpamUpsertRequest { + MentionSpamUpsertRequest { + name, + event_type, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type, + trigger_metadata: None, + } + } +} + diff --git a/src/models/mention_spam_upsert_request_partial.rs b/src/models/mention_spam_upsert_request_partial.rs new file mode 100644 index 0000000..9014562 --- /dev/null +++ b/src/models/mention_spam_upsert_request_partial.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionSpamUpsertRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")] + pub event_type: Option, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type", skip_serializing_if = "Option::is_none")] + pub trigger_type: Option, + #[serde(rename = "trigger_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>>, +} + +impl MentionSpamUpsertRequestPartial { + pub fn new() -> MentionSpamUpsertRequestPartial { + MentionSpamUpsertRequestPartial { + name: None, + event_type: None, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type: None, + trigger_metadata: None, + } + } +} + diff --git a/src/models/mentionable_select_component_for_message_request.rs b/src/models/mentionable_select_component_for_message_request.rs new file mode 100644 index 0000000..55a45c7 --- /dev/null +++ b/src/models/mentionable_select_component_for_message_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionableSelectComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl MentionableSelectComponentForMessageRequest { + pub fn new(r#type: i32, custom_id: String) -> MentionableSelectComponentForMessageRequest { + MentionableSelectComponentForMessageRequest { + r#type, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/mentionable_select_component_for_message_request_default_values_inner.rs b/src/models/mentionable_select_component_for_message_request_default_values_inner.rs new file mode 100644 index 0000000..cc1ee42 --- /dev/null +++ b/src/models/mentionable_select_component_for_message_request_default_values_inner.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MentionableSelectComponentForMessageRequestDefaultValuesInner { + RoleSelectDefaultValue(Box), + UserSelectDefaultValue(Box), +} + +impl Default for MentionableSelectComponentForMessageRequestDefaultValuesInner { + fn default() -> Self { + Self::RoleSelectDefaultValue(Default::default()) + } +} + diff --git a/src/models/mentionable_select_component_response.rs b/src/models/mentionable_select_component_response.rs new file mode 100644 index 0000000..753e48e --- /dev/null +++ b/src/models/mentionable_select_component_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MentionableSelectComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl MentionableSelectComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String) -> MentionableSelectComponentResponse { + MentionableSelectComponentResponse { + r#type, + id, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/mentionable_select_component_response_default_values_inner.rs b/src/models/mentionable_select_component_response_default_values_inner.rs new file mode 100644 index 0000000..5110d41 --- /dev/null +++ b/src/models/mentionable_select_component_response_default_values_inner.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MentionableSelectComponentResponseDefaultValuesInner { + RoleSelectDefaultValueResponse(Box), + UserSelectDefaultValueResponse(Box), +} + +impl Default for MentionableSelectComponentResponseDefaultValuesInner { + fn default() -> Self { + Self::RoleSelectDefaultValueResponse(Default::default()) + } +} + diff --git a/src/models/message_allowed_mentions_request.rs b/src/models/message_allowed_mentions_request.rs new file mode 100644 index 0000000..2ed6f14 --- /dev/null +++ b/src/models/message_allowed_mentions_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageAllowedMentionsRequest { + #[serde(rename = "parse", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parse: Option>>, + #[serde(rename = "users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub users: Option>>, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, + #[serde(rename = "replied_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub replied_user: Option>, +} + +impl MessageAllowedMentionsRequest { + pub fn new() -> MessageAllowedMentionsRequest { + MessageAllowedMentionsRequest { + parse: None, + users: None, + roles: None, + replied_user: None, + } + } +} + diff --git a/src/models/message_attachment_request.rs b/src/models/message_attachment_request.rs new file mode 100644 index 0000000..4411a22 --- /dev/null +++ b/src/models/message_attachment_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageAttachmentRequest { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "filename", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub filename: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "duration_secs", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration_secs: Option>, + #[serde(rename = "waveform", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub waveform: Option>, + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "is_remix", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_remix: Option>, +} + +impl MessageAttachmentRequest { + pub fn new(id: String) -> MessageAttachmentRequest { + MessageAttachmentRequest { + id, + filename: None, + description: None, + duration_secs: None, + waveform: None, + title: None, + is_remix: None, + } + } +} + diff --git a/src/models/message_attachment_response.rs b/src/models/message_attachment_response.rs new file mode 100644 index 0000000..772fb56 --- /dev/null +++ b/src/models/message_attachment_response.rs @@ -0,0 +1,105 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageAttachmentResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "filename")] + pub filename: String, + #[serde(rename = "size")] + pub size: i32, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "proxy_url")] + pub proxy_url: String, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "duration_secs", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration_secs: Option>, + #[serde(rename = "waveform", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub waveform: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + #[serde(rename = "ephemeral", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ephemeral: Option>, + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "application", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub application: Option>>, + #[serde(rename = "clip_created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub clip_created_at: Option>, + #[serde(rename = "clip_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub clip_participants: Option>>, +} + +impl MessageAttachmentResponse { + pub fn new(id: String, filename: String, size: i32, url: String, proxy_url: String) -> MessageAttachmentResponse { + MessageAttachmentResponse { + id, + filename, + size, + url, + proxy_url, + width: None, + height: None, + duration_secs: None, + waveform: None, + description: None, + content_type: None, + ephemeral: None, + title: None, + application: None, + clip_created_at: None, + clip_participants: None, + } + } +} + diff --git a/src/models/message_call_response.rs b/src/models/message_call_response.rs new file mode 100644 index 0000000..355c9b8 --- /dev/null +++ b/src/models/message_call_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageCallResponse { + #[serde(rename = "ended_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ended_timestamp: Option>, + #[serde(rename = "participants")] + pub participants: Vec, +} + +impl MessageCallResponse { + pub fn new(participants: Vec) -> MessageCallResponse { + MessageCallResponse { + ended_timestamp: None, + participants, + } + } +} + diff --git a/src/models/message_component_interaction_metadata_response.rs b/src/models/message_component_interaction_metadata_response.rs new file mode 100644 index 0000000..f967b76 --- /dev/null +++ b/src/models/message_component_interaction_metadata_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageComponentInteractionMetadataResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "authorizing_integration_owners")] + pub authorizing_integration_owners: std::collections::HashMap, + #[serde(rename = "original_response_message_id", skip_serializing_if = "Option::is_none")] + pub original_response_message_id: Option, + #[serde(rename = "interacted_message_id")] + pub interacted_message_id: String, +} + +impl MessageComponentInteractionMetadataResponse { + pub fn new(id: String, r#type: i32, authorizing_integration_owners: std::collections::HashMap, interacted_message_id: String) -> MessageComponentInteractionMetadataResponse { + MessageComponentInteractionMetadataResponse { + id, + r#type, + user: None, + authorizing_integration_owners, + original_response_message_id: None, + interacted_message_id, + } + } +} + diff --git a/src/models/message_create_request.rs b/src/models/message_create_request.rs new file mode 100644 index 0000000..97b9b08 --- /dev/null +++ b/src/models/message_create_request.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageCreateRequest { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "sticker_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_ids: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "confetti_potion", skip_serializing_if = "Option::is_none")] + pub confetti_potion: Option, + #[serde(rename = "message_reference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_reference: Option>>, + #[serde(rename = "nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nonce: Option>>, + #[serde(rename = "enforce_nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enforce_nonce: Option>, + #[serde(rename = "tts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tts: Option>, +} + +impl MessageCreateRequest { + pub fn new() -> MessageCreateRequest { + MessageCreateRequest { + content: None, + embeds: None, + allowed_mentions: None, + sticker_ids: None, + components: None, + flags: None, + attachments: None, + poll: None, + confetti_potion: None, + message_reference: None, + nonce: None, + enforce_nonce: None, + tts: None, + } + } +} + diff --git a/src/models/message_edit_request_partial.rs b/src/models/message_edit_request_partial.rs new file mode 100644 index 0000000..c815457 --- /dev/null +++ b/src/models/message_edit_request_partial.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEditRequestPartial { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "sticker_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_ids: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, +} + +impl MessageEditRequestPartial { + pub fn new() -> MessageEditRequestPartial { + MessageEditRequestPartial { + content: None, + embeds: None, + flags: None, + allowed_mentions: None, + sticker_ids: None, + components: None, + attachments: None, + } + } +} + diff --git a/src/models/message_embed_author_response.rs b/src/models/message_embed_author_response.rs new file mode 100644 index 0000000..b42a477 --- /dev/null +++ b/src/models/message_embed_author_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedAuthorResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon_url: Option>, + #[serde(rename = "proxy_icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub proxy_icon_url: Option>, +} + +impl MessageEmbedAuthorResponse { + pub fn new(name: String) -> MessageEmbedAuthorResponse { + MessageEmbedAuthorResponse { + name, + url: None, + icon_url: None, + proxy_icon_url: None, + } + } +} + diff --git a/src/models/message_embed_field_response.rs b/src/models/message_embed_field_response.rs new file mode 100644 index 0000000..1fbdf82 --- /dev/null +++ b/src/models/message_embed_field_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedFieldResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "value")] + pub value: String, + #[serde(rename = "inline")] + pub inline: bool, +} + +impl MessageEmbedFieldResponse { + pub fn new(name: String, value: String, inline: bool) -> MessageEmbedFieldResponse { + MessageEmbedFieldResponse { + name, + value, + inline, + } + } +} + diff --git a/src/models/message_embed_footer_response.rs b/src/models/message_embed_footer_response.rs new file mode 100644 index 0000000..de7c121 --- /dev/null +++ b/src/models/message_embed_footer_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedFooterResponse { + #[serde(rename = "text")] + pub text: String, + #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon_url: Option>, + #[serde(rename = "proxy_icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub proxy_icon_url: Option>, +} + +impl MessageEmbedFooterResponse { + pub fn new(text: String) -> MessageEmbedFooterResponse { + MessageEmbedFooterResponse { + text, + icon_url: None, + proxy_icon_url: None, + } + } +} + diff --git a/src/models/message_embed_image_response.rs b/src/models/message_embed_image_response.rs new file mode 100644 index 0000000..723eda9 --- /dev/null +++ b/src/models/message_embed_image_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedImageResponse { + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "proxy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub proxy_url: Option>, + #[serde(rename = "width", skip_serializing_if = "Option::is_none")] + pub width: Option, + #[serde(rename = "height", skip_serializing_if = "Option::is_none")] + pub height: Option, + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "placeholder_version", skip_serializing_if = "Option::is_none")] + pub placeholder_version: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "flags", skip_serializing_if = "Option::is_none")] + pub flags: Option, +} + +impl MessageEmbedImageResponse { + pub fn new() -> MessageEmbedImageResponse { + MessageEmbedImageResponse { + url: None, + proxy_url: None, + width: None, + height: None, + content_type: None, + placeholder: None, + placeholder_version: None, + description: None, + flags: None, + } + } +} + diff --git a/src/models/message_embed_provider_response.rs b/src/models/message_embed_provider_response.rs new file mode 100644 index 0000000..5773390 --- /dev/null +++ b/src/models/message_embed_provider_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedProviderResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, +} + +impl MessageEmbedProviderResponse { + pub fn new(name: String) -> MessageEmbedProviderResponse { + MessageEmbedProviderResponse { + name, + url: None, + } + } +} + diff --git a/src/models/message_embed_response.rs b/src/models/message_embed_response.rs new file mode 100644 index 0000000..3928472 --- /dev/null +++ b/src/models/message_embed_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedResponse { + #[serde(rename = "type")] + pub r#type: String, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub color: Option>, + #[serde(rename = "timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub timestamp: Option>, + #[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fields: Option>>, + #[serde(rename = "author", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub author: Option>>, + #[serde(rename = "provider", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provider: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>>, + #[serde(rename = "thumbnail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thumbnail: Option>>, + #[serde(rename = "video", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub video: Option>>, + #[serde(rename = "footer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub footer: Option>>, +} + +impl MessageEmbedResponse { + pub fn new(r#type: String) -> MessageEmbedResponse { + MessageEmbedResponse { + r#type, + url: None, + title: None, + description: None, + color: None, + timestamp: None, + fields: None, + author: None, + provider: None, + image: None, + thumbnail: None, + video: None, + footer: None, + } + } +} + diff --git a/src/models/message_embed_video_response.rs b/src/models/message_embed_video_response.rs new file mode 100644 index 0000000..4620c1e --- /dev/null +++ b/src/models/message_embed_video_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageEmbedVideoResponse { + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "proxy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub proxy_url: Option>, + #[serde(rename = "width", skip_serializing_if = "Option::is_none")] + pub width: Option, + #[serde(rename = "height", skip_serializing_if = "Option::is_none")] + pub height: Option, + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "placeholder_version", skip_serializing_if = "Option::is_none")] + pub placeholder_version: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "flags", skip_serializing_if = "Option::is_none")] + pub flags: Option, +} + +impl MessageEmbedVideoResponse { + pub fn new() -> MessageEmbedVideoResponse { + MessageEmbedVideoResponse { + url: None, + proxy_url: None, + width: None, + height: None, + content_type: None, + placeholder: None, + placeholder_version: None, + description: None, + flags: None, + } + } +} + diff --git a/src/models/message_interaction_response.rs b/src/models/message_interaction_response.rs new file mode 100644 index 0000000..37d543e --- /dev/null +++ b/src/models/message_interaction_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageInteractionResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "name_localized", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name_localized: Option>, +} + +impl MessageInteractionResponse { + pub fn new(id: String, r#type: i32, name: String) -> MessageInteractionResponse { + MessageInteractionResponse { + id, + r#type, + name, + user: None, + name_localized: None, + } + } +} + diff --git a/src/models/message_mention_channel_response.rs b/src/models/message_mention_channel_response.rs new file mode 100644 index 0000000..151c4b0 --- /dev/null +++ b/src/models/message_mention_channel_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageMentionChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "guild_id")] + pub guild_id: String, +} + +impl MessageMentionChannelResponse { + pub fn new(id: String, name: String, r#type: i32, guild_id: String) -> MessageMentionChannelResponse { + MessageMentionChannelResponse { + id, + name, + r#type, + guild_id, + } + } +} + diff --git a/src/models/message_reaction_count_details_response.rs b/src/models/message_reaction_count_details_response.rs new file mode 100644 index 0000000..f9d2cd3 --- /dev/null +++ b/src/models/message_reaction_count_details_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageReactionCountDetailsResponse { + #[serde(rename = "burst")] + pub burst: i32, + #[serde(rename = "normal")] + pub normal: i32, +} + +impl MessageReactionCountDetailsResponse { + pub fn new(burst: i32, normal: i32) -> MessageReactionCountDetailsResponse { + MessageReactionCountDetailsResponse { + burst, + normal, + } + } +} + diff --git a/src/models/message_reaction_emoji_response.rs b/src/models/message_reaction_emoji_response.rs new file mode 100644 index 0000000..74e0b36 --- /dev/null +++ b/src/models/message_reaction_emoji_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageReactionEmojiResponse { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub animated: Option>, +} + +impl MessageReactionEmojiResponse { + pub fn new() -> MessageReactionEmojiResponse { + MessageReactionEmojiResponse { + id: None, + name: None, + animated: None, + } + } +} + diff --git a/src/models/message_reaction_response.rs b/src/models/message_reaction_response.rs new file mode 100644 index 0000000..3501a26 --- /dev/null +++ b/src/models/message_reaction_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageReactionResponse { + #[serde(rename = "emoji")] + pub emoji: Box, + #[serde(rename = "count")] + pub count: i32, + #[serde(rename = "count_details")] + pub count_details: Box, + #[serde(rename = "burst_colors")] + pub burst_colors: Vec, + #[serde(rename = "me_burst")] + pub me_burst: bool, + #[serde(rename = "me")] + pub me: bool, +} + +impl MessageReactionResponse { + pub fn new(emoji: models::MessageReactionEmojiResponse, count: i32, count_details: models::MessageReactionCountDetailsResponse, burst_colors: Vec, me_burst: bool, me: bool) -> MessageReactionResponse { + MessageReactionResponse { + emoji: Box::new(emoji), + count, + count_details: Box::new(count_details), + burst_colors, + me_burst, + me, + } + } +} + diff --git a/src/models/message_reference_request.rs b/src/models/message_reference_request.rs new file mode 100644 index 0000000..70ea785 --- /dev/null +++ b/src/models/message_reference_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageReferenceRequest { + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "message_id")] + pub message_id: String, + #[serde(rename = "fail_if_not_exists", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fail_if_not_exists: Option>, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, +} + +impl MessageReferenceRequest { + pub fn new(message_id: String) -> MessageReferenceRequest { + MessageReferenceRequest { + guild_id: None, + channel_id: None, + message_id, + fail_if_not_exists: None, + r#type: None, + } + } +} + diff --git a/src/models/message_reference_response.rs b/src/models/message_reference_response.rs new file mode 100644 index 0000000..5ff59ff --- /dev/null +++ b/src/models/message_reference_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageReferenceResponse { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "message_id", skip_serializing_if = "Option::is_none")] + pub message_id: Option, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, +} + +impl MessageReferenceResponse { + pub fn new(channel_id: String) -> MessageReferenceResponse { + MessageReferenceResponse { + r#type: None, + channel_id, + message_id: None, + guild_id: None, + } + } +} + diff --git a/src/models/message_response.rs b/src/models/message_response.rs new file mode 100644 index 0000000..7ee3b69 --- /dev/null +++ b/src/models/message_response.rs @@ -0,0 +1,168 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "content")] + pub content: String, + #[serde(rename = "mentions")] + pub mentions: Vec, + #[serde(rename = "mention_roles")] + pub mention_roles: Vec, + #[serde(rename = "attachments")] + pub attachments: Vec, + #[serde(rename = "embeds")] + pub embeds: Vec, + #[serde(rename = "timestamp")] + pub timestamp: String, + #[serde(rename = "edited_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub edited_timestamp: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "resolved", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resolved: Option>>, + #[serde(rename = "stickers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub stickers: Option>>, + #[serde(rename = "sticker_items", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_items: Option>>, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "author")] + pub author: Box, + #[serde(rename = "pinned")] + pub pinned: bool, + #[serde(rename = "mention_everyone")] + pub mention_everyone: bool, + #[serde(rename = "tts")] + pub tts: bool, + #[serde(rename = "call", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call: Option>>, + #[serde(rename = "activity", skip_serializing_if = "Option::is_none")] + pub activity: Option, + #[serde(rename = "application", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub application: Option>>, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, + #[serde(rename = "interaction", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interaction: Option>>, + #[serde(rename = "nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nonce: Option>>, + #[serde(rename = "webhook_id", skip_serializing_if = "Option::is_none")] + pub webhook_id: Option, + #[serde(rename = "message_reference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_reference: Option>>, + #[serde(rename = "thread", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thread: Option>>, + #[serde(rename = "mention_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mention_channels: Option>>, + #[serde(rename = "role_subscription_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub role_subscription_data: Option>>, + #[serde(rename = "purchase_notification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub purchase_notification: Option>>, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "interaction_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interaction_metadata: Option>>, + #[serde(rename = "message_snapshots", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_snapshots: Option>>, + #[serde(rename = "reactions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reactions: Option>>, + #[serde(rename = "referenced_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub referenced_message: Option>>, +} + +impl MessageResponse { + pub fn new(r#type: i32, content: String, mentions: Vec, mention_roles: Vec, attachments: Vec, embeds: Vec, timestamp: String, flags: i32, components: Vec, id: String, channel_id: String, author: models::UserResponse, pinned: bool, mention_everyone: bool, tts: bool) -> MessageResponse { + MessageResponse { + r#type, + content, + mentions, + mention_roles, + attachments, + embeds, + timestamp, + edited_timestamp: None, + flags, + components, + resolved: None, + stickers: None, + sticker_items: None, + id, + channel_id, + author: Box::new(author), + pinned, + mention_everyone, + tts, + call: None, + activity: None, + application: None, + application_id: None, + interaction: None, + nonce: None, + webhook_id: None, + message_reference: None, + thread: None, + mention_channels: None, + role_subscription_data: None, + purchase_notification: None, + position: None, + poll: None, + interaction_metadata: None, + message_snapshots: None, + reactions: None, + referenced_message: None, + } + } +} + diff --git a/src/models/message_role_subscription_data_response.rs b/src/models/message_role_subscription_data_response.rs new file mode 100644 index 0000000..fbbe21e --- /dev/null +++ b/src/models/message_role_subscription_data_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageRoleSubscriptionDataResponse { + #[serde(rename = "role_subscription_listing_id")] + pub role_subscription_listing_id: String, + #[serde(rename = "tier_name")] + pub tier_name: String, + #[serde(rename = "total_months_subscribed")] + pub total_months_subscribed: i32, + #[serde(rename = "is_renewal")] + pub is_renewal: bool, +} + +impl MessageRoleSubscriptionDataResponse { + pub fn new(role_subscription_listing_id: String, tier_name: String, total_months_subscribed: i32, is_renewal: bool) -> MessageRoleSubscriptionDataResponse { + MessageRoleSubscriptionDataResponse { + role_subscription_listing_id, + tier_name, + total_months_subscribed, + is_renewal, + } + } +} + diff --git a/src/models/message_snapshot_response.rs b/src/models/message_snapshot_response.rs new file mode 100644 index 0000000..dd385e7 --- /dev/null +++ b/src/models/message_snapshot_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageSnapshotResponse { + #[serde(rename = "message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message: Option>>, +} + +impl MessageSnapshotResponse { + pub fn new() -> MessageSnapshotResponse { + MessageSnapshotResponse { + message: None, + } + } +} + diff --git a/src/models/message_sticker_item_response.rs b/src/models/message_sticker_item_response.rs new file mode 100644 index 0000000..56ec280 --- /dev/null +++ b/src/models/message_sticker_item_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MessageStickerItemResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "format_type", deserialize_with = "Option::deserialize")] + pub format_type: Option, +} + +impl MessageStickerItemResponse { + pub fn new(id: String, name: String, format_type: Option) -> MessageStickerItemResponse { + MessageStickerItemResponse { + id, + name, + format_type, + } + } +} + diff --git a/src/models/minimal_content_message_response.rs b/src/models/minimal_content_message_response.rs new file mode 100644 index 0000000..07d63ac --- /dev/null +++ b/src/models/minimal_content_message_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MinimalContentMessageResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "content")] + pub content: String, + #[serde(rename = "mentions")] + pub mentions: Vec, + #[serde(rename = "mention_roles")] + pub mention_roles: Vec, + #[serde(rename = "attachments")] + pub attachments: Vec, + #[serde(rename = "embeds")] + pub embeds: Vec, + #[serde(rename = "timestamp")] + pub timestamp: String, + #[serde(rename = "edited_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub edited_timestamp: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "resolved", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resolved: Option>>, + #[serde(rename = "stickers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub stickers: Option>>, + #[serde(rename = "sticker_items", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_items: Option>>, +} + +impl MinimalContentMessageResponse { + pub fn new(r#type: i32, content: String, mentions: Vec, mention_roles: Vec, attachments: Vec, embeds: Vec, timestamp: String, flags: i32, components: Vec) -> MinimalContentMessageResponse { + MinimalContentMessageResponse { + r#type, + content, + mentions, + mention_roles, + attachments, + embeds, + timestamp, + edited_timestamp: None, + flags, + components, + resolved: None, + stickers: None, + sticker_items: None, + } + } +} + diff --git a/src/models/ml_spam_rule_response.rs b/src/models/ml_spam_rule_response.rs new file mode 100644 index 0000000..2e7f148 --- /dev/null +++ b/src/models/ml_spam_rule_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlSpamRuleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions")] + pub actions: Vec, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: serde_json::Value, +} + +impl MlSpamRuleResponse { + pub fn new(id: String, guild_id: String, creator_id: String, name: String, event_type: i32, actions: Vec, trigger_type: i32, trigger_metadata: serde_json::Value) -> MlSpamRuleResponse { + MlSpamRuleResponse { + id, + guild_id, + creator_id, + name, + event_type, + actions, + trigger_type, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_metadata, + } + } +} + diff --git a/src/models/ml_spam_upsert_request.rs b/src/models/ml_spam_upsert_request.rs new file mode 100644 index 0000000..c2f1f27 --- /dev/null +++ b/src/models/ml_spam_upsert_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlSpamUpsertRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "trigger_metadata", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option, +} + +impl MlSpamUpsertRequest { + pub fn new(name: String, event_type: i32, trigger_type: i32) -> MlSpamUpsertRequest { + MlSpamUpsertRequest { + name, + event_type, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type, + trigger_metadata: None, + } + } +} + diff --git a/src/models/ml_spam_upsert_request_partial.rs b/src/models/ml_spam_upsert_request_partial.rs new file mode 100644 index 0000000..4d537a7 --- /dev/null +++ b/src/models/ml_spam_upsert_request_partial.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MlSpamUpsertRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")] + pub event_type: Option, + #[serde(rename = "actions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub actions: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_type", skip_serializing_if = "Option::is_none")] + pub trigger_type: Option, + #[serde(rename = "trigger_metadata", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option, +} + +impl MlSpamUpsertRequestPartial { + pub fn new() -> MlSpamUpsertRequestPartial { + MlSpamUpsertRequestPartial { + name: None, + event_type: None, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type: None, + trigger_metadata: None, + } + } +} + diff --git a/src/models/mod.rs b/src/models/mod.rs new file mode 100644 index 0000000..173a709 --- /dev/null +++ b/src/models/mod.rs @@ -0,0 +1,918 @@ +pub mod account_response; +pub use self::account_response::AccountResponse; +pub mod action_row_component_for_message_request; +pub use self::action_row_component_for_message_request::ActionRowComponentForMessageRequest; +pub mod action_row_component_for_message_request_components_inner; +pub use self::action_row_component_for_message_request_components_inner::ActionRowComponentForMessageRequestComponentsInner; +pub mod action_row_component_for_modal_request; +pub use self::action_row_component_for_modal_request::ActionRowComponentForModalRequest; +pub mod action_row_component_response; +pub use self::action_row_component_response::ActionRowComponentResponse; +pub mod action_row_component_response_components_inner; +pub use self::action_row_component_response_components_inner::ActionRowComponentResponseComponentsInner; +pub mod activities_attachment_response; +pub use self::activities_attachment_response::ActivitiesAttachmentResponse; +pub mod add_group_dm_user_201_response; +pub use self::add_group_dm_user_201_response::AddGroupDmUser201Response; +pub mod add_group_dm_user_request; +pub use self::add_group_dm_user_request::AddGroupDmUserRequest; +pub mod add_guild_member_request; +pub use self::add_guild_member_request::AddGuildMemberRequest; +pub mod add_lobby_member_request; +pub use self::add_lobby_member_request::AddLobbyMemberRequest; +pub mod application_command_attachment_option; +pub use self::application_command_attachment_option::ApplicationCommandAttachmentOption; +pub mod application_command_attachment_option_response; +pub use self::application_command_attachment_option_response::ApplicationCommandAttachmentOptionResponse; +pub mod application_command_autocomplete_callback_request; +pub use self::application_command_autocomplete_callback_request::ApplicationCommandAutocompleteCallbackRequest; +pub mod application_command_autocomplete_callback_request_data; +pub use self::application_command_autocomplete_callback_request_data::ApplicationCommandAutocompleteCallbackRequestData; +pub mod application_command_boolean_option; +pub use self::application_command_boolean_option::ApplicationCommandBooleanOption; +pub mod application_command_boolean_option_response; +pub use self::application_command_boolean_option_response::ApplicationCommandBooleanOptionResponse; +pub mod application_command_channel_option; +pub use self::application_command_channel_option::ApplicationCommandChannelOption; +pub mod application_command_channel_option_response; +pub use self::application_command_channel_option_response::ApplicationCommandChannelOptionResponse; +pub mod application_command_create_request; +pub use self::application_command_create_request::ApplicationCommandCreateRequest; +pub mod application_command_create_request_options_inner; +pub use self::application_command_create_request_options_inner::ApplicationCommandCreateRequestOptionsInner; +pub mod application_command_integer_option; +pub use self::application_command_integer_option::ApplicationCommandIntegerOption; +pub mod application_command_integer_option_response; +pub use self::application_command_integer_option_response::ApplicationCommandIntegerOptionResponse; +pub mod application_command_interaction_metadata_response; +pub use self::application_command_interaction_metadata_response::ApplicationCommandInteractionMetadataResponse; +pub mod application_command_mentionable_option; +pub use self::application_command_mentionable_option::ApplicationCommandMentionableOption; +pub mod application_command_mentionable_option_response; +pub use self::application_command_mentionable_option_response::ApplicationCommandMentionableOptionResponse; +pub mod application_command_number_option; +pub use self::application_command_number_option::ApplicationCommandNumberOption; +pub mod application_command_number_option_response; +pub use self::application_command_number_option_response::ApplicationCommandNumberOptionResponse; +pub mod application_command_option_integer_choice; +pub use self::application_command_option_integer_choice::ApplicationCommandOptionIntegerChoice; +pub mod application_command_option_integer_choice_response; +pub use self::application_command_option_integer_choice_response::ApplicationCommandOptionIntegerChoiceResponse; +pub mod application_command_option_number_choice; +pub use self::application_command_option_number_choice::ApplicationCommandOptionNumberChoice; +pub mod application_command_option_number_choice_response; +pub use self::application_command_option_number_choice_response::ApplicationCommandOptionNumberChoiceResponse; +pub mod application_command_option_string_choice; +pub use self::application_command_option_string_choice::ApplicationCommandOptionStringChoice; +pub mod application_command_option_string_choice_response; +pub use self::application_command_option_string_choice_response::ApplicationCommandOptionStringChoiceResponse; +pub mod application_command_patch_request_partial; +pub use self::application_command_patch_request_partial::ApplicationCommandPatchRequestPartial; +pub mod application_command_permission; +pub use self::application_command_permission::ApplicationCommandPermission; +pub mod application_command_response; +pub use self::application_command_response::ApplicationCommandResponse; +pub mod application_command_response_options_inner; +pub use self::application_command_response_options_inner::ApplicationCommandResponseOptionsInner; +pub mod application_command_role_option; +pub use self::application_command_role_option::ApplicationCommandRoleOption; +pub mod application_command_role_option_response; +pub use self::application_command_role_option_response::ApplicationCommandRoleOptionResponse; +pub mod application_command_string_option; +pub use self::application_command_string_option::ApplicationCommandStringOption; +pub mod application_command_string_option_response; +pub use self::application_command_string_option_response::ApplicationCommandStringOptionResponse; +pub mod application_command_subcommand_group_option; +pub use self::application_command_subcommand_group_option::ApplicationCommandSubcommandGroupOption; +pub mod application_command_subcommand_group_option_response; +pub use self::application_command_subcommand_group_option_response::ApplicationCommandSubcommandGroupOptionResponse; +pub mod application_command_subcommand_option; +pub use self::application_command_subcommand_option::ApplicationCommandSubcommandOption; +pub mod application_command_subcommand_option_options_inner; +pub use self::application_command_subcommand_option_options_inner::ApplicationCommandSubcommandOptionOptionsInner; +pub mod application_command_subcommand_option_response; +pub use self::application_command_subcommand_option_response::ApplicationCommandSubcommandOptionResponse; +pub mod application_command_subcommand_option_response_options_inner; +pub use self::application_command_subcommand_option_response_options_inner::ApplicationCommandSubcommandOptionResponseOptionsInner; +pub mod application_command_update_request; +pub use self::application_command_update_request::ApplicationCommandUpdateRequest; +pub mod application_command_user_option; +pub use self::application_command_user_option::ApplicationCommandUserOption; +pub mod application_command_user_option_response; +pub use self::application_command_user_option_response::ApplicationCommandUserOptionResponse; +pub mod application_form_partial; +pub use self::application_form_partial::ApplicationFormPartial; +pub mod application_form_partial_description; +pub use self::application_form_partial_description::ApplicationFormPartialDescription; +pub mod application_form_partial_integration_types_config_value; +pub use self::application_form_partial_integration_types_config_value::ApplicationFormPartialIntegrationTypesConfigValue; +pub mod application_incoming_webhook_response; +pub use self::application_incoming_webhook_response::ApplicationIncomingWebhookResponse; +pub mod application_integration_type_configuration; +pub use self::application_integration_type_configuration::ApplicationIntegrationTypeConfiguration; +pub mod application_integration_type_configuration_response; +pub use self::application_integration_type_configuration_response::ApplicationIntegrationTypeConfigurationResponse; +pub mod application_o_auth2_install_params; +pub use self::application_o_auth2_install_params::ApplicationOAuth2InstallParams; +pub mod application_o_auth2_install_params_response; +pub use self::application_o_auth2_install_params_response::ApplicationOAuth2InstallParamsResponse; +pub mod application_response; +pub use self::application_response::ApplicationResponse; +pub mod application_role_connections_metadata_item_request; +pub use self::application_role_connections_metadata_item_request::ApplicationRoleConnectionsMetadataItemRequest; +pub mod application_role_connections_metadata_item_response; +pub use self::application_role_connections_metadata_item_response::ApplicationRoleConnectionsMetadataItemResponse; +pub mod application_user_role_connection_response; +pub use self::application_user_role_connection_response::ApplicationUserRoleConnectionResponse; +pub mod attachment_response; +pub use self::attachment_response::AttachmentResponse; +pub mod audit_log_entry_response; +pub use self::audit_log_entry_response::AuditLogEntryResponse; +pub mod audit_log_object_change_response; +pub use self::audit_log_object_change_response::AuditLogObjectChangeResponse; +pub mod ban_user_from_guild_request; +pub use self::ban_user_from_guild_request::BanUserFromGuildRequest; +pub mod base_create_message_create_request; +pub use self::base_create_message_create_request::BaseCreateMessageCreateRequest; +pub mod base_create_message_create_request_components_inner; +pub use self::base_create_message_create_request_components_inner::BaseCreateMessageCreateRequestComponentsInner; +pub mod basic_application_response; +pub use self::basic_application_response::BasicApplicationResponse; +pub mod basic_message_response; +pub use self::basic_message_response::BasicMessageResponse; +pub mod basic_message_response_components_inner; +pub use self::basic_message_response_components_inner::BasicMessageResponseComponentsInner; +pub mod basic_message_response_interaction_metadata; +pub use self::basic_message_response_interaction_metadata::BasicMessageResponseInteractionMetadata; +pub mod basic_message_response_nonce; +pub use self::basic_message_response_nonce::BasicMessageResponseNonce; +pub mod block_message_action; +pub use self::block_message_action::BlockMessageAction; +pub mod block_message_action_metadata; +pub use self::block_message_action_metadata::BlockMessageActionMetadata; +pub mod block_message_action_metadata_response; +pub use self::block_message_action_metadata_response::BlockMessageActionMetadataResponse; +pub mod block_message_action_response; +pub use self::block_message_action_response::BlockMessageActionResponse; +pub mod bot_account_patch_request; +pub use self::bot_account_patch_request::BotAccountPatchRequest; +pub mod bulk_ban_users_from_guild_request; +pub use self::bulk_ban_users_from_guild_request::BulkBanUsersFromGuildRequest; +pub mod bulk_ban_users_response; +pub use self::bulk_ban_users_response::BulkBanUsersResponse; +pub mod bulk_delete_messages_request; +pub use self::bulk_delete_messages_request::BulkDeleteMessagesRequest; +pub mod bulk_lobby_member_request; +pub use self::bulk_lobby_member_request::BulkLobbyMemberRequest; +pub mod bulk_update_guild_channels_request_inner; +pub use self::bulk_update_guild_channels_request_inner::BulkUpdateGuildChannelsRequestInner; +pub mod bulk_update_guild_roles_request_inner; +pub use self::bulk_update_guild_roles_request_inner::BulkUpdateGuildRolesRequestInner; +pub mod button_component_for_message_request; +pub use self::button_component_for_message_request::ButtonComponentForMessageRequest; +pub mod button_component_response; +pub use self::button_component_response::ButtonComponentResponse; +pub mod channel_follower_response; +pub use self::channel_follower_response::ChannelFollowerResponse; +pub mod channel_follower_webhook_response; +pub use self::channel_follower_webhook_response::ChannelFollowerWebhookResponse; +pub mod channel_permission_overwrite_request; +pub use self::channel_permission_overwrite_request::ChannelPermissionOverwriteRequest; +pub mod channel_permission_overwrite_response; +pub use self::channel_permission_overwrite_response::ChannelPermissionOverwriteResponse; +pub mod channel_select_component_for_message_request; +pub use self::channel_select_component_for_message_request::ChannelSelectComponentForMessageRequest; +pub mod channel_select_component_response; +pub use self::channel_select_component_response::ChannelSelectComponentResponse; +pub mod channel_select_default_value; +pub use self::channel_select_default_value::ChannelSelectDefaultValue; +pub mod channel_select_default_value_response; +pub use self::channel_select_default_value_response::ChannelSelectDefaultValueResponse; +pub mod command_permission_response; +pub use self::command_permission_response::CommandPermissionResponse; +pub mod command_permissions_response; +pub use self::command_permissions_response::CommandPermissionsResponse; +pub mod component_emoji_for_message_request; +pub use self::component_emoji_for_message_request::ComponentEmojiForMessageRequest; +pub mod component_emoji_response; +pub use self::component_emoji_response::ComponentEmojiResponse; +pub mod connected_account_guild_response; +pub use self::connected_account_guild_response::ConnectedAccountGuildResponse; +pub mod connected_account_integration_response; +pub use self::connected_account_integration_response::ConnectedAccountIntegrationResponse; +pub mod connected_account_response; +pub use self::connected_account_response::ConnectedAccountResponse; +pub mod container_component_for_message_request; +pub use self::container_component_for_message_request::ContainerComponentForMessageRequest; +pub mod container_component_for_message_request_components_inner; +pub use self::container_component_for_message_request_components_inner::ContainerComponentForMessageRequestComponentsInner; +pub mod container_component_response; +pub use self::container_component_response::ContainerComponentResponse; +pub mod container_component_response_components_inner; +pub use self::container_component_response_components_inner::ContainerComponentResponseComponentsInner; +pub mod create_application_emoji_request; +pub use self::create_application_emoji_request::CreateApplicationEmojiRequest; +pub mod create_auto_moderation_rule_200_response; +pub use self::create_auto_moderation_rule_200_response::CreateAutoModerationRule200Response; +pub mod create_auto_moderation_rule_request; +pub use self::create_auto_moderation_rule_request::CreateAutoModerationRuleRequest; +pub mod create_channel_invite_request; +pub use self::create_channel_invite_request::CreateChannelInviteRequest; +pub mod create_entitlement_request_data; +pub use self::create_entitlement_request_data::CreateEntitlementRequestData; +pub mod create_forum_thread_request; +pub use self::create_forum_thread_request::CreateForumThreadRequest; +pub mod create_group_dm_invite_request; +pub use self::create_group_dm_invite_request::CreateGroupDmInviteRequest; +pub mod create_guild_channel_request; +pub use self::create_guild_channel_request::CreateGuildChannelRequest; +pub mod create_guild_emoji_request; +pub use self::create_guild_emoji_request::CreateGuildEmojiRequest; +pub mod create_guild_from_template_request; +pub use self::create_guild_from_template_request::CreateGuildFromTemplateRequest; +pub mod create_guild_invite_request; +pub use self::create_guild_invite_request::CreateGuildInviteRequest; +pub mod create_guild_request_channel_item; +pub use self::create_guild_request_channel_item::CreateGuildRequestChannelItem; +pub mod create_guild_request_role_item; +pub use self::create_guild_request_role_item::CreateGuildRequestRoleItem; +pub mod create_guild_role_request; +pub use self::create_guild_role_request::CreateGuildRoleRequest; +pub mod create_guild_scheduled_event_request; +pub use self::create_guild_scheduled_event_request::CreateGuildScheduledEventRequest; +pub mod create_guild_template_request; +pub use self::create_guild_template_request::CreateGuildTemplateRequest; +pub mod create_interaction_response_request; +pub use self::create_interaction_response_request::CreateInteractionResponseRequest; +pub mod create_lobby_request; +pub use self::create_lobby_request::CreateLobbyRequest; +pub mod create_message_interaction_callback_request; +pub use self::create_message_interaction_callback_request::CreateMessageInteractionCallbackRequest; +pub mod create_message_interaction_callback_response; +pub use self::create_message_interaction_callback_response::CreateMessageInteractionCallbackResponse; +pub mod create_or_join_lobby_request; +pub use self::create_or_join_lobby_request::CreateOrJoinLobbyRequest; +pub mod create_or_update_thread_tag_request; +pub use self::create_or_update_thread_tag_request::CreateOrUpdateThreadTagRequest; +pub mod create_private_channel_request; +pub use self::create_private_channel_request::CreatePrivateChannelRequest; +pub mod create_stage_instance_request; +pub use self::create_stage_instance_request::CreateStageInstanceRequest; +pub mod create_text_thread_with_message_request; +pub use self::create_text_thread_with_message_request::CreateTextThreadWithMessageRequest; +pub mod create_text_thread_without_message_request; +pub use self::create_text_thread_without_message_request::CreateTextThreadWithoutMessageRequest; +pub mod create_thread_request; +pub use self::create_thread_request::CreateThreadRequest; +pub mod create_webhook_request; +pub use self::create_webhook_request::CreateWebhookRequest; +pub mod created_thread_response; +pub use self::created_thread_response::CreatedThreadResponse; +pub mod default_keyword_list_trigger_metadata; +pub use self::default_keyword_list_trigger_metadata::DefaultKeywordListTriggerMetadata; +pub mod default_keyword_list_trigger_metadata_response; +pub use self::default_keyword_list_trigger_metadata_response::DefaultKeywordListTriggerMetadataResponse; +pub mod default_keyword_list_upsert_request; +pub use self::default_keyword_list_upsert_request::DefaultKeywordListUpsertRequest; +pub mod default_keyword_list_upsert_request_actions_inner; +pub use self::default_keyword_list_upsert_request_actions_inner::DefaultKeywordListUpsertRequestActionsInner; +pub mod default_keyword_list_upsert_request_partial; +pub use self::default_keyword_list_upsert_request_partial::DefaultKeywordListUpsertRequestPartial; +pub mod default_keyword_rule_response; +pub use self::default_keyword_rule_response::DefaultKeywordRuleResponse; +pub mod default_keyword_rule_response_actions_inner; +pub use self::default_keyword_rule_response_actions_inner::DefaultKeywordRuleResponseActionsInner; +pub mod default_reaction_emoji_response; +pub use self::default_reaction_emoji_response::DefaultReactionEmojiResponse; +pub mod discord_integration_response; +pub use self::discord_integration_response::DiscordIntegrationResponse; +pub mod edit_lobby_channel_link_request; +pub use self::edit_lobby_channel_link_request::EditLobbyChannelLinkRequest; +pub mod embedded_activity_instance; +pub use self::embedded_activity_instance::EmbeddedActivityInstance; +pub mod embedded_activity_instance_location; +pub use self::embedded_activity_instance_location::EmbeddedActivityInstanceLocation; +pub mod emoji_response; +pub use self::emoji_response::EmojiResponse; +pub mod entitlement_response; +pub use self::entitlement_response::EntitlementResponse; +pub mod entity_metadata_external; +pub use self::entity_metadata_external::EntityMetadataExternal; +pub mod entity_metadata_external_response; +pub use self::entity_metadata_external_response::EntityMetadataExternalResponse; +pub mod error; +pub use self::error::Error; +pub mod error_details; +pub use self::error_details::ErrorDetails; +pub mod error_response; +pub use self::error_response::ErrorResponse; +pub mod execute_webhook_request; +pub use self::execute_webhook_request::ExecuteWebhookRequest; +pub mod external_connection_integration_response; +pub use self::external_connection_integration_response::ExternalConnectionIntegrationResponse; +pub mod external_scheduled_event_create_request; +pub use self::external_scheduled_event_create_request::ExternalScheduledEventCreateRequest; +pub mod external_scheduled_event_patch_request_partial; +pub use self::external_scheduled_event_patch_request_partial::ExternalScheduledEventPatchRequestPartial; +pub mod external_scheduled_event_response; +pub use self::external_scheduled_event_response::ExternalScheduledEventResponse; +pub mod file_component_for_message_request; +pub use self::file_component_for_message_request::FileComponentForMessageRequest; +pub mod file_component_response; +pub use self::file_component_response::FileComponentResponse; +pub mod flag_to_channel_action; +pub use self::flag_to_channel_action::FlagToChannelAction; +pub mod flag_to_channel_action_metadata; +pub use self::flag_to_channel_action_metadata::FlagToChannelActionMetadata; +pub mod flag_to_channel_action_metadata_response; +pub use self::flag_to_channel_action_metadata_response::FlagToChannelActionMetadataResponse; +pub mod flag_to_channel_action_response; +pub use self::flag_to_channel_action_response::FlagToChannelActionResponse; +pub mod follow_channel_request; +pub use self::follow_channel_request::FollowChannelRequest; +pub mod forum_tag_response; +pub use self::forum_tag_response::ForumTagResponse; +pub mod friend_invite_response; +pub use self::friend_invite_response::FriendInviteResponse; +pub mod gateway_bot_response; +pub use self::gateway_bot_response::GatewayBotResponse; +pub mod gateway_bot_session_start_limit_response; +pub use self::gateway_bot_session_start_limit_response::GatewayBotSessionStartLimitResponse; +pub mod gateway_response; +pub use self::gateway_response::GatewayResponse; +pub mod get_channel_200_response; +pub use self::get_channel_200_response::GetChannel200Response; +pub mod get_entitlements_sku_ids_parameter; +pub use self::get_entitlements_sku_ids_parameter::GetEntitlementsSkuIdsParameter; +pub mod get_sticker_200_response; +pub use self::get_sticker_200_response::GetSticker200Response; +pub mod github_author; +pub use self::github_author::GithubAuthor; +pub mod github_check_app; +pub use self::github_check_app::GithubCheckApp; +pub mod github_check_pull_request; +pub use self::github_check_pull_request::GithubCheckPullRequest; +pub mod github_check_run; +pub use self::github_check_run::GithubCheckRun; +pub mod github_check_run_output; +pub use self::github_check_run_output::GithubCheckRunOutput; +pub mod github_check_suite; +pub use self::github_check_suite::GithubCheckSuite; +pub mod github_comment; +pub use self::github_comment::GithubComment; +pub mod github_commit; +pub use self::github_commit::GithubCommit; +pub mod github_discussion; +pub use self::github_discussion::GithubDiscussion; +pub mod github_issue; +pub use self::github_issue::GithubIssue; +pub mod github_release; +pub use self::github_release::GithubRelease; +pub mod github_repository; +pub use self::github_repository::GithubRepository; +pub mod github_review; +pub use self::github_review::GithubReview; +pub mod github_user; +pub use self::github_user::GithubUser; +pub mod github_webhook; +pub use self::github_webhook::GithubWebhook; +pub mod group_dm_invite_response; +pub use self::group_dm_invite_response::GroupDmInviteResponse; +pub mod guild_audit_log_response; +pub use self::guild_audit_log_response::GuildAuditLogResponse; +pub mod guild_audit_log_response_integrations_inner; +pub use self::guild_audit_log_response_integrations_inner::GuildAuditLogResponseIntegrationsInner; +pub mod guild_ban_response; +pub use self::guild_ban_response::GuildBanResponse; +pub mod guild_channel_location; +pub use self::guild_channel_location::GuildChannelLocation; +pub mod guild_channel_response; +pub use self::guild_channel_response::GuildChannelResponse; +pub mod guild_create_request; +pub use self::guild_create_request::GuildCreateRequest; +pub mod guild_home_settings_response; +pub use self::guild_home_settings_response::GuildHomeSettingsResponse; +pub mod guild_incoming_webhook_response; +pub use self::guild_incoming_webhook_response::GuildIncomingWebhookResponse; +pub mod guild_invite_response; +pub use self::guild_invite_response::GuildInviteResponse; +pub mod guild_member_response; +pub use self::guild_member_response::GuildMemberResponse; +pub mod guild_mfa_level_response; +pub use self::guild_mfa_level_response::GuildMfaLevelResponse; +pub mod guild_onboarding_response; +pub use self::guild_onboarding_response::GuildOnboardingResponse; +pub mod guild_patch_request_partial; +pub use self::guild_patch_request_partial::GuildPatchRequestPartial; +pub mod guild_preview_response; +pub use self::guild_preview_response::GuildPreviewResponse; +pub mod guild_product_purchase_response; +pub use self::guild_product_purchase_response::GuildProductPurchaseResponse; +pub mod guild_prune_response; +pub use self::guild_prune_response::GuildPruneResponse; +pub mod guild_response; +pub use self::guild_response::GuildResponse; +pub mod guild_role_response; +pub use self::guild_role_response::GuildRoleResponse; +pub mod guild_role_tags_response; +pub use self::guild_role_tags_response::GuildRoleTagsResponse; +pub mod guild_sticker_response; +pub use self::guild_sticker_response::GuildStickerResponse; +pub mod guild_subscription_integration_response; +pub use self::guild_subscription_integration_response::GuildSubscriptionIntegrationResponse; +pub mod guild_template_channel_response; +pub use self::guild_template_channel_response::GuildTemplateChannelResponse; +pub mod guild_template_channel_tags; +pub use self::guild_template_channel_tags::GuildTemplateChannelTags; +pub mod guild_template_response; +pub use self::guild_template_response::GuildTemplateResponse; +pub mod guild_template_role_response; +pub use self::guild_template_role_response::GuildTemplateRoleResponse; +pub mod guild_template_snapshot_response; +pub use self::guild_template_snapshot_response::GuildTemplateSnapshotResponse; +pub mod guild_welcome_channel; +pub use self::guild_welcome_channel::GuildWelcomeChannel; +pub mod guild_welcome_screen_channel_response; +pub use self::guild_welcome_screen_channel_response::GuildWelcomeScreenChannelResponse; +pub mod guild_welcome_screen_response; +pub use self::guild_welcome_screen_response::GuildWelcomeScreenResponse; +pub mod guild_with_counts_response; +pub use self::guild_with_counts_response::GuildWithCountsResponse; +pub mod incoming_webhook_interaction_request; +pub use self::incoming_webhook_interaction_request::IncomingWebhookInteractionRequest; +pub mod incoming_webhook_request_partial; +pub use self::incoming_webhook_request_partial::IncomingWebhookRequestPartial; +pub mod incoming_webhook_update_for_interaction_callback_request_partial; +pub use self::incoming_webhook_update_for_interaction_callback_request_partial::IncomingWebhookUpdateForInteractionCallbackRequestPartial; +pub mod incoming_webhook_update_request_partial; +pub use self::incoming_webhook_update_request_partial::IncomingWebhookUpdateRequestPartial; +pub mod inner_errors; +pub use self::inner_errors::InnerErrors; +pub mod integration_application_response; +pub use self::integration_application_response::IntegrationApplicationResponse; +pub mod interaction_application_command_autocomplete_callback_integer_data; +pub use self::interaction_application_command_autocomplete_callback_integer_data::InteractionApplicationCommandAutocompleteCallbackIntegerData; +pub mod interaction_application_command_autocomplete_callback_number_data; +pub use self::interaction_application_command_autocomplete_callback_number_data::InteractionApplicationCommandAutocompleteCallbackNumberData; +pub mod interaction_application_command_autocomplete_callback_string_data; +pub use self::interaction_application_command_autocomplete_callback_string_data::InteractionApplicationCommandAutocompleteCallbackStringData; +pub mod interaction_callback_response; +pub use self::interaction_callback_response::InteractionCallbackResponse; +pub mod interaction_callback_response_resource; +pub use self::interaction_callback_response_resource::InteractionCallbackResponseResource; +pub mod interaction_response; +pub use self::interaction_response::InteractionResponse; +pub mod invite_application_response; +pub use self::invite_application_response::InviteApplicationResponse; +pub mod invite_channel_recipient_response; +pub use self::invite_channel_recipient_response::InviteChannelRecipientResponse; +pub mod invite_channel_response; +pub use self::invite_channel_response::InviteChannelResponse; +pub mod invite_guild_response; +pub use self::invite_guild_response::InviteGuildResponse; +pub mod keyword_rule_response; +pub use self::keyword_rule_response::KeywordRuleResponse; +pub mod keyword_trigger_metadata; +pub use self::keyword_trigger_metadata::KeywordTriggerMetadata; +pub mod keyword_trigger_metadata_response; +pub use self::keyword_trigger_metadata_response::KeywordTriggerMetadataResponse; +pub mod keyword_upsert_request; +pub use self::keyword_upsert_request::KeywordUpsertRequest; +pub mod keyword_upsert_request_partial; +pub use self::keyword_upsert_request_partial::KeywordUpsertRequestPartial; +pub mod launch_activity_interaction_callback_request; +pub use self::launch_activity_interaction_callback_request::LaunchActivityInteractionCallbackRequest; +pub mod launch_activity_interaction_callback_response; +pub use self::launch_activity_interaction_callback_response::LaunchActivityInteractionCallbackResponse; +pub mod list_application_emojis_response; +pub use self::list_application_emojis_response::ListApplicationEmojisResponse; +pub mod list_auto_moderation_rules_200_response_inner; +pub use self::list_auto_moderation_rules_200_response_inner::ListAutoModerationRules200ResponseInner; +pub mod list_channel_invites_200_response_inner; +pub use self::list_channel_invites_200_response_inner::ListChannelInvites200ResponseInner; +pub mod list_channel_webhooks_200_response_inner; +pub use self::list_channel_webhooks_200_response_inner::ListChannelWebhooks200ResponseInner; +pub mod list_guild_integrations_200_response_inner; +pub use self::list_guild_integrations_200_response_inner::ListGuildIntegrations200ResponseInner; +pub mod list_guild_scheduled_events_200_response_inner; +pub use self::list_guild_scheduled_events_200_response_inner::ListGuildScheduledEvents200ResponseInner; +pub mod list_guild_soundboard_sounds_response; +pub use self::list_guild_soundboard_sounds_response::ListGuildSoundboardSoundsResponse; +pub mod lobby_member_request; +pub use self::lobby_member_request::LobbyMemberRequest; +pub mod lobby_member_response; +pub use self::lobby_member_response::LobbyMemberResponse; +pub mod lobby_message_response; +pub use self::lobby_message_response::LobbyMessageResponse; +pub mod lobby_response; +pub use self::lobby_response::LobbyResponse; +pub mod media_gallery_component_for_message_request; +pub use self::media_gallery_component_for_message_request::MediaGalleryComponentForMessageRequest; +pub mod media_gallery_component_response; +pub use self::media_gallery_component_response::MediaGalleryComponentResponse; +pub mod media_gallery_item_request; +pub use self::media_gallery_item_request::MediaGalleryItemRequest; +pub mod media_gallery_item_response; +pub use self::media_gallery_item_response::MediaGalleryItemResponse; +pub mod mention_spam_rule_response; +pub use self::mention_spam_rule_response::MentionSpamRuleResponse; +pub mod mention_spam_trigger_metadata; +pub use self::mention_spam_trigger_metadata::MentionSpamTriggerMetadata; +pub mod mention_spam_trigger_metadata_response; +pub use self::mention_spam_trigger_metadata_response::MentionSpamTriggerMetadataResponse; +pub mod mention_spam_upsert_request; +pub use self::mention_spam_upsert_request::MentionSpamUpsertRequest; +pub mod mention_spam_upsert_request_partial; +pub use self::mention_spam_upsert_request_partial::MentionSpamUpsertRequestPartial; +pub mod mentionable_select_component_for_message_request; +pub use self::mentionable_select_component_for_message_request::MentionableSelectComponentForMessageRequest; +pub mod mentionable_select_component_for_message_request_default_values_inner; +pub use self::mentionable_select_component_for_message_request_default_values_inner::MentionableSelectComponentForMessageRequestDefaultValuesInner; +pub mod mentionable_select_component_response; +pub use self::mentionable_select_component_response::MentionableSelectComponentResponse; +pub mod mentionable_select_component_response_default_values_inner; +pub use self::mentionable_select_component_response_default_values_inner::MentionableSelectComponentResponseDefaultValuesInner; +pub mod message_allowed_mentions_request; +pub use self::message_allowed_mentions_request::MessageAllowedMentionsRequest; +pub mod message_attachment_request; +pub use self::message_attachment_request::MessageAttachmentRequest; +pub mod message_attachment_response; +pub use self::message_attachment_response::MessageAttachmentResponse; +pub mod message_call_response; +pub use self::message_call_response::MessageCallResponse; +pub mod message_component_interaction_metadata_response; +pub use self::message_component_interaction_metadata_response::MessageComponentInteractionMetadataResponse; +pub mod message_create_request; +pub use self::message_create_request::MessageCreateRequest; +pub mod message_edit_request_partial; +pub use self::message_edit_request_partial::MessageEditRequestPartial; +pub mod message_embed_author_response; +pub use self::message_embed_author_response::MessageEmbedAuthorResponse; +pub mod message_embed_field_response; +pub use self::message_embed_field_response::MessageEmbedFieldResponse; +pub mod message_embed_footer_response; +pub use self::message_embed_footer_response::MessageEmbedFooterResponse; +pub mod message_embed_image_response; +pub use self::message_embed_image_response::MessageEmbedImageResponse; +pub mod message_embed_provider_response; +pub use self::message_embed_provider_response::MessageEmbedProviderResponse; +pub mod message_embed_response; +pub use self::message_embed_response::MessageEmbedResponse; +pub mod message_embed_video_response; +pub use self::message_embed_video_response::MessageEmbedVideoResponse; +pub mod message_interaction_response; +pub use self::message_interaction_response::MessageInteractionResponse; +pub mod message_mention_channel_response; +pub use self::message_mention_channel_response::MessageMentionChannelResponse; +pub mod message_reaction_count_details_response; +pub use self::message_reaction_count_details_response::MessageReactionCountDetailsResponse; +pub mod message_reaction_emoji_response; +pub use self::message_reaction_emoji_response::MessageReactionEmojiResponse; +pub mod message_reaction_response; +pub use self::message_reaction_response::MessageReactionResponse; +pub mod message_reference_request; +pub use self::message_reference_request::MessageReferenceRequest; +pub mod message_reference_response; +pub use self::message_reference_response::MessageReferenceResponse; +pub mod message_response; +pub use self::message_response::MessageResponse; +pub mod message_role_subscription_data_response; +pub use self::message_role_subscription_data_response::MessageRoleSubscriptionDataResponse; +pub mod message_snapshot_response; +pub use self::message_snapshot_response::MessageSnapshotResponse; +pub mod message_sticker_item_response; +pub use self::message_sticker_item_response::MessageStickerItemResponse; +pub mod minimal_content_message_response; +pub use self::minimal_content_message_response::MinimalContentMessageResponse; +pub mod ml_spam_rule_response; +pub use self::ml_spam_rule_response::MlSpamRuleResponse; +pub mod ml_spam_upsert_request; +pub use self::ml_spam_upsert_request::MlSpamUpsertRequest; +pub mod ml_spam_upsert_request_partial; +pub use self::ml_spam_upsert_request_partial::MlSpamUpsertRequestPartial; +pub mod modal_interaction_callback_request; +pub use self::modal_interaction_callback_request::ModalInteractionCallbackRequest; +pub mod modal_interaction_callback_request_data; +pub use self::modal_interaction_callback_request_data::ModalInteractionCallbackRequestData; +pub mod modal_submit_interaction_metadata_response; +pub use self::modal_submit_interaction_metadata_response::ModalSubmitInteractionMetadataResponse; +pub mod modal_submit_interaction_metadata_response_triggering_interaction_metadata; +pub use self::modal_submit_interaction_metadata_response_triggering_interaction_metadata::ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata; +pub mod my_guild_response; +pub use self::my_guild_response::MyGuildResponse; +pub mod new_member_action_response; +pub use self::new_member_action_response::NewMemberActionResponse; +pub mod o_auth2_get_authorization_response; +pub use self::o_auth2_get_authorization_response::OAuth2GetAuthorizationResponse; +pub mod o_auth2_get_keys; +pub use self::o_auth2_get_keys::OAuth2GetKeys; +pub mod o_auth2_get_open_id_connect_user_info_response; +pub use self::o_auth2_get_open_id_connect_user_info_response::OAuth2GetOpenIdConnectUserInfoResponse; +pub mod o_auth2_key; +pub use self::o_auth2_key::OAuth2Key; +pub mod onboarding_prompt_option_request; +pub use self::onboarding_prompt_option_request::OnboardingPromptOptionRequest; +pub mod onboarding_prompt_option_response; +pub use self::onboarding_prompt_option_response::OnboardingPromptOptionResponse; +pub mod onboarding_prompt_response; +pub use self::onboarding_prompt_response::OnboardingPromptResponse; +pub mod partial_discord_integration_response; +pub use self::partial_discord_integration_response::PartialDiscordIntegrationResponse; +pub mod partial_external_connection_integration_response; +pub use self::partial_external_connection_integration_response::PartialExternalConnectionIntegrationResponse; +pub mod partial_guild_subscription_integration_response; +pub use self::partial_guild_subscription_integration_response::PartialGuildSubscriptionIntegrationResponse; +pub mod partner_sdk_unmerge_provisional_account_request; +pub use self::partner_sdk_unmerge_provisional_account_request::PartnerSdkUnmergeProvisionalAccountRequest; +pub mod pinned_message_response; +pub use self::pinned_message_response::PinnedMessageResponse; +pub mod pinned_messages_response; +pub use self::pinned_messages_response::PinnedMessagesResponse; +pub mod poll_answer_create_request; +pub use self::poll_answer_create_request::PollAnswerCreateRequest; +pub mod poll_answer_details_response; +pub use self::poll_answer_details_response::PollAnswerDetailsResponse; +pub mod poll_answer_response; +pub use self::poll_answer_response::PollAnswerResponse; +pub mod poll_create_request; +pub use self::poll_create_request::PollCreateRequest; +pub mod poll_emoji; +pub use self::poll_emoji::PollEmoji; +pub mod poll_emoji_create_request; +pub use self::poll_emoji_create_request::PollEmojiCreateRequest; +pub mod poll_media; +pub use self::poll_media::PollMedia; +pub mod poll_media_create_request; +pub use self::poll_media_create_request::PollMediaCreateRequest; +pub mod poll_media_response; +pub use self::poll_media_response::PollMediaResponse; +pub mod poll_response; +pub use self::poll_response::PollResponse; +pub mod poll_results_entry_response; +pub use self::poll_results_entry_response::PollResultsEntryResponse; +pub mod poll_results_response; +pub use self::poll_results_response::PollResultsResponse; +pub mod pong_interaction_callback_request; +pub use self::pong_interaction_callback_request::PongInteractionCallbackRequest; +pub mod private_application_response; +pub use self::private_application_response::PrivateApplicationResponse; +pub mod private_channel_location; +pub use self::private_channel_location::PrivateChannelLocation; +pub mod private_channel_response; +pub use self::private_channel_response::PrivateChannelResponse; +pub mod private_group_channel_response; +pub use self::private_group_channel_response::PrivateGroupChannelResponse; +pub mod private_guild_member_response; +pub use self::private_guild_member_response::PrivateGuildMemberResponse; +pub mod provisional_token_response; +pub use self::provisional_token_response::ProvisionalTokenResponse; +pub mod prune_guild_request; +pub use self::prune_guild_request::PruneGuildRequest; +pub mod prune_guild_request_include_roles; +pub use self::prune_guild_request_include_roles::PruneGuildRequestIncludeRoles; +pub mod purchase_notification_response; +pub use self::purchase_notification_response::PurchaseNotificationResponse; +pub mod quarantine_user_action; +pub use self::quarantine_user_action::QuarantineUserAction; +pub mod quarantine_user_action_response; +pub use self::quarantine_user_action_response::QuarantineUserActionResponse; +pub mod resolved_objects_response; +pub use self::resolved_objects_response::ResolvedObjectsResponse; +pub mod resource_channel_response; +pub use self::resource_channel_response::ResourceChannelResponse; +pub mod rich_embed; +pub use self::rich_embed::RichEmbed; +pub mod rich_embed_author; +pub use self::rich_embed_author::RichEmbedAuthor; +pub mod rich_embed_field; +pub use self::rich_embed_field::RichEmbedField; +pub mod rich_embed_footer; +pub use self::rich_embed_footer::RichEmbedFooter; +pub mod rich_embed_image; +pub use self::rich_embed_image::RichEmbedImage; +pub mod rich_embed_provider; +pub use self::rich_embed_provider::RichEmbedProvider; +pub mod rich_embed_thumbnail; +pub use self::rich_embed_thumbnail::RichEmbedThumbnail; +pub mod rich_embed_video; +pub use self::rich_embed_video::RichEmbedVideo; +pub mod role_select_component_for_message_request; +pub use self::role_select_component_for_message_request::RoleSelectComponentForMessageRequest; +pub mod role_select_component_response; +pub use self::role_select_component_response::RoleSelectComponentResponse; +pub mod role_select_default_value; +pub use self::role_select_default_value::RoleSelectDefaultValue; +pub mod role_select_default_value_response; +pub use self::role_select_default_value_response::RoleSelectDefaultValueResponse; +pub mod scheduled_event_response; +pub use self::scheduled_event_response::ScheduledEventResponse; +pub mod scheduled_event_user_response; +pub use self::scheduled_event_user_response::ScheduledEventUserResponse; +pub mod sdk_message_request; +pub use self::sdk_message_request::SdkMessageRequest; +pub mod section_component_for_message_request; +pub use self::section_component_for_message_request::SectionComponentForMessageRequest; +pub mod section_component_for_message_request_accessory; +pub use self::section_component_for_message_request_accessory::SectionComponentForMessageRequestAccessory; +pub mod section_component_response; +pub use self::section_component_response::SectionComponentResponse; +pub mod section_component_response_accessory; +pub use self::section_component_response_accessory::SectionComponentResponseAccessory; +pub mod separator_component_for_message_request; +pub use self::separator_component_for_message_request::SeparatorComponentForMessageRequest; +pub mod separator_component_response; +pub use self::separator_component_response::SeparatorComponentResponse; +pub mod set_channel_permission_overwrite_request; +pub use self::set_channel_permission_overwrite_request::SetChannelPermissionOverwriteRequest; +pub mod set_guild_application_command_permissions_request; +pub use self::set_guild_application_command_permissions_request::SetGuildApplicationCommandPermissionsRequest; +pub mod set_guild_mfa_level_request; +pub use self::set_guild_mfa_level_request::SetGuildMfaLevelRequest; +pub mod settings_emoji_response; +pub use self::settings_emoji_response::SettingsEmojiResponse; +pub mod slack_webhook; +pub use self::slack_webhook::SlackWebhook; +pub mod soundboard_create_request; +pub use self::soundboard_create_request::SoundboardCreateRequest; +pub mod soundboard_patch_request_partial; +pub use self::soundboard_patch_request_partial::SoundboardPatchRequestPartial; +pub mod soundboard_sound_response; +pub use self::soundboard_sound_response::SoundboardSoundResponse; +pub mod soundboard_sound_send_request; +pub use self::soundboard_sound_send_request::SoundboardSoundSendRequest; +pub mod spam_link_rule_response; +pub use self::spam_link_rule_response::SpamLinkRuleResponse; +pub mod stage_instance_response; +pub use self::stage_instance_response::StageInstanceResponse; +pub mod stage_scheduled_event_create_request; +pub use self::stage_scheduled_event_create_request::StageScheduledEventCreateRequest; +pub mod stage_scheduled_event_patch_request_partial; +pub use self::stage_scheduled_event_patch_request_partial::StageScheduledEventPatchRequestPartial; +pub mod stage_scheduled_event_response; +pub use self::stage_scheduled_event_response::StageScheduledEventResponse; +pub mod standard_sticker_response; +pub use self::standard_sticker_response::StandardStickerResponse; +pub mod sticker_pack_collection_response; +pub use self::sticker_pack_collection_response::StickerPackCollectionResponse; +pub mod sticker_pack_response; +pub use self::sticker_pack_response::StickerPackResponse; +pub mod string_select_component_for_message_request; +pub use self::string_select_component_for_message_request::StringSelectComponentForMessageRequest; +pub mod string_select_component_response; +pub use self::string_select_component_response::StringSelectComponentResponse; +pub mod string_select_option_for_message_request; +pub use self::string_select_option_for_message_request::StringSelectOptionForMessageRequest; +pub mod string_select_option_response; +pub use self::string_select_option_response::StringSelectOptionResponse; +pub mod team_member_response; +pub use self::team_member_response::TeamMemberResponse; +pub mod team_response; +pub use self::team_response::TeamResponse; +pub mod text_display_component_for_message_request; +pub use self::text_display_component_for_message_request::TextDisplayComponentForMessageRequest; +pub mod text_display_component_response; +pub use self::text_display_component_response::TextDisplayComponentResponse; +pub mod text_input_component_for_modal_request; +pub use self::text_input_component_for_modal_request::TextInputComponentForModalRequest; +pub mod text_input_component_response; +pub use self::text_input_component_response::TextInputComponentResponse; +pub mod thread_member_response; +pub use self::thread_member_response::ThreadMemberResponse; +pub mod thread_metadata_response; +pub use self::thread_metadata_response::ThreadMetadataResponse; +pub mod thread_response; +pub use self::thread_response::ThreadResponse; +pub mod thread_search_response; +pub use self::thread_search_response::ThreadSearchResponse; +pub mod thread_search_tag_parameter; +pub use self::thread_search_tag_parameter::ThreadSearchTagParameter; +pub mod threads_response; +pub use self::threads_response::ThreadsResponse; +pub mod thumbnail_component_for_message_request; +pub use self::thumbnail_component_for_message_request::ThumbnailComponentForMessageRequest; +pub mod thumbnail_component_response; +pub use self::thumbnail_component_response::ThumbnailComponentResponse; +pub mod unfurled_media_request; +pub use self::unfurled_media_request::UnfurledMediaRequest; +pub mod unfurled_media_request_with_attachment_reference_required; +pub use self::unfurled_media_request_with_attachment_reference_required::UnfurledMediaRequestWithAttachmentReferenceRequired; +pub mod unfurled_media_response; +pub use self::unfurled_media_response::UnfurledMediaResponse; +pub mod update_application_emoji_request; +pub use self::update_application_emoji_request::UpdateApplicationEmojiRequest; +pub mod update_application_user_role_connection_request; +pub use self::update_application_user_role_connection_request::UpdateApplicationUserRoleConnectionRequest; +pub mod update_auto_moderation_rule_request; +pub use self::update_auto_moderation_rule_request::UpdateAutoModerationRuleRequest; +pub mod update_channel_request; +pub use self::update_channel_request::UpdateChannelRequest; +pub mod update_default_reaction_emoji_request; +pub use self::update_default_reaction_emoji_request::UpdateDefaultReactionEmojiRequest; +pub mod update_dm_request_partial; +pub use self::update_dm_request_partial::UpdateDmRequestPartial; +pub mod update_group_dm_request_partial; +pub use self::update_group_dm_request_partial::UpdateGroupDmRequestPartial; +pub mod update_guild_channel_request_partial; +pub use self::update_guild_channel_request_partial::UpdateGuildChannelRequestPartial; +pub mod update_guild_emoji_request; +pub use self::update_guild_emoji_request::UpdateGuildEmojiRequest; +pub mod update_guild_member_request; +pub use self::update_guild_member_request::UpdateGuildMemberRequest; +pub mod update_guild_onboarding_request; +pub use self::update_guild_onboarding_request::UpdateGuildOnboardingRequest; +pub mod update_guild_scheduled_event_request; +pub use self::update_guild_scheduled_event_request::UpdateGuildScheduledEventRequest; +pub mod update_guild_sticker_request; +pub use self::update_guild_sticker_request::UpdateGuildStickerRequest; +pub mod update_guild_template_request; +pub use self::update_guild_template_request::UpdateGuildTemplateRequest; +pub mod update_guild_widget_settings_request; +pub use self::update_guild_widget_settings_request::UpdateGuildWidgetSettingsRequest; +pub mod update_message_interaction_callback_request; +pub use self::update_message_interaction_callback_request::UpdateMessageInteractionCallbackRequest; +pub mod update_message_interaction_callback_response; +pub use self::update_message_interaction_callback_response::UpdateMessageInteractionCallbackResponse; +pub mod update_my_guild_member_request; +pub use self::update_my_guild_member_request::UpdateMyGuildMemberRequest; +pub mod update_onboarding_prompt_request; +pub use self::update_onboarding_prompt_request::UpdateOnboardingPromptRequest; +pub mod update_self_voice_state_request; +pub use self::update_self_voice_state_request::UpdateSelfVoiceStateRequest; +pub mod update_stage_instance_request; +pub use self::update_stage_instance_request::UpdateStageInstanceRequest; +pub mod update_thread_request_partial; +pub use self::update_thread_request_partial::UpdateThreadRequestPartial; +pub mod update_thread_tag_request; +pub use self::update_thread_tag_request::UpdateThreadTagRequest; +pub mod update_voice_state_request; +pub use self::update_voice_state_request::UpdateVoiceStateRequest; +pub mod update_webhook_by_token_request; +pub use self::update_webhook_by_token_request::UpdateWebhookByTokenRequest; +pub mod update_webhook_request; +pub use self::update_webhook_request::UpdateWebhookRequest; +pub mod user_avatar_decoration_response; +pub use self::user_avatar_decoration_response::UserAvatarDecorationResponse; +pub mod user_collectibles_response; +pub use self::user_collectibles_response::UserCollectiblesResponse; +pub mod user_communication_disabled_action; +pub use self::user_communication_disabled_action::UserCommunicationDisabledAction; +pub mod user_communication_disabled_action_metadata; +pub use self::user_communication_disabled_action_metadata::UserCommunicationDisabledActionMetadata; +pub mod user_communication_disabled_action_metadata_response; +pub use self::user_communication_disabled_action_metadata_response::UserCommunicationDisabledActionMetadataResponse; +pub mod user_communication_disabled_action_response; +pub use self::user_communication_disabled_action_response::UserCommunicationDisabledActionResponse; +pub mod user_guild_onboarding_response; +pub use self::user_guild_onboarding_response::UserGuildOnboardingResponse; +pub mod user_nameplate_response; +pub use self::user_nameplate_response::UserNameplateResponse; +pub mod user_pii_response; +pub use self::user_pii_response::UserPiiResponse; +pub mod user_primary_guild_response; +pub use self::user_primary_guild_response::UserPrimaryGuildResponse; +pub mod user_response; +pub use self::user_response::UserResponse; +pub mod user_select_component_for_message_request; +pub use self::user_select_component_for_message_request::UserSelectComponentForMessageRequest; +pub mod user_select_component_response; +pub use self::user_select_component_response::UserSelectComponentResponse; +pub mod user_select_default_value; +pub use self::user_select_default_value::UserSelectDefaultValue; +pub mod user_select_default_value_response; +pub use self::user_select_default_value_response::UserSelectDefaultValueResponse; +pub mod vanity_url_error_response; +pub use self::vanity_url_error_response::VanityUrlErrorResponse; +pub mod vanity_url_response; +pub use self::vanity_url_response::VanityUrlResponse; +pub mod voice_region_response; +pub use self::voice_region_response::VoiceRegionResponse; +pub mod voice_scheduled_event_create_request; +pub use self::voice_scheduled_event_create_request::VoiceScheduledEventCreateRequest; +pub mod voice_scheduled_event_patch_request_partial; +pub use self::voice_scheduled_event_patch_request_partial::VoiceScheduledEventPatchRequestPartial; +pub mod voice_scheduled_event_response; +pub use self::voice_scheduled_event_response::VoiceScheduledEventResponse; +pub mod voice_state_response; +pub use self::voice_state_response::VoiceStateResponse; +pub mod webhook_slack_embed; +pub use self::webhook_slack_embed::WebhookSlackEmbed; +pub mod webhook_slack_embed_field; +pub use self::webhook_slack_embed_field::WebhookSlackEmbedField; +pub mod webhook_source_channel_response; +pub use self::webhook_source_channel_response::WebhookSourceChannelResponse; +pub mod webhook_source_guild_response; +pub use self::webhook_source_guild_response::WebhookSourceGuildResponse; +pub mod welcome_message_response; +pub use self::welcome_message_response::WelcomeMessageResponse; +pub mod welcome_screen_patch_request_partial; +pub use self::welcome_screen_patch_request_partial::WelcomeScreenPatchRequestPartial; +pub mod widget_activity; +pub use self::widget_activity::WidgetActivity; +pub mod widget_channel; +pub use self::widget_channel::WidgetChannel; +pub mod widget_member; +pub use self::widget_member::WidgetMember; +pub mod widget_response; +pub use self::widget_response::WidgetResponse; +pub mod widget_settings_response; +pub use self::widget_settings_response::WidgetSettingsResponse; diff --git a/src/models/modal_interaction_callback_request.rs b/src/models/modal_interaction_callback_request.rs new file mode 100644 index 0000000..887785a --- /dev/null +++ b/src/models/modal_interaction_callback_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModalInteractionCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "data")] + pub data: Box, +} + +impl ModalInteractionCallbackRequest { + pub fn new(r#type: Option, data: models::ModalInteractionCallbackRequestData) -> ModalInteractionCallbackRequest { + ModalInteractionCallbackRequest { + r#type, + data: Box::new(data), + } + } +} + diff --git a/src/models/modal_interaction_callback_request_data.rs b/src/models/modal_interaction_callback_request_data.rs new file mode 100644 index 0000000..c8e1824 --- /dev/null +++ b/src/models/modal_interaction_callback_request_data.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModalInteractionCallbackRequestData { + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "components")] + pub components: Vec, +} + +impl ModalInteractionCallbackRequestData { + pub fn new(custom_id: String, title: String, components: Vec) -> ModalInteractionCallbackRequestData { + ModalInteractionCallbackRequestData { + custom_id, + title, + components, + } + } +} + diff --git a/src/models/modal_submit_interaction_metadata_response.rs b/src/models/modal_submit_interaction_metadata_response.rs new file mode 100644 index 0000000..b799426 --- /dev/null +++ b/src/models/modal_submit_interaction_metadata_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModalSubmitInteractionMetadataResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "authorizing_integration_owners")] + pub authorizing_integration_owners: std::collections::HashMap, + #[serde(rename = "original_response_message_id", skip_serializing_if = "Option::is_none")] + pub original_response_message_id: Option, + #[serde(rename = "triggering_interaction_metadata")] + pub triggering_interaction_metadata: Box, +} + +impl ModalSubmitInteractionMetadataResponse { + pub fn new(id: String, r#type: i32, authorizing_integration_owners: std::collections::HashMap, triggering_interaction_metadata: models::ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata) -> ModalSubmitInteractionMetadataResponse { + ModalSubmitInteractionMetadataResponse { + id, + r#type, + user: None, + authorizing_integration_owners, + original_response_message_id: None, + triggering_interaction_metadata: Box::new(triggering_interaction_metadata), + } + } +} + diff --git a/src/models/modal_submit_interaction_metadata_response_triggering_interaction_metadata.rs b/src/models/modal_submit_interaction_metadata_response_triggering_interaction_metadata.rs new file mode 100644 index 0000000..4ef0664 --- /dev/null +++ b/src/models/modal_submit_interaction_metadata_response_triggering_interaction_metadata.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata { + ApplicationCommandInteractionMetadataResponse(Box), + MessageComponentInteractionMetadataResponse(Box), +} + +impl Default for ModalSubmitInteractionMetadataResponseTriggeringInteractionMetadata { + fn default() -> Self { + Self::ApplicationCommandInteractionMetadataResponse(Default::default()) + } +} + diff --git a/src/models/my_guild_response.rs b/src/models/my_guild_response.rs new file mode 100644 index 0000000..21db4ad --- /dev/null +++ b/src/models/my_guild_response.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MyGuildResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "owner")] + pub owner: bool, + #[serde(rename = "permissions")] + pub permissions: String, + #[serde(rename = "features")] + pub features: Vec, + #[serde(rename = "approximate_member_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_member_count: Option>, + #[serde(rename = "approximate_presence_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_presence_count: Option>, +} + +impl MyGuildResponse { + pub fn new(id: String, name: String, owner: bool, permissions: String, features: Vec) -> MyGuildResponse { + MyGuildResponse { + id, + name, + icon: None, + banner: None, + owner, + permissions, + features, + approximate_member_count: None, + approximate_presence_count: None, + } + } +} + diff --git a/src/models/new_member_action_response.rs b/src/models/new_member_action_response.rs new file mode 100644 index 0000000..b8853a5 --- /dev/null +++ b/src/models/new_member_action_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NewMemberActionResponse { + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "action_type", deserialize_with = "Option::deserialize")] + pub action_type: Option, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, +} + +impl NewMemberActionResponse { + pub fn new(channel_id: String, action_type: Option, title: String, description: String) -> NewMemberActionResponse { + NewMemberActionResponse { + channel_id, + action_type, + title, + description, + emoji: None, + icon: None, + } + } +} + diff --git a/src/models/o_auth2_get_authorization_response.rs b/src/models/o_auth2_get_authorization_response.rs new file mode 100644 index 0000000..a990791 --- /dev/null +++ b/src/models/o_auth2_get_authorization_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OAuth2GetAuthorizationResponse { + #[serde(rename = "application")] + pub application: Box, + #[serde(rename = "expires")] + pub expires: String, + #[serde(rename = "scopes")] + pub scopes: Vec, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, +} + +impl OAuth2GetAuthorizationResponse { + pub fn new(application: models::ApplicationResponse, expires: String, scopes: Vec) -> OAuth2GetAuthorizationResponse { + OAuth2GetAuthorizationResponse { + application: Box::new(application), + expires, + scopes, + user: None, + } + } +} + diff --git a/src/models/o_auth2_get_keys.rs b/src/models/o_auth2_get_keys.rs new file mode 100644 index 0000000..5bee863 --- /dev/null +++ b/src/models/o_auth2_get_keys.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OAuth2GetKeys { + #[serde(rename = "keys")] + pub keys: Vec, +} + +impl OAuth2GetKeys { + pub fn new(keys: Vec) -> OAuth2GetKeys { + OAuth2GetKeys { + keys, + } + } +} + diff --git a/src/models/o_auth2_get_open_id_connect_user_info_response.rs b/src/models/o_auth2_get_open_id_connect_user_info_response.rs new file mode 100644 index 0000000..c10b707 --- /dev/null +++ b/src/models/o_auth2_get_open_id_connect_user_info_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OAuth2GetOpenIdConnectUserInfoResponse { + #[serde(rename = "sub")] + pub sub: String, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "email_verified", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email_verified: Option>, + #[serde(rename = "preferred_username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub preferred_username: Option>, + #[serde(rename = "nickname", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nickname: Option>, + #[serde(rename = "picture", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub picture: Option>, + #[serde(rename = "locale", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locale: Option>, +} + +impl OAuth2GetOpenIdConnectUserInfoResponse { + pub fn new(sub: String) -> OAuth2GetOpenIdConnectUserInfoResponse { + OAuth2GetOpenIdConnectUserInfoResponse { + sub, + email: None, + email_verified: None, + preferred_username: None, + nickname: None, + picture: None, + locale: None, + } + } +} + diff --git a/src/models/o_auth2_key.rs b/src/models/o_auth2_key.rs new file mode 100644 index 0000000..0b0bf2b --- /dev/null +++ b/src/models/o_auth2_key.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OAuth2Key { + #[serde(rename = "kty")] + pub kty: String, + #[serde(rename = "use")] + pub r#use: String, + #[serde(rename = "kid")] + pub kid: String, + #[serde(rename = "n")] + pub n: String, + #[serde(rename = "e")] + pub e: String, + #[serde(rename = "alg")] + pub alg: String, +} + +impl OAuth2Key { + pub fn new(kty: String, r#use: String, kid: String, n: String, e: String, alg: String) -> OAuth2Key { + OAuth2Key { + kty, + r#use, + kid, + n, + e, + alg, + } + } +} + diff --git a/src/models/onboarding_prompt_option_request.rs b/src/models/onboarding_prompt_option_request.rs new file mode 100644 index 0000000..72a1730 --- /dev/null +++ b/src/models/onboarding_prompt_option_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OnboardingPromptOptionRequest { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "emoji_animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_animated: Option>, + #[serde(rename = "role_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub role_ids: Option>>, + #[serde(rename = "channel_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channel_ids: Option>>, +} + +impl OnboardingPromptOptionRequest { + pub fn new(title: String) -> OnboardingPromptOptionRequest { + OnboardingPromptOptionRequest { + id: None, + title, + description: None, + emoji_id: None, + emoji_name: None, + emoji_animated: None, + role_ids: None, + channel_ids: None, + } + } +} + diff --git a/src/models/onboarding_prompt_option_response.rs b/src/models/onboarding_prompt_option_response.rs new file mode 100644 index 0000000..3b930ca --- /dev/null +++ b/src/models/onboarding_prompt_option_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OnboardingPromptOptionResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "emoji")] + pub emoji: Box, + #[serde(rename = "role_ids")] + pub role_ids: Vec, + #[serde(rename = "channel_ids")] + pub channel_ids: Vec, +} + +impl OnboardingPromptOptionResponse { + pub fn new(id: String, title: String, description: String, emoji: models::SettingsEmojiResponse, role_ids: Vec, channel_ids: Vec) -> OnboardingPromptOptionResponse { + OnboardingPromptOptionResponse { + id, + title, + description, + emoji: Box::new(emoji), + role_ids, + channel_ids, + } + } +} + diff --git a/src/models/onboarding_prompt_response.rs b/src/models/onboarding_prompt_response.rs new file mode 100644 index 0000000..89ef7e8 --- /dev/null +++ b/src/models/onboarding_prompt_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OnboardingPromptResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "options")] + pub options: Vec, + #[serde(rename = "single_select")] + pub single_select: bool, + #[serde(rename = "required")] + pub required: bool, + #[serde(rename = "in_onboarding")] + pub in_onboarding: bool, + #[serde(rename = "type")] + pub r#type: i32, +} + +impl OnboardingPromptResponse { + pub fn new(id: String, title: String, options: Vec, single_select: bool, required: bool, in_onboarding: bool, r#type: i32) -> OnboardingPromptResponse { + OnboardingPromptResponse { + id, + title, + options, + single_select, + required, + in_onboarding, + r#type, + } + } +} + diff --git a/src/models/partial_discord_integration_response.rs b/src/models/partial_discord_integration_response.rs new file mode 100644 index 0000000..8392a14 --- /dev/null +++ b/src/models/partial_discord_integration_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PartialDiscordIntegrationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, + #[serde(rename = "application_id")] + pub application_id: String, +} + +impl PartialDiscordIntegrationResponse { + pub fn new(id: String, r#type: Option, application_id: String) -> PartialDiscordIntegrationResponse { + PartialDiscordIntegrationResponse { + id, + r#type, + name: None, + account: None, + application_id, + } + } +} + diff --git a/src/models/partial_external_connection_integration_response.rs b/src/models/partial_external_connection_integration_response.rs new file mode 100644 index 0000000..f1fb502 --- /dev/null +++ b/src/models/partial_external_connection_integration_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PartialExternalConnectionIntegrationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, +} + +impl PartialExternalConnectionIntegrationResponse { + pub fn new(id: String, r#type: Option) -> PartialExternalConnectionIntegrationResponse { + PartialExternalConnectionIntegrationResponse { + id, + r#type, + name: None, + account: None, + } + } +} + diff --git a/src/models/partial_guild_subscription_integration_response.rs b/src/models/partial_guild_subscription_integration_response.rs new file mode 100644 index 0000000..1882bb9 --- /dev/null +++ b/src/models/partial_guild_subscription_integration_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PartialGuildSubscriptionIntegrationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "account", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account: Option>>, +} + +impl PartialGuildSubscriptionIntegrationResponse { + pub fn new(id: String, r#type: Option) -> PartialGuildSubscriptionIntegrationResponse { + PartialGuildSubscriptionIntegrationResponse { + id, + r#type, + name: None, + account: None, + } + } +} + diff --git a/src/models/partner_sdk_unmerge_provisional_account_request.rs b/src/models/partner_sdk_unmerge_provisional_account_request.rs new file mode 100644 index 0000000..b32bfdb --- /dev/null +++ b/src/models/partner_sdk_unmerge_provisional_account_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PartnerSdkUnmergeProvisionalAccountRequest { + #[serde(rename = "client_id")] + pub client_id: String, + #[serde(rename = "client_secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub client_secret: Option>, + #[serde(rename = "external_auth_token")] + pub external_auth_token: String, + #[serde(rename = "external_auth_type", deserialize_with = "Option::deserialize")] + pub external_auth_type: Option, +} + +impl PartnerSdkUnmergeProvisionalAccountRequest { + pub fn new(client_id: String, external_auth_token: String, external_auth_type: Option) -> PartnerSdkUnmergeProvisionalAccountRequest { + PartnerSdkUnmergeProvisionalAccountRequest { + client_id, + client_secret: None, + external_auth_token, + external_auth_type, + } + } +} + diff --git a/src/models/pinned_message_response.rs b/src/models/pinned_message_response.rs new file mode 100644 index 0000000..ecc082a --- /dev/null +++ b/src/models/pinned_message_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PinnedMessageResponse { + #[serde(rename = "pinned_at")] + pub pinned_at: String, + #[serde(rename = "message")] + pub message: Box, +} + +impl PinnedMessageResponse { + pub fn new(pinned_at: String, message: models::MessageResponse) -> PinnedMessageResponse { + PinnedMessageResponse { + pinned_at, + message: Box::new(message), + } + } +} + diff --git a/src/models/pinned_messages_response.rs b/src/models/pinned_messages_response.rs new file mode 100644 index 0000000..fc02dcf --- /dev/null +++ b/src/models/pinned_messages_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PinnedMessagesResponse { + #[serde(rename = "items", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub items: Option>>, + #[serde(rename = "has_more")] + pub has_more: bool, +} + +impl PinnedMessagesResponse { + pub fn new(has_more: bool) -> PinnedMessagesResponse { + PinnedMessagesResponse { + items: None, + has_more, + } + } +} + diff --git a/src/models/poll_answer_create_request.rs b/src/models/poll_answer_create_request.rs new file mode 100644 index 0000000..68f5d59 --- /dev/null +++ b/src/models/poll_answer_create_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollAnswerCreateRequest { + #[serde(rename = "poll_media")] + pub poll_media: Box, +} + +impl PollAnswerCreateRequest { + pub fn new(poll_media: models::PollMediaCreateRequest) -> PollAnswerCreateRequest { + PollAnswerCreateRequest { + poll_media: Box::new(poll_media), + } + } +} + diff --git a/src/models/poll_answer_details_response.rs b/src/models/poll_answer_details_response.rs new file mode 100644 index 0000000..2867381 --- /dev/null +++ b/src/models/poll_answer_details_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollAnswerDetailsResponse { + #[serde(rename = "users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub users: Option>>, +} + +impl PollAnswerDetailsResponse { + pub fn new() -> PollAnswerDetailsResponse { + PollAnswerDetailsResponse { + users: None, + } + } +} + diff --git a/src/models/poll_answer_response.rs b/src/models/poll_answer_response.rs new file mode 100644 index 0000000..b8b5d5a --- /dev/null +++ b/src/models/poll_answer_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollAnswerResponse { + #[serde(rename = "answer_id")] + pub answer_id: i32, + #[serde(rename = "poll_media")] + pub poll_media: Box, +} + +impl PollAnswerResponse { + pub fn new(answer_id: i32, poll_media: models::PollMediaResponse) -> PollAnswerResponse { + PollAnswerResponse { + answer_id, + poll_media: Box::new(poll_media), + } + } +} + diff --git a/src/models/poll_create_request.rs b/src/models/poll_create_request.rs new file mode 100644 index 0000000..35a78e0 --- /dev/null +++ b/src/models/poll_create_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollCreateRequest { + #[serde(rename = "question")] + pub question: Box, + #[serde(rename = "answers")] + pub answers: Vec, + #[serde(rename = "allow_multiselect", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allow_multiselect: Option>, + #[serde(rename = "layout_type", skip_serializing_if = "Option::is_none")] + pub layout_type: Option, + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, +} + +impl PollCreateRequest { + pub fn new(question: models::PollMedia, answers: Vec) -> PollCreateRequest { + PollCreateRequest { + question: Box::new(question), + answers, + allow_multiselect: None, + layout_type: None, + duration: None, + } + } +} + diff --git a/src/models/poll_emoji.rs b/src/models/poll_emoji.rs new file mode 100644 index 0000000..3d73a1c --- /dev/null +++ b/src/models/poll_emoji.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollEmoji { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub animated: Option>, +} + +impl PollEmoji { + pub fn new() -> PollEmoji { + PollEmoji { + id: None, + name: None, + animated: None, + } + } +} + diff --git a/src/models/poll_emoji_create_request.rs b/src/models/poll_emoji_create_request.rs new file mode 100644 index 0000000..b527d1d --- /dev/null +++ b/src/models/poll_emoji_create_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollEmojiCreateRequest { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub animated: Option>, +} + +impl PollEmojiCreateRequest { + pub fn new() -> PollEmojiCreateRequest { + PollEmojiCreateRequest { + id: None, + name: None, + animated: None, + } + } +} + diff --git a/src/models/poll_media.rs b/src/models/poll_media.rs new file mode 100644 index 0000000..7181c39 --- /dev/null +++ b/src/models/poll_media.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollMedia { + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, +} + +impl PollMedia { + pub fn new() -> PollMedia { + PollMedia { + text: None, + emoji: None, + } + } +} + diff --git a/src/models/poll_media_create_request.rs b/src/models/poll_media_create_request.rs new file mode 100644 index 0000000..7a4c5a2 --- /dev/null +++ b/src/models/poll_media_create_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollMediaCreateRequest { + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, +} + +impl PollMediaCreateRequest { + pub fn new() -> PollMediaCreateRequest { + PollMediaCreateRequest { + text: None, + emoji: None, + } + } +} + diff --git a/src/models/poll_media_response.rs b/src/models/poll_media_response.rs new file mode 100644 index 0000000..27589e0 --- /dev/null +++ b/src/models/poll_media_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollMediaResponse { + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, +} + +impl PollMediaResponse { + pub fn new() -> PollMediaResponse { + PollMediaResponse { + text: None, + emoji: None, + } + } +} + diff --git a/src/models/poll_response.rs b/src/models/poll_response.rs new file mode 100644 index 0000000..4c086fe --- /dev/null +++ b/src/models/poll_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollResponse { + #[serde(rename = "question")] + pub question: Box, + #[serde(rename = "answers")] + pub answers: Vec, + #[serde(rename = "expiry")] + pub expiry: String, + #[serde(rename = "allow_multiselect")] + pub allow_multiselect: bool, + #[serde(rename = "layout_type")] + pub layout_type: i32, + #[serde(rename = "results")] + pub results: Box, +} + +impl PollResponse { + pub fn new(question: models::PollMediaResponse, answers: Vec, expiry: String, allow_multiselect: bool, layout_type: i32, results: models::PollResultsResponse) -> PollResponse { + PollResponse { + question: Box::new(question), + answers, + expiry, + allow_multiselect, + layout_type, + results: Box::new(results), + } + } +} + diff --git a/src/models/poll_results_entry_response.rs b/src/models/poll_results_entry_response.rs new file mode 100644 index 0000000..54c98ba --- /dev/null +++ b/src/models/poll_results_entry_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollResultsEntryResponse { + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "count")] + pub count: i32, + #[serde(rename = "me_voted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub me_voted: Option>, +} + +impl PollResultsEntryResponse { + pub fn new(id: i32, count: i32) -> PollResultsEntryResponse { + PollResultsEntryResponse { + id, + count, + me_voted: None, + } + } +} + diff --git a/src/models/poll_results_response.rs b/src/models/poll_results_response.rs new file mode 100644 index 0000000..7414c26 --- /dev/null +++ b/src/models/poll_results_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PollResultsResponse { + #[serde(rename = "answer_counts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub answer_counts: Option>>, + #[serde(rename = "is_finalized")] + pub is_finalized: bool, +} + +impl PollResultsResponse { + pub fn new(is_finalized: bool) -> PollResultsResponse { + PollResultsResponse { + answer_counts: None, + is_finalized, + } + } +} + diff --git a/src/models/pong_interaction_callback_request.rs b/src/models/pong_interaction_callback_request.rs new file mode 100644 index 0000000..39aa9e9 --- /dev/null +++ b/src/models/pong_interaction_callback_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PongInteractionCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, +} + +impl PongInteractionCallbackRequest { + pub fn new(r#type: Option) -> PongInteractionCallbackRequest { + PongInteractionCallbackRequest { + r#type, + } + } +} + diff --git a/src/models/private_application_response.rs b/src/models/private_application_response.rs new file mode 100644 index 0000000..36dfb65 --- /dev/null +++ b/src/models/private_application_response.rs @@ -0,0 +1,150 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PrivateApplicationResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "cover_image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cover_image: Option>, + #[serde(rename = "primary_sku_id", skip_serializing_if = "Option::is_none")] + pub primary_sku_id: Option, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>>, + #[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub slug: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "rpc_origins", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rpc_origins: Option>>, + #[serde(rename = "bot_public", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_public: Option>, + #[serde(rename = "bot_require_code_grant", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot_require_code_grant: Option>, + #[serde(rename = "terms_of_service_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub terms_of_service_url: Option>, + #[serde(rename = "privacy_policy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_policy_url: Option>, + #[serde(rename = "custom_install_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub custom_install_url: Option>, + #[serde(rename = "install_params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub install_params: Option>>, + #[serde(rename = "integration_types_config", skip_serializing_if = "Option::is_none")] + pub integration_types_config: Option>, + #[serde(rename = "verify_key")] + pub verify_key: String, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "max_participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_participants: Option>, + #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tags: Option>>, + #[serde(rename = "redirect_uris")] + pub redirect_uris: Vec, + #[serde(rename = "interactions_endpoint_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub interactions_endpoint_url: Option>, + #[serde(rename = "role_connections_verification_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub role_connections_verification_url: Option>, + #[serde(rename = "owner")] + pub owner: Box, + #[serde(rename = "approximate_guild_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approximate_guild_count: Option>, + #[serde(rename = "approximate_user_install_count")] + pub approximate_user_install_count: i32, + #[serde(rename = "approximate_user_authorization_count")] + pub approximate_user_authorization_count: i32, + #[serde(rename = "explicit_content_filter")] + pub explicit_content_filter: i32, + #[serde(rename = "team", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub team: Option>>, +} + +impl PrivateApplicationResponse { + pub fn new(id: String, name: String, description: String, verify_key: String, flags: i32, redirect_uris: Vec, owner: models::UserResponse, approximate_user_install_count: i32, approximate_user_authorization_count: i32, explicit_content_filter: i32) -> PrivateApplicationResponse { + PrivateApplicationResponse { + id, + name, + icon: None, + description, + r#type: None, + cover_image: None, + primary_sku_id: None, + bot: None, + slug: None, + guild_id: None, + rpc_origins: None, + bot_public: None, + bot_require_code_grant: None, + terms_of_service_url: None, + privacy_policy_url: None, + custom_install_url: None, + install_params: None, + integration_types_config: None, + verify_key, + flags, + max_participants: None, + tags: None, + redirect_uris, + interactions_endpoint_url: None, + role_connections_verification_url: None, + owner: Box::new(owner), + approximate_guild_count: None, + approximate_user_install_count, + approximate_user_authorization_count, + explicit_content_filter, + team: None, + } + } +} + diff --git a/src/models/private_channel_location.rs b/src/models/private_channel_location.rs new file mode 100644 index 0000000..b0f7ac5 --- /dev/null +++ b/src/models/private_channel_location.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PrivateChannelLocation { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "kind")] + pub kind: String, + #[serde(rename = "channel_id")] + pub channel_id: String, +} + +impl PrivateChannelLocation { + pub fn new(id: String, kind: String, channel_id: String) -> PrivateChannelLocation { + PrivateChannelLocation { + id, + kind, + channel_id, + } + } +} + diff --git a/src/models/private_channel_response.rs b/src/models/private_channel_response.rs new file mode 100644 index 0000000..1308e96 --- /dev/null +++ b/src/models/private_channel_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PrivateChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "last_message_id", skip_serializing_if = "Option::is_none")] + pub last_message_id: Option, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "last_pin_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_pin_timestamp: Option>, + #[serde(rename = "recipients")] + pub recipients: Vec, +} + +impl PrivateChannelResponse { + pub fn new(id: String, r#type: i32, flags: i32, recipients: Vec) -> PrivateChannelResponse { + PrivateChannelResponse { + id, + r#type, + last_message_id: None, + flags, + last_pin_timestamp: None, + recipients, + } + } +} + diff --git a/src/models/private_group_channel_response.rs b/src/models/private_group_channel_response.rs new file mode 100644 index 0000000..8aa7c7d --- /dev/null +++ b/src/models/private_group_channel_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PrivateGroupChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "last_message_id", skip_serializing_if = "Option::is_none")] + pub last_message_id: Option, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "last_pin_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_pin_timestamp: Option>, + #[serde(rename = "recipients")] + pub recipients: Vec, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")] + pub owner_id: Option, + #[serde(rename = "managed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub managed: Option>, + #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] + pub application_id: Option, +} + +impl PrivateGroupChannelResponse { + pub fn new(id: String, r#type: i32, flags: i32, recipients: Vec) -> PrivateGroupChannelResponse { + PrivateGroupChannelResponse { + id, + r#type, + last_message_id: None, + flags, + last_pin_timestamp: None, + recipients, + name: None, + icon: None, + owner_id: None, + managed: None, + application_id: None, + } + } +} + diff --git a/src/models/private_guild_member_response.rs b/src/models/private_guild_member_response.rs new file mode 100644 index 0000000..678531d --- /dev/null +++ b/src/models/private_guild_member_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PrivateGuildMemberResponse { + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "avatar_decoration_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_decoration_data: Option>>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "communication_disabled_until", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub communication_disabled_until: Option>, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "joined_at")] + pub joined_at: String, + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, + #[serde(rename = "pending")] + pub pending: bool, + #[serde(rename = "premium_since", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub premium_since: Option>, + #[serde(rename = "roles")] + pub roles: Vec, + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "mute")] + pub mute: bool, + #[serde(rename = "deaf")] + pub deaf: bool, +} + +impl PrivateGuildMemberResponse { + pub fn new(flags: i32, joined_at: String, pending: bool, roles: Vec, user: models::UserResponse, mute: bool, deaf: bool) -> PrivateGuildMemberResponse { + PrivateGuildMemberResponse { + avatar: None, + avatar_decoration_data: None, + banner: None, + communication_disabled_until: None, + flags, + joined_at, + nick: None, + pending, + premium_since: None, + roles, + user: Box::new(user), + mute, + deaf, + } + } +} + diff --git a/src/models/provisional_token_response.rs b/src/models/provisional_token_response.rs new file mode 100644 index 0000000..3d24b30 --- /dev/null +++ b/src/models/provisional_token_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProvisionalTokenResponse { + #[serde(rename = "token_type")] + pub token_type: String, + #[serde(rename = "access_token")] + pub access_token: String, + #[serde(rename = "expires_in")] + pub expires_in: i32, + #[serde(rename = "scope")] + pub scope: String, + #[serde(rename = "id_token")] + pub id_token: String, + #[serde(rename = "refresh_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub refresh_token: Option>, + #[serde(rename = "scopes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scopes: Option>>, + #[serde(rename = "expires_at_s", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expires_at_s: Option>, +} + +impl ProvisionalTokenResponse { + pub fn new(token_type: String, access_token: String, expires_in: i32, scope: String, id_token: String) -> ProvisionalTokenResponse { + ProvisionalTokenResponse { + token_type, + access_token, + expires_in, + scope, + id_token, + refresh_token: None, + scopes: None, + expires_at_s: None, + } + } +} + diff --git a/src/models/prune_guild_request.rs b/src/models/prune_guild_request.rs new file mode 100644 index 0000000..0c356bb --- /dev/null +++ b/src/models/prune_guild_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PruneGuildRequest { + #[serde(rename = "days", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub days: Option>, + #[serde(rename = "compute_prune_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub compute_prune_count: Option>, + #[serde(rename = "include_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub include_roles: Option>>, +} + +impl PruneGuildRequest { + pub fn new() -> PruneGuildRequest { + PruneGuildRequest { + days: None, + compute_prune_count: None, + include_roles: None, + } + } +} + diff --git a/src/models/prune_guild_request_include_roles.rs b/src/models/prune_guild_request_include_roles.rs new file mode 100644 index 0000000..1570da8 --- /dev/null +++ b/src/models/prune_guild_request_include_roles.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PruneGuildRequestIncludeRoles { + String(String), + Array(Vec), +} + +impl Default for PruneGuildRequestIncludeRoles { + fn default() -> Self { + Self::String(Default::default()) + } +} + diff --git a/src/models/purchase_notification_response.rs b/src/models/purchase_notification_response.rs new file mode 100644 index 0000000..75d0d30 --- /dev/null +++ b/src/models/purchase_notification_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PurchaseNotificationResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "guild_product_purchase", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub guild_product_purchase: Option>>, +} + +impl PurchaseNotificationResponse { + pub fn new(r#type: Option) -> PurchaseNotificationResponse { + PurchaseNotificationResponse { + r#type, + guild_product_purchase: None, + } + } +} + diff --git a/src/models/quarantine_user_action.rs b/src/models/quarantine_user_action.rs new file mode 100644 index 0000000..20e23d2 --- /dev/null +++ b/src/models/quarantine_user_action.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct QuarantineUserAction { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option, +} + +impl QuarantineUserAction { + pub fn new(r#type: i32) -> QuarantineUserAction { + QuarantineUserAction { + r#type, + metadata: None, + } + } +} + diff --git a/src/models/quarantine_user_action_response.rs b/src/models/quarantine_user_action_response.rs new file mode 100644 index 0000000..c6b2d30 --- /dev/null +++ b/src/models/quarantine_user_action_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct QuarantineUserActionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: serde_json::Value, +} + +impl QuarantineUserActionResponse { + pub fn new(r#type: i32, metadata: serde_json::Value) -> QuarantineUserActionResponse { + QuarantineUserActionResponse { + r#type, + metadata, + } + } +} + diff --git a/src/models/resolved_objects_response.rs b/src/models/resolved_objects_response.rs new file mode 100644 index 0000000..e2a09b6 --- /dev/null +++ b/src/models/resolved_objects_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ResolvedObjectsResponse { + #[serde(rename = "users")] + pub users: std::collections::HashMap, + #[serde(rename = "members")] + pub members: std::collections::HashMap, + #[serde(rename = "channels")] + pub channels: std::collections::HashMap, + #[serde(rename = "roles")] + pub roles: std::collections::HashMap, +} + +impl ResolvedObjectsResponse { + pub fn new(users: std::collections::HashMap, members: std::collections::HashMap, channels: std::collections::HashMap, roles: std::collections::HashMap) -> ResolvedObjectsResponse { + ResolvedObjectsResponse { + users, + members, + channels, + roles, + } + } +} + diff --git a/src/models/resource_channel_response.rs b/src/models/resource_channel_response.rs new file mode 100644 index 0000000..2dc2752 --- /dev/null +++ b/src/models/resource_channel_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ResourceChannelResponse { + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "description")] + pub description: String, +} + +impl ResourceChannelResponse { + pub fn new(channel_id: String, title: String, description: String) -> ResourceChannelResponse { + ResourceChannelResponse { + channel_id, + title, + emoji: None, + icon: None, + description, + } + } +} + diff --git a/src/models/rich_embed.rs b/src/models/rich_embed.rs new file mode 100644 index 0000000..48f2d9e --- /dev/null +++ b/src/models/rich_embed.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbed { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub color: Option>, + #[serde(rename = "timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub timestamp: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "author", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub author: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>>, + #[serde(rename = "thumbnail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thumbnail: Option>>, + #[serde(rename = "footer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub footer: Option>>, + #[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fields: Option>>, + #[serde(rename = "provider", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub provider: Option>>, + #[serde(rename = "video", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub video: Option>>, +} + +impl RichEmbed { + pub fn new() -> RichEmbed { + RichEmbed { + r#type: None, + url: None, + title: None, + color: None, + timestamp: None, + description: None, + author: None, + image: None, + thumbnail: None, + footer: None, + fields: None, + provider: None, + video: None, + } + } +} + diff --git a/src/models/rich_embed_author.rs b/src/models/rich_embed_author.rs new file mode 100644 index 0000000..e489990 --- /dev/null +++ b/src/models/rich_embed_author.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedAuthor { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon_url: Option>, +} + +impl RichEmbedAuthor { + pub fn new() -> RichEmbedAuthor { + RichEmbedAuthor { + name: None, + url: None, + icon_url: None, + } + } +} + diff --git a/src/models/rich_embed_field.rs b/src/models/rich_embed_field.rs new file mode 100644 index 0000000..7218836 --- /dev/null +++ b/src/models/rich_embed_field.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedField { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "value")] + pub value: String, + #[serde(rename = "inline", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub inline: Option>, +} + +impl RichEmbedField { + pub fn new(name: String, value: String) -> RichEmbedField { + RichEmbedField { + name, + value, + inline: None, + } + } +} + diff --git a/src/models/rich_embed_footer.rs b/src/models/rich_embed_footer.rs new file mode 100644 index 0000000..f476ca9 --- /dev/null +++ b/src/models/rich_embed_footer.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedFooter { + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon_url: Option>, +} + +impl RichEmbedFooter { + pub fn new() -> RichEmbedFooter { + RichEmbedFooter { + text: None, + icon_url: None, + } + } +} + diff --git a/src/models/rich_embed_image.rs b/src/models/rich_embed_image.rs new file mode 100644 index 0000000..34b447e --- /dev/null +++ b/src/models/rich_embed_image.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedImage { + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "placeholder_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder_version: Option>, + #[serde(rename = "is_animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_animated: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl RichEmbedImage { + pub fn new() -> RichEmbedImage { + RichEmbedImage { + url: None, + width: None, + height: None, + placeholder: None, + placeholder_version: None, + is_animated: None, + description: None, + } + } +} + diff --git a/src/models/rich_embed_provider.rs b/src/models/rich_embed_provider.rs new file mode 100644 index 0000000..03f9374 --- /dev/null +++ b/src/models/rich_embed_provider.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedProvider { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, +} + +impl RichEmbedProvider { + pub fn new() -> RichEmbedProvider { + RichEmbedProvider { + name: None, + url: None, + } + } +} + diff --git a/src/models/rich_embed_thumbnail.rs b/src/models/rich_embed_thumbnail.rs new file mode 100644 index 0000000..8458dfb --- /dev/null +++ b/src/models/rich_embed_thumbnail.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedThumbnail { + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "placeholder_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder_version: Option>, + #[serde(rename = "is_animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_animated: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl RichEmbedThumbnail { + pub fn new() -> RichEmbedThumbnail { + RichEmbedThumbnail { + url: None, + width: None, + height: None, + placeholder: None, + placeholder_version: None, + is_animated: None, + description: None, + } + } +} + diff --git a/src/models/rich_embed_video.rs b/src/models/rich_embed_video.rs new file mode 100644 index 0000000..67afb46 --- /dev/null +++ b/src/models/rich_embed_video.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RichEmbedVideo { + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "placeholder_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder_version: Option>, + #[serde(rename = "is_animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_animated: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl RichEmbedVideo { + pub fn new() -> RichEmbedVideo { + RichEmbedVideo { + url: None, + width: None, + height: None, + placeholder: None, + placeholder_version: None, + is_animated: None, + description: None, + } + } +} + diff --git a/src/models/role_select_component_for_message_request.rs b/src/models/role_select_component_for_message_request.rs new file mode 100644 index 0000000..3846280 --- /dev/null +++ b/src/models/role_select_component_for_message_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RoleSelectComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl RoleSelectComponentForMessageRequest { + pub fn new(r#type: i32, custom_id: String) -> RoleSelectComponentForMessageRequest { + RoleSelectComponentForMessageRequest { + r#type, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/role_select_component_response.rs b/src/models/role_select_component_response.rs new file mode 100644 index 0000000..21f281a --- /dev/null +++ b/src/models/role_select_component_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RoleSelectComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl RoleSelectComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String) -> RoleSelectComponentResponse { + RoleSelectComponentResponse { + r#type, + id, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/role_select_default_value.rs b/src/models/role_select_default_value.rs new file mode 100644 index 0000000..3e4cb04 --- /dev/null +++ b/src/models/role_select_default_value.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RoleSelectDefaultValue { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl RoleSelectDefaultValue { + pub fn new(r#type: Option, id: String) -> RoleSelectDefaultValue { + RoleSelectDefaultValue { + r#type, + id, + } + } +} + diff --git a/src/models/role_select_default_value_response.rs b/src/models/role_select_default_value_response.rs new file mode 100644 index 0000000..650f840 --- /dev/null +++ b/src/models/role_select_default_value_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RoleSelectDefaultValueResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl RoleSelectDefaultValueResponse { + pub fn new(r#type: Option, id: String) -> RoleSelectDefaultValueResponse { + RoleSelectDefaultValueResponse { + r#type, + id, + } + } +} + diff --git a/src/models/scheduled_event_response.rs b/src/models/scheduled_event_response.rs new file mode 100644 index 0000000..f1475f9 --- /dev/null +++ b/src/models/scheduled_event_response.rs @@ -0,0 +1,105 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ScheduledEventResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "creator_id", skip_serializing_if = "Option::is_none")] + pub creator_id: Option, + #[serde(rename = "creator", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub creator: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "entity_id", skip_serializing_if = "Option::is_none")] + pub entity_id: Option, + #[serde(rename = "user_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_count: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "user_rsvp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_rsvp: Option>>, +} + +impl ScheduledEventResponse { + pub fn new(id: String, guild_id: String, name: String, scheduled_start_time: String, status: Option, entity_type: Option, privacy_level: Option) -> ScheduledEventResponse { + ScheduledEventResponse { + id, + guild_id, + name, + description: None, + channel_id: None, + creator_id: None, + creator: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + status, + entity_type, + entity_id: None, + user_count: None, + privacy_level, + user_rsvp: None, + } + } +} + diff --git a/src/models/scheduled_event_user_response.rs b/src/models/scheduled_event_user_response.rs new file mode 100644 index 0000000..9052d1b --- /dev/null +++ b/src/models/scheduled_event_user_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ScheduledEventUserResponse { + #[serde(rename = "guild_scheduled_event_id")] + pub guild_scheduled_event_id: String, + #[serde(rename = "user_id")] + pub user_id: String, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, +} + +impl ScheduledEventUserResponse { + pub fn new(guild_scheduled_event_id: String, user_id: String) -> ScheduledEventUserResponse { + ScheduledEventUserResponse { + guild_scheduled_event_id, + user_id, + user: None, + member: None, + } + } +} + diff --git a/src/models/sdk_message_request.rs b/src/models/sdk_message_request.rs new file mode 100644 index 0000000..6076675 --- /dev/null +++ b/src/models/sdk_message_request.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SdkMessageRequest { + #[serde(rename = "content", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content: Option>, + #[serde(rename = "embeds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub embeds: Option>>, + #[serde(rename = "allowed_mentions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_mentions: Option>>, + #[serde(rename = "sticker_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sticker_ids: Option>>, + #[serde(rename = "components", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub components: Option>>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, + #[serde(rename = "poll", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub poll: Option>>, + #[serde(rename = "confetti_potion", skip_serializing_if = "Option::is_none")] + pub confetti_potion: Option, + #[serde(rename = "message_reference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_reference: Option>>, + #[serde(rename = "nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nonce: Option>>, + #[serde(rename = "enforce_nonce", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enforce_nonce: Option>, + #[serde(rename = "tts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tts: Option>, +} + +impl SdkMessageRequest { + pub fn new() -> SdkMessageRequest { + SdkMessageRequest { + content: None, + embeds: None, + allowed_mentions: None, + sticker_ids: None, + components: None, + flags: None, + attachments: None, + poll: None, + confetti_potion: None, + message_reference: None, + nonce: None, + enforce_nonce: None, + tts: None, + } + } +} + diff --git a/src/models/section_component_for_message_request.rs b/src/models/section_component_for_message_request.rs new file mode 100644 index 0000000..9597a3f --- /dev/null +++ b/src/models/section_component_for_message_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SectionComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "accessory")] + pub accessory: Box, +} + +impl SectionComponentForMessageRequest { + pub fn new(r#type: i32, components: Vec, accessory: models::SectionComponentForMessageRequestAccessory) -> SectionComponentForMessageRequest { + SectionComponentForMessageRequest { + r#type, + components, + accessory: Box::new(accessory), + } + } +} + diff --git a/src/models/section_component_for_message_request_accessory.rs b/src/models/section_component_for_message_request_accessory.rs new file mode 100644 index 0000000..9667281 --- /dev/null +++ b/src/models/section_component_for_message_request_accessory.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SectionComponentForMessageRequestAccessory { + ButtonComponentForMessageRequest(Box), + ThumbnailComponentForMessageRequest(Box), +} + +impl Default for SectionComponentForMessageRequestAccessory { + fn default() -> Self { + Self::ButtonComponentForMessageRequest(Default::default()) + } +} + diff --git a/src/models/section_component_response.rs b/src/models/section_component_response.rs new file mode 100644 index 0000000..7f65ece --- /dev/null +++ b/src/models/section_component_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SectionComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "components")] + pub components: Vec, + #[serde(rename = "accessory")] + pub accessory: Box, +} + +impl SectionComponentResponse { + pub fn new(r#type: i32, id: i32, components: Vec, accessory: models::SectionComponentResponseAccessory) -> SectionComponentResponse { + SectionComponentResponse { + r#type, + id, + components, + accessory: Box::new(accessory), + } + } +} + diff --git a/src/models/section_component_response_accessory.rs b/src/models/section_component_response_accessory.rs new file mode 100644 index 0000000..726a206 --- /dev/null +++ b/src/models/section_component_response_accessory.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SectionComponentResponseAccessory { + ButtonComponentResponse(Box), + ThumbnailComponentResponse(Box), +} + +impl Default for SectionComponentResponseAccessory { + fn default() -> Self { + Self::ButtonComponentResponse(Default::default()) + } +} + diff --git a/src/models/separator_component_for_message_request.rs b/src/models/separator_component_for_message_request.rs new file mode 100644 index 0000000..875936c --- /dev/null +++ b/src/models/separator_component_for_message_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SeparatorComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "spacing", skip_serializing_if = "Option::is_none")] + pub spacing: Option, + #[serde(rename = "divider", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub divider: Option>, +} + +impl SeparatorComponentForMessageRequest { + pub fn new(r#type: i32) -> SeparatorComponentForMessageRequest { + SeparatorComponentForMessageRequest { + r#type, + spacing: None, + divider: None, + } + } +} + diff --git a/src/models/separator_component_response.rs b/src/models/separator_component_response.rs new file mode 100644 index 0000000..b75a92b --- /dev/null +++ b/src/models/separator_component_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SeparatorComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "spacing")] + pub spacing: i32, + #[serde(rename = "divider")] + pub divider: bool, +} + +impl SeparatorComponentResponse { + pub fn new(r#type: i32, id: i32, spacing: i32, divider: bool) -> SeparatorComponentResponse { + SeparatorComponentResponse { + r#type, + id, + spacing, + divider, + } + } +} + diff --git a/src/models/set_channel_permission_overwrite_request.rs b/src/models/set_channel_permission_overwrite_request.rs new file mode 100644 index 0000000..40c081a --- /dev/null +++ b/src/models/set_channel_permission_overwrite_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetChannelPermissionOverwriteRequest { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "allow", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allow: Option>, + #[serde(rename = "deny", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deny: Option>, +} + +impl SetChannelPermissionOverwriteRequest { + pub fn new() -> SetChannelPermissionOverwriteRequest { + SetChannelPermissionOverwriteRequest { + r#type: None, + allow: None, + deny: None, + } + } +} + diff --git a/src/models/set_guild_application_command_permissions_request.rs b/src/models/set_guild_application_command_permissions_request.rs new file mode 100644 index 0000000..f9e103c --- /dev/null +++ b/src/models/set_guild_application_command_permissions_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetGuildApplicationCommandPermissionsRequest { + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>>, +} + +impl SetGuildApplicationCommandPermissionsRequest { + pub fn new() -> SetGuildApplicationCommandPermissionsRequest { + SetGuildApplicationCommandPermissionsRequest { + permissions: None, + } + } +} + diff --git a/src/models/set_guild_mfa_level_request.rs b/src/models/set_guild_mfa_level_request.rs new file mode 100644 index 0000000..0a74bf4 --- /dev/null +++ b/src/models/set_guild_mfa_level_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetGuildMfaLevelRequest { + #[serde(rename = "level")] + pub level: i32, +} + +impl SetGuildMfaLevelRequest { + pub fn new(level: i32) -> SetGuildMfaLevelRequest { + SetGuildMfaLevelRequest { + level, + } + } +} + diff --git a/src/models/settings_emoji_response.rs b/src/models/settings_emoji_response.rs new file mode 100644 index 0000000..4b2f2b3 --- /dev/null +++ b/src/models/settings_emoji_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SettingsEmojiResponse { + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "animated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub animated: Option>, +} + +impl SettingsEmojiResponse { + pub fn new() -> SettingsEmojiResponse { + SettingsEmojiResponse { + id: None, + name: None, + animated: None, + } + } +} + diff --git a/src/models/slack_webhook.rs b/src/models/slack_webhook.rs new file mode 100644 index 0000000..4416047 --- /dev/null +++ b/src/models/slack_webhook.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SlackWebhook { + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon_url: Option>, + #[serde(rename = "attachments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attachments: Option>>, +} + +impl SlackWebhook { + pub fn new() -> SlackWebhook { + SlackWebhook { + text: None, + username: None, + icon_url: None, + attachments: None, + } + } +} + diff --git a/src/models/soundboard_create_request.rs b/src/models/soundboard_create_request.rs new file mode 100644 index 0000000..860e2c6 --- /dev/null +++ b/src/models/soundboard_create_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SoundboardCreateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "volume", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub volume: Option>, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "sound")] + pub sound: String, +} + +impl SoundboardCreateRequest { + pub fn new(name: String, sound: String) -> SoundboardCreateRequest { + SoundboardCreateRequest { + name, + volume: None, + emoji_id: None, + emoji_name: None, + sound, + } + } +} + diff --git a/src/models/soundboard_patch_request_partial.rs b/src/models/soundboard_patch_request_partial.rs new file mode 100644 index 0000000..10de018 --- /dev/null +++ b/src/models/soundboard_patch_request_partial.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SoundboardPatchRequestPartial { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "volume", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub volume: Option>, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl SoundboardPatchRequestPartial { + pub fn new() -> SoundboardPatchRequestPartial { + SoundboardPatchRequestPartial { + name: None, + volume: None, + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/soundboard_sound_response.rs b/src/models/soundboard_sound_response.rs new file mode 100644 index 0000000..eed59fa --- /dev/null +++ b/src/models/soundboard_sound_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SoundboardSoundResponse { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "sound_id")] + pub sound_id: String, + #[serde(rename = "volume")] + pub volume: f64, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "available")] + pub available: bool, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, +} + +impl SoundboardSoundResponse { + pub fn new(name: String, sound_id: String, volume: f64, available: bool) -> SoundboardSoundResponse { + SoundboardSoundResponse { + name, + sound_id, + volume, + emoji_id: None, + emoji_name: None, + guild_id: None, + available, + user: None, + } + } +} + diff --git a/src/models/soundboard_sound_send_request.rs b/src/models/soundboard_sound_send_request.rs new file mode 100644 index 0000000..5f2af5e --- /dev/null +++ b/src/models/soundboard_sound_send_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SoundboardSoundSendRequest { + #[serde(rename = "sound_id")] + pub sound_id: String, + #[serde(rename = "source_guild_id", skip_serializing_if = "Option::is_none")] + pub source_guild_id: Option, +} + +impl SoundboardSoundSendRequest { + pub fn new(sound_id: String) -> SoundboardSoundSendRequest { + SoundboardSoundSendRequest { + sound_id, + source_guild_id: None, + } + } +} + diff --git a/src/models/spam_link_rule_response.rs b/src/models/spam_link_rule_response.rs new file mode 100644 index 0000000..a2708ed --- /dev/null +++ b/src/models/spam_link_rule_response.rs @@ -0,0 +1,90 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SpamLinkRuleResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "creator_id")] + pub creator_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "event_type")] + pub event_type: i32, + #[serde(rename = "actions")] + pub actions: Vec, + #[serde(rename = "trigger_type")] + pub trigger_type: i32, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "exempt_roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>>, + #[serde(rename = "exempt_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>>, + #[serde(rename = "trigger_metadata")] + pub trigger_metadata: serde_json::Value, +} + +impl SpamLinkRuleResponse { + pub fn new(id: String, guild_id: String, creator_id: String, name: String, event_type: i32, actions: Vec, trigger_type: i32, trigger_metadata: serde_json::Value) -> SpamLinkRuleResponse { + SpamLinkRuleResponse { + id, + guild_id, + creator_id, + name, + event_type, + actions, + trigger_type, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_metadata, + } + } +} + diff --git a/src/models/stage_instance_response.rs b/src/models/stage_instance_response.rs new file mode 100644 index 0000000..728b9a0 --- /dev/null +++ b/src/models/stage_instance_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StageInstanceResponse { + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "channel_id")] + pub channel_id: String, + #[serde(rename = "topic")] + pub topic: String, + #[serde(rename = "privacy_level")] + pub privacy_level: i32, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "discoverable_disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub discoverable_disabled: Option>, + #[serde(rename = "guild_scheduled_event_id", skip_serializing_if = "Option::is_none")] + pub guild_scheduled_event_id: Option, +} + +impl StageInstanceResponse { + pub fn new(guild_id: String, channel_id: String, topic: String, privacy_level: i32, id: String) -> StageInstanceResponse { + StageInstanceResponse { + guild_id, + channel_id, + topic, + privacy_level, + id, + discoverable_disabled: None, + guild_scheduled_event_id: None, + } + } +} + diff --git a/src/models/stage_scheduled_event_create_request.rs b/src/models/stage_scheduled_event_create_request.rs new file mode 100644 index 0000000..97cf2b0 --- /dev/null +++ b/src/models/stage_scheduled_event_create_request.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StageScheduledEventCreateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl StageScheduledEventCreateRequest { + pub fn new(name: String, scheduled_start_time: String, privacy_level: Option, entity_type: Option) -> StageScheduledEventCreateRequest { + StageScheduledEventCreateRequest { + name, + description: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + privacy_level, + entity_type, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/stage_scheduled_event_patch_request_partial.rs b/src/models/stage_scheduled_event_patch_request_partial.rs new file mode 100644 index 0000000..6d82278 --- /dev/null +++ b/src/models/stage_scheduled_event_patch_request_partial.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StageScheduledEventPatchRequestPartial { + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time", skip_serializing_if = "Option::is_none")] + pub scheduled_start_time: Option, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "entity_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub entity_type: Option>, + #[serde(rename = "privacy_level", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl StageScheduledEventPatchRequestPartial { + pub fn new() -> StageScheduledEventPatchRequestPartial { + StageScheduledEventPatchRequestPartial { + status: None, + name: None, + description: None, + image: None, + scheduled_start_time: None, + scheduled_end_time: None, + entity_type: None, + privacy_level: None, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/stage_scheduled_event_response.rs b/src/models/stage_scheduled_event_response.rs new file mode 100644 index 0000000..ade9168 --- /dev/null +++ b/src/models/stage_scheduled_event_response.rs @@ -0,0 +1,108 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StageScheduledEventResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "creator_id", skip_serializing_if = "Option::is_none")] + pub creator_id: Option, + #[serde(rename = "creator", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub creator: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "entity_id", skip_serializing_if = "Option::is_none")] + pub entity_id: Option, + #[serde(rename = "user_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_count: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "user_rsvp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_rsvp: Option>>, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl StageScheduledEventResponse { + pub fn new(id: String, guild_id: String, name: String, scheduled_start_time: String, status: Option, entity_type: Option, privacy_level: Option) -> StageScheduledEventResponse { + StageScheduledEventResponse { + id, + guild_id, + name, + description: None, + channel_id: None, + creator_id: None, + creator: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + status, + entity_type, + entity_id: None, + user_count: None, + privacy_level, + user_rsvp: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/standard_sticker_response.rs b/src/models/standard_sticker_response.rs new file mode 100644 index 0000000..2cc13a6 --- /dev/null +++ b/src/models/standard_sticker_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StandardStickerResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "tags")] + pub tags: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "format_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub format_type: Option>, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "pack_id")] + pub pack_id: String, + #[serde(rename = "sort_value")] + pub sort_value: i32, +} + +impl StandardStickerResponse { + pub fn new(id: String, name: String, tags: String, r#type: i32, pack_id: String, sort_value: i32) -> StandardStickerResponse { + StandardStickerResponse { + id, + name, + tags, + r#type, + format_type: None, + description: None, + pack_id, + sort_value, + } + } +} + diff --git a/src/models/sticker_pack_collection_response.rs b/src/models/sticker_pack_collection_response.rs new file mode 100644 index 0000000..bed632f --- /dev/null +++ b/src/models/sticker_pack_collection_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StickerPackCollectionResponse { + #[serde(rename = "sticker_packs")] + pub sticker_packs: Vec, +} + +impl StickerPackCollectionResponse { + pub fn new(sticker_packs: Vec) -> StickerPackCollectionResponse { + StickerPackCollectionResponse { + sticker_packs, + } + } +} + diff --git a/src/models/sticker_pack_response.rs b/src/models/sticker_pack_response.rs new file mode 100644 index 0000000..fe0a6b7 --- /dev/null +++ b/src/models/sticker_pack_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StickerPackResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "sku_id")] + pub sku_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "stickers")] + pub stickers: Vec, + #[serde(rename = "cover_sticker_id", skip_serializing_if = "Option::is_none")] + pub cover_sticker_id: Option, + #[serde(rename = "banner_asset_id", skip_serializing_if = "Option::is_none")] + pub banner_asset_id: Option, +} + +impl StickerPackResponse { + pub fn new(id: String, sku_id: String, name: String, stickers: Vec) -> StickerPackResponse { + StickerPackResponse { + id, + sku_id, + name, + description: None, + stickers, + cover_sticker_id: None, + banner_asset_id: None, + } + } +} + diff --git a/src/models/string_select_component_for_message_request.rs b/src/models/string_select_component_for_message_request.rs new file mode 100644 index 0000000..ebeebd0 --- /dev/null +++ b/src/models/string_select_component_for_message_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StringSelectComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "options")] + pub options: Vec, +} + +impl StringSelectComponentForMessageRequest { + pub fn new(r#type: i32, custom_id: String, options: Vec) -> StringSelectComponentForMessageRequest { + StringSelectComponentForMessageRequest { + r#type, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + options, + } + } +} + diff --git a/src/models/string_select_component_response.rs b/src/models/string_select_component_response.rs new file mode 100644 index 0000000..976c31d --- /dev/null +++ b/src/models/string_select_component_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StringSelectComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "options")] + pub options: Vec, +} + +impl StringSelectComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String, options: Vec) -> StringSelectComponentResponse { + StringSelectComponentResponse { + r#type, + id, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + options, + } + } +} + diff --git a/src/models/string_select_option_for_message_request.rs b/src/models/string_select_option_for_message_request.rs new file mode 100644 index 0000000..778c595 --- /dev/null +++ b/src/models/string_select_option_for_message_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StringSelectOptionForMessageRequest { + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "value")] + pub value: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "default", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, +} + +impl StringSelectOptionForMessageRequest { + pub fn new(label: String, value: String) -> StringSelectOptionForMessageRequest { + StringSelectOptionForMessageRequest { + label, + value, + description: None, + default: None, + emoji: None, + } + } +} + diff --git a/src/models/string_select_option_response.rs b/src/models/string_select_option_response.rs new file mode 100644 index 0000000..e826916 --- /dev/null +++ b/src/models/string_select_option_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct StringSelectOptionResponse { + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "value")] + pub value: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji: Option>>, + #[serde(rename = "default", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default: Option>, +} + +impl StringSelectOptionResponse { + pub fn new(label: String, value: String) -> StringSelectOptionResponse { + StringSelectOptionResponse { + label, + value, + description: None, + emoji: None, + default: None, + } + } +} + diff --git a/src/models/team_member_response.rs b/src/models/team_member_response.rs new file mode 100644 index 0000000..34c3f91 --- /dev/null +++ b/src/models/team_member_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamMemberResponse { + #[serde(rename = "user")] + pub user: Box, + #[serde(rename = "team_id")] + pub team_id: String, + #[serde(rename = "membership_state")] + pub membership_state: i32, +} + +impl TeamMemberResponse { + pub fn new(user: models::UserResponse, team_id: String, membership_state: i32) -> TeamMemberResponse { + TeamMemberResponse { + user: Box::new(user), + team_id, + membership_state, + } + } +} + diff --git a/src/models/team_response.rs b/src/models/team_response.rs new file mode 100644 index 0000000..3d93a6f --- /dev/null +++ b/src/models/team_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "owner_user_id")] + pub owner_user_id: String, + #[serde(rename = "members")] + pub members: Vec, +} + +impl TeamResponse { + pub fn new(id: String, name: String, owner_user_id: String, members: Vec) -> TeamResponse { + TeamResponse { + id, + icon: None, + name, + owner_user_id, + members, + } + } +} + diff --git a/src/models/text_display_component_for_message_request.rs b/src/models/text_display_component_for_message_request.rs new file mode 100644 index 0000000..e79f7c5 --- /dev/null +++ b/src/models/text_display_component_for_message_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TextDisplayComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "content")] + pub content: String, +} + +impl TextDisplayComponentForMessageRequest { + pub fn new(r#type: i32, content: String) -> TextDisplayComponentForMessageRequest { + TextDisplayComponentForMessageRequest { + r#type, + content, + } + } +} + diff --git a/src/models/text_display_component_response.rs b/src/models/text_display_component_response.rs new file mode 100644 index 0000000..ae8e76d --- /dev/null +++ b/src/models/text_display_component_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TextDisplayComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "content")] + pub content: String, +} + +impl TextDisplayComponentResponse { + pub fn new(r#type: i32, id: i32, content: String) -> TextDisplayComponentResponse { + TextDisplayComponentResponse { + r#type, + id, + content, + } + } +} + diff --git a/src/models/text_input_component_for_modal_request.rs b/src/models/text_input_component_for_modal_request.rs new file mode 100644 index 0000000..5fc0e3e --- /dev/null +++ b/src/models/text_input_component_for_modal_request.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TextInputComponentForModalRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "style")] + pub style: i32, + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub value: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "min_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_length: Option>, + #[serde(rename = "max_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_length: Option>, +} + +impl TextInputComponentForModalRequest { + pub fn new(r#type: i32, custom_id: String, style: i32, label: String) -> TextInputComponentForModalRequest { + TextInputComponentForModalRequest { + r#type, + custom_id, + style, + label, + value: None, + placeholder: None, + required: None, + min_length: None, + max_length: None, + } + } +} + diff --git a/src/models/text_input_component_response.rs b/src/models/text_input_component_response.rs new file mode 100644 index 0000000..e8a2b92 --- /dev/null +++ b/src/models/text_input_component_response.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TextInputComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "style")] + pub style: i32, + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub value: Option>, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "min_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_length: Option>, + #[serde(rename = "max_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_length: Option>, +} + +impl TextInputComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String, style: i32) -> TextInputComponentResponse { + TextInputComponentResponse { + r#type, + id, + custom_id, + style, + label: None, + value: None, + placeholder: None, + required: None, + min_length: None, + max_length: None, + } + } +} + diff --git a/src/models/thread_member_response.rs b/src/models/thread_member_response.rs new file mode 100644 index 0000000..b6cf607 --- /dev/null +++ b/src/models/thread_member_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThreadMemberResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "user_id")] + pub user_id: String, + #[serde(rename = "join_timestamp")] + pub join_timestamp: String, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, +} + +impl ThreadMemberResponse { + pub fn new(id: String, user_id: String, join_timestamp: String, flags: i32) -> ThreadMemberResponse { + ThreadMemberResponse { + id, + user_id, + join_timestamp, + flags, + member: None, + } + } +} + diff --git a/src/models/thread_metadata_response.rs b/src/models/thread_metadata_response.rs new file mode 100644 index 0000000..1d773d8 --- /dev/null +++ b/src/models/thread_metadata_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThreadMetadataResponse { + #[serde(rename = "archived")] + pub archived: bool, + #[serde(rename = "archive_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub archive_timestamp: Option>, + #[serde(rename = "auto_archive_duration")] + pub auto_archive_duration: i32, + #[serde(rename = "locked")] + pub locked: bool, + #[serde(rename = "create_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub create_timestamp: Option>, + #[serde(rename = "invitable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub invitable: Option>, +} + +impl ThreadMetadataResponse { + pub fn new(archived: bool, auto_archive_duration: i32, locked: bool) -> ThreadMetadataResponse { + ThreadMetadataResponse { + archived, + archive_timestamp: None, + auto_archive_duration, + locked, + create_timestamp: None, + invitable: None, + } + } +} + diff --git a/src/models/thread_response.rs b/src/models/thread_response.rs new file mode 100644 index 0000000..a0e5248 --- /dev/null +++ b/src/models/thread_response.rs @@ -0,0 +1,120 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThreadResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "last_message_id", skip_serializing_if = "Option::is_none")] + pub last_message_id: Option, + #[serde(rename = "flags")] + pub flags: i32, + #[serde(rename = "last_pin_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_pin_timestamp: Option>, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>, + #[serde(rename = "owner_id")] + pub owner_id: String, + #[serde(rename = "thread_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thread_metadata: Option>>, + #[serde(rename = "message_count")] + pub message_count: i32, + #[serde(rename = "member_count")] + pub member_count: i32, + #[serde(rename = "total_message_sent")] + pub total_message_sent: i32, + #[serde(rename = "applied_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>>, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, +} + +impl ThreadResponse { + pub fn new(id: String, r#type: i32, flags: i32, guild_id: String, name: String, owner_id: String, message_count: i32, member_count: i32, total_message_sent: i32) -> ThreadResponse { + ThreadResponse { + id, + r#type, + last_message_id: None, + flags, + last_pin_timestamp: None, + guild_id, + name, + parent_id: None, + rate_limit_per_user: None, + bitrate: None, + user_limit: None, + rtc_region: None, + video_quality_mode: None, + permissions: None, + owner_id, + thread_metadata: None, + message_count, + member_count, + total_message_sent, + applied_tags: None, + member: None, + } + } +} + diff --git a/src/models/thread_search_response.rs b/src/models/thread_search_response.rs new file mode 100644 index 0000000..ce18aaf --- /dev/null +++ b/src/models/thread_search_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThreadSearchResponse { + #[serde(rename = "threads")] + pub threads: Vec, + #[serde(rename = "members")] + pub members: Vec, + #[serde(rename = "has_more", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub has_more: Option>, + #[serde(rename = "first_messages", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub first_messages: Option>>, + #[serde(rename = "total_results", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub total_results: Option>, +} + +impl ThreadSearchResponse { + pub fn new(threads: Vec, members: Vec) -> ThreadSearchResponse { + ThreadSearchResponse { + threads, + members, + has_more: None, + first_messages: None, + total_results: None, + } + } +} + diff --git a/src/models/thread_search_tag_parameter.rs b/src/models/thread_search_tag_parameter.rs new file mode 100644 index 0000000..80f1ca3 --- /dev/null +++ b/src/models/thread_search_tag_parameter.rs @@ -0,0 +1,59 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ThreadSearchTagParameter { + String(String), + Array(Vec), +} + +impl Default for ThreadSearchTagParameter { + fn default() -> Self { + Self::String(Default::default()) + } +} + diff --git a/src/models/threads_response.rs b/src/models/threads_response.rs new file mode 100644 index 0000000..68e4e46 --- /dev/null +++ b/src/models/threads_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThreadsResponse { + #[serde(rename = "threads")] + pub threads: Vec, + #[serde(rename = "members")] + pub members: Vec, + #[serde(rename = "has_more", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub has_more: Option>, + #[serde(rename = "first_messages", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub first_messages: Option>>, +} + +impl ThreadsResponse { + pub fn new(threads: Vec, members: Vec) -> ThreadsResponse { + ThreadsResponse { + threads, + members, + has_more: None, + first_messages: None, + } + } +} + diff --git a/src/models/thumbnail_component_for_message_request.rs b/src/models/thumbnail_component_for_message_request.rs new file mode 100644 index 0000000..5621661 --- /dev/null +++ b/src/models/thumbnail_component_for_message_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThumbnailComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "spoiler", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub spoiler: Option>, + #[serde(rename = "media")] + pub media: Box, +} + +impl ThumbnailComponentForMessageRequest { + pub fn new(r#type: i32, media: models::UnfurledMediaRequest) -> ThumbnailComponentForMessageRequest { + ThumbnailComponentForMessageRequest { + r#type, + description: None, + spoiler: None, + media: Box::new(media), + } + } +} + diff --git a/src/models/thumbnail_component_response.rs b/src/models/thumbnail_component_response.rs new file mode 100644 index 0000000..f069c39 --- /dev/null +++ b/src/models/thumbnail_component_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ThumbnailComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "media")] + pub media: Box, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "spoiler")] + pub spoiler: bool, +} + +impl ThumbnailComponentResponse { + pub fn new(r#type: i32, id: i32, media: models::UnfurledMediaResponse, spoiler: bool) -> ThumbnailComponentResponse { + ThumbnailComponentResponse { + r#type, + id, + media: Box::new(media), + description: None, + spoiler, + } + } +} + diff --git a/src/models/unfurled_media_request.rs b/src/models/unfurled_media_request.rs new file mode 100644 index 0000000..2cf1d8f --- /dev/null +++ b/src/models/unfurled_media_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UnfurledMediaRequest { + #[serde(rename = "url")] + pub url: String, +} + +impl UnfurledMediaRequest { + pub fn new(url: String) -> UnfurledMediaRequest { + UnfurledMediaRequest { + url, + } + } +} + diff --git a/src/models/unfurled_media_request_with_attachment_reference_required.rs b/src/models/unfurled_media_request_with_attachment_reference_required.rs new file mode 100644 index 0000000..cf83fdc --- /dev/null +++ b/src/models/unfurled_media_request_with_attachment_reference_required.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UnfurledMediaRequestWithAttachmentReferenceRequired { + #[serde(rename = "url")] + pub url: String, +} + +impl UnfurledMediaRequestWithAttachmentReferenceRequired { + pub fn new(url: String) -> UnfurledMediaRequestWithAttachmentReferenceRequired { + UnfurledMediaRequestWithAttachmentReferenceRequired { + url, + } + } +} + diff --git a/src/models/unfurled_media_response.rs b/src/models/unfurled_media_response.rs new file mode 100644 index 0000000..c9b6634 --- /dev/null +++ b/src/models/unfurled_media_response.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UnfurledMediaResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "proxy_url")] + pub proxy_url: String, + #[serde(rename = "width", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub width: Option>, + #[serde(rename = "height", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub height: Option>, + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + #[serde(rename = "attachment_id", skip_serializing_if = "Option::is_none")] + pub attachment_id: Option, +} + +impl UnfurledMediaResponse { + pub fn new(id: String, url: String, proxy_url: String) -> UnfurledMediaResponse { + UnfurledMediaResponse { + id, + url, + proxy_url, + width: None, + height: None, + content_type: None, + attachment_id: None, + } + } +} + diff --git a/src/models/update_application_emoji_request.rs b/src/models/update_application_emoji_request.rs new file mode 100644 index 0000000..357a1dc --- /dev/null +++ b/src/models/update_application_emoji_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateApplicationEmojiRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl UpdateApplicationEmojiRequest { + pub fn new() -> UpdateApplicationEmojiRequest { + UpdateApplicationEmojiRequest { + name: None, + } + } +} + diff --git a/src/models/update_application_user_role_connection_request.rs b/src/models/update_application_user_role_connection_request.rs new file mode 100644 index 0000000..f13c600 --- /dev/null +++ b/src/models/update_application_user_role_connection_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateApplicationUserRoleConnectionRequest { + #[serde(rename = "platform_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub platform_name: Option>, + #[serde(rename = "platform_username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub platform_username: Option>, + #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, +} + +impl UpdateApplicationUserRoleConnectionRequest { + pub fn new() -> UpdateApplicationUserRoleConnectionRequest { + UpdateApplicationUserRoleConnectionRequest { + platform_name: None, + platform_username: None, + metadata: None, + } + } +} + diff --git a/src/models/update_auto_moderation_rule_request.rs b/src/models/update_auto_moderation_rule_request.rs new file mode 100644 index 0000000..328cba7 --- /dev/null +++ b/src/models/update_auto_moderation_rule_request.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateAutoModerationRuleRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")] + pub event_type: Option, + #[serde(rename = "actions", skip_serializing_if = "Option::is_none")] + pub actions: Option>, + #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")] + pub enabled: Option, + #[serde(rename = "exempt_roles", skip_serializing_if = "Option::is_none")] + pub exempt_roles: Option>, + #[serde(rename = "exempt_channels", skip_serializing_if = "Option::is_none")] + pub exempt_channels: Option>, + #[serde(rename = "trigger_type", skip_serializing_if = "Option::is_none")] + pub trigger_type: Option, + #[serde(rename = "trigger_metadata", skip_serializing_if = "Option::is_none")] + pub trigger_metadata: Option>, +} + +impl UpdateAutoModerationRuleRequest { + pub fn new() -> UpdateAutoModerationRuleRequest { + UpdateAutoModerationRuleRequest { + name: None, + event_type: None, + actions: None, + enabled: None, + exempt_roles: None, + exempt_channels: None, + trigger_type: None, + trigger_metadata: None, + } + } +} + diff --git a/src/models/update_channel_request.rs b/src/models/update_channel_request.rs new file mode 100644 index 0000000..5360962 --- /dev/null +++ b/src/models/update_channel_request.rs @@ -0,0 +1,135 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateChannelRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "icon", skip_serializing_if = "Option::is_none")] + pub icon: Option, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + #[serde(rename = "position", skip_serializing_if = "Option::is_none")] + pub position: Option, + #[serde(rename = "topic", skip_serializing_if = "Option::is_none")] + pub topic: Option, + #[serde(rename = "bitrate", skip_serializing_if = "Option::is_none")] + pub bitrate: Option, + #[serde(rename = "user_limit", skip_serializing_if = "Option::is_none")] + pub user_limit: Option, + #[serde(rename = "nsfw", skip_serializing_if = "Option::is_none")] + pub nsfw: Option, + #[serde(rename = "rate_limit_per_user", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "permission_overwrites", skip_serializing_if = "Option::is_none")] + pub permission_overwrites: Option>, + #[serde(rename = "rtc_region", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "default_reaction_emoji", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>, + #[serde(rename = "default_thread_rate_limit_per_user", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "flags", skip_serializing_if = "Option::is_none")] + pub flags: Option, + #[serde(rename = "available_tags", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>, + #[serde(rename = "archived", skip_serializing_if = "Option::is_none")] + pub archived: Option, + #[serde(rename = "locked", skip_serializing_if = "Option::is_none")] + pub locked: Option, + #[serde(rename = "invitable", skip_serializing_if = "Option::is_none")] + pub invitable: Option, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "applied_tags", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>, +} + +impl UpdateChannelRequest { + pub fn new() -> UpdateChannelRequest { + UpdateChannelRequest { + name: None, + icon: None, + r#type: None, + position: None, + topic: None, + bitrate: None, + user_limit: None, + nsfw: None, + rate_limit_per_user: None, + parent_id: None, + permission_overwrites: None, + rtc_region: None, + video_quality_mode: None, + default_auto_archive_duration: None, + default_reaction_emoji: None, + default_thread_rate_limit_per_user: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + flags: None, + available_tags: None, + archived: None, + locked: None, + invitable: None, + auto_archive_duration: None, + applied_tags: None, + } + } +} + diff --git a/src/models/update_default_reaction_emoji_request.rs b/src/models/update_default_reaction_emoji_request.rs new file mode 100644 index 0000000..80488d3 --- /dev/null +++ b/src/models/update_default_reaction_emoji_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateDefaultReactionEmojiRequest { + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, +} + +impl UpdateDefaultReactionEmojiRequest { + pub fn new() -> UpdateDefaultReactionEmojiRequest { + UpdateDefaultReactionEmojiRequest { + emoji_id: None, + emoji_name: None, + } + } +} + diff --git a/src/models/update_dm_request_partial.rs b/src/models/update_dm_request_partial.rs new file mode 100644 index 0000000..d58daca --- /dev/null +++ b/src/models/update_dm_request_partial.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateDmRequestPartial { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, +} + +impl UpdateDmRequestPartial { + pub fn new() -> UpdateDmRequestPartial { + UpdateDmRequestPartial { + name: None, + } + } +} + diff --git a/src/models/update_group_dm_request_partial.rs b/src/models/update_group_dm_request_partial.rs new file mode 100644 index 0000000..96c5c11 --- /dev/null +++ b/src/models/update_group_dm_request_partial.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGroupDmRequestPartial { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, +} + +impl UpdateGroupDmRequestPartial { + pub fn new() -> UpdateGroupDmRequestPartial { + UpdateGroupDmRequestPartial { + name: None, + icon: None, + } + } +} + diff --git a/src/models/update_guild_channel_request_partial.rs b/src/models/update_guild_channel_request_partial.rs new file mode 100644 index 0000000..8803e75 --- /dev/null +++ b/src/models/update_guild_channel_request_partial.rs @@ -0,0 +1,117 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildChannelRequestPartial { + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + #[serde(rename = "topic", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub topic: Option>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "nsfw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nsfw: Option>, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "parent_id", skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "permission_overwrites", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permission_overwrites: Option>>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, + #[serde(rename = "default_auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub default_auto_archive_duration: Option, + #[serde(rename = "default_reaction_emoji", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_reaction_emoji: Option>>, + #[serde(rename = "default_thread_rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_thread_rate_limit_per_user: Option>, + #[serde(rename = "default_sort_order", skip_serializing_if = "Option::is_none")] + pub default_sort_order: Option, + #[serde(rename = "default_forum_layout", skip_serializing_if = "Option::is_none")] + pub default_forum_layout: Option, + #[serde(rename = "default_tag_setting", skip_serializing_if = "Option::is_none")] + pub default_tag_setting: Option, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "available_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub available_tags: Option>>, +} + +impl UpdateGuildChannelRequestPartial { + pub fn new() -> UpdateGuildChannelRequestPartial { + UpdateGuildChannelRequestPartial { + r#type: None, + name: None, + position: None, + topic: None, + bitrate: None, + user_limit: None, + nsfw: None, + rate_limit_per_user: None, + parent_id: None, + permission_overwrites: None, + rtc_region: None, + video_quality_mode: None, + default_auto_archive_duration: None, + default_reaction_emoji: None, + default_thread_rate_limit_per_user: None, + default_sort_order: None, + default_forum_layout: None, + default_tag_setting: None, + flags: None, + available_tags: None, + } + } +} + diff --git a/src/models/update_guild_emoji_request.rs b/src/models/update_guild_emoji_request.rs new file mode 100644 index 0000000..0d13689 --- /dev/null +++ b/src/models/update_guild_emoji_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildEmojiRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, +} + +impl UpdateGuildEmojiRequest { + pub fn new() -> UpdateGuildEmojiRequest { + UpdateGuildEmojiRequest { + name: None, + roles: None, + } + } +} + diff --git a/src/models/update_guild_member_request.rs b/src/models/update_guild_member_request.rs new file mode 100644 index 0000000..c8f7a41 --- /dev/null +++ b/src/models/update_guild_member_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildMemberRequest { + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, + #[serde(rename = "roles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub roles: Option>>, + #[serde(rename = "mute", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mute: Option>, + #[serde(rename = "deaf", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deaf: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "communication_disabled_until", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub communication_disabled_until: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, +} + +impl UpdateGuildMemberRequest { + pub fn new() -> UpdateGuildMemberRequest { + UpdateGuildMemberRequest { + nick: None, + roles: None, + mute: None, + deaf: None, + channel_id: None, + communication_disabled_until: None, + flags: None, + } + } +} + diff --git a/src/models/update_guild_onboarding_request.rs b/src/models/update_guild_onboarding_request.rs new file mode 100644 index 0000000..ddaa448 --- /dev/null +++ b/src/models/update_guild_onboarding_request.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildOnboardingRequest { + #[serde(rename = "prompts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub prompts: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, + #[serde(rename = "default_channel_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_channel_ids: Option>>, + #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] + pub mode: Option, +} + +impl UpdateGuildOnboardingRequest { + pub fn new() -> UpdateGuildOnboardingRequest { + UpdateGuildOnboardingRequest { + prompts: None, + enabled: None, + default_channel_ids: None, + mode: None, + } + } +} + diff --git a/src/models/update_guild_scheduled_event_request.rs b/src/models/update_guild_scheduled_event_request.rs new file mode 100644 index 0000000..3b8ee3d --- /dev/null +++ b/src/models/update_guild_scheduled_event_request.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildScheduledEventRequest { + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option, + #[serde(rename = "image", skip_serializing_if = "Option::is_none")] + pub image: Option, + #[serde(rename = "scheduled_start_time", skip_serializing_if = "Option::is_none")] + pub scheduled_start_time: Option, + #[serde(rename = "scheduled_end_time", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option, + #[serde(rename = "entity_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub entity_type: Option>, + #[serde(rename = "privacy_level", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl UpdateGuildScheduledEventRequest { + pub fn new() -> UpdateGuildScheduledEventRequest { + UpdateGuildScheduledEventRequest { + status: None, + name: None, + description: None, + image: None, + scheduled_start_time: None, + scheduled_end_time: None, + entity_type: None, + privacy_level: None, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/update_guild_sticker_request.rs b/src/models/update_guild_sticker_request.rs new file mode 100644 index 0000000..c280eee --- /dev/null +++ b/src/models/update_guild_sticker_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildStickerRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] + pub tags: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl UpdateGuildStickerRequest { + pub fn new() -> UpdateGuildStickerRequest { + UpdateGuildStickerRequest { + name: None, + tags: None, + description: None, + } + } +} + diff --git a/src/models/update_guild_template_request.rs b/src/models/update_guild_template_request.rs new file mode 100644 index 0000000..ad1eabe --- /dev/null +++ b/src/models/update_guild_template_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildTemplateRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, +} + +impl UpdateGuildTemplateRequest { + pub fn new() -> UpdateGuildTemplateRequest { + UpdateGuildTemplateRequest { + name: None, + description: None, + } + } +} + diff --git a/src/models/update_guild_widget_settings_request.rs b/src/models/update_guild_widget_settings_request.rs new file mode 100644 index 0000000..f908f8c --- /dev/null +++ b/src/models/update_guild_widget_settings_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateGuildWidgetSettingsRequest { + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, +} + +impl UpdateGuildWidgetSettingsRequest { + pub fn new() -> UpdateGuildWidgetSettingsRequest { + UpdateGuildWidgetSettingsRequest { + channel_id: None, + enabled: None, + } + } +} + diff --git a/src/models/update_message_interaction_callback_request.rs b/src/models/update_message_interaction_callback_request.rs new file mode 100644 index 0000000..30194db --- /dev/null +++ b/src/models/update_message_interaction_callback_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateMessageInteractionCallbackRequest { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub data: Option>>, +} + +impl UpdateMessageInteractionCallbackRequest { + pub fn new(r#type: Option) -> UpdateMessageInteractionCallbackRequest { + UpdateMessageInteractionCallbackRequest { + r#type, + data: None, + } + } +} + diff --git a/src/models/update_message_interaction_callback_response.rs b/src/models/update_message_interaction_callback_response.rs new file mode 100644 index 0000000..08da6c0 --- /dev/null +++ b/src/models/update_message_interaction_callback_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateMessageInteractionCallbackResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "message")] + pub message: Box, +} + +impl UpdateMessageInteractionCallbackResponse { + pub fn new(r#type: Option, message: models::MessageResponse) -> UpdateMessageInteractionCallbackResponse { + UpdateMessageInteractionCallbackResponse { + r#type, + message: Box::new(message), + } + } +} + diff --git a/src/models/update_my_guild_member_request.rs b/src/models/update_my_guild_member_request.rs new file mode 100644 index 0000000..ff3c9f6 --- /dev/null +++ b/src/models/update_my_guild_member_request.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateMyGuildMemberRequest { + #[serde(rename = "nick", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nick: Option>, +} + +impl UpdateMyGuildMemberRequest { + pub fn new() -> UpdateMyGuildMemberRequest { + UpdateMyGuildMemberRequest { + nick: None, + } + } +} + diff --git a/src/models/update_onboarding_prompt_request.rs b/src/models/update_onboarding_prompt_request.rs new file mode 100644 index 0000000..5e8a097 --- /dev/null +++ b/src/models/update_onboarding_prompt_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateOnboardingPromptRequest { + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "options")] + pub options: Vec, + #[serde(rename = "single_select", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub single_select: Option>, + #[serde(rename = "required", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub required: Option>, + #[serde(rename = "in_onboarding", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub in_onboarding: Option>, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl UpdateOnboardingPromptRequest { + pub fn new(title: String, options: Vec, id: String) -> UpdateOnboardingPromptRequest { + UpdateOnboardingPromptRequest { + title, + options, + single_select: None, + required: None, + in_onboarding: None, + r#type: None, + id, + } + } +} + diff --git a/src/models/update_self_voice_state_request.rs b/src/models/update_self_voice_state_request.rs new file mode 100644 index 0000000..9968fa7 --- /dev/null +++ b/src/models/update_self_voice_state_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateSelfVoiceStateRequest { + #[serde(rename = "request_to_speak_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_to_speak_timestamp: Option>, + #[serde(rename = "suppress", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub suppress: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl UpdateSelfVoiceStateRequest { + pub fn new() -> UpdateSelfVoiceStateRequest { + UpdateSelfVoiceStateRequest { + request_to_speak_timestamp: None, + suppress: None, + channel_id: None, + } + } +} + diff --git a/src/models/update_stage_instance_request.rs b/src/models/update_stage_instance_request.rs new file mode 100644 index 0000000..d86a4d7 --- /dev/null +++ b/src/models/update_stage_instance_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateStageInstanceRequest { + #[serde(rename = "topic", skip_serializing_if = "Option::is_none")] + pub topic: Option, + #[serde(rename = "privacy_level", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option, +} + +impl UpdateStageInstanceRequest { + pub fn new() -> UpdateStageInstanceRequest { + UpdateStageInstanceRequest { + topic: None, + privacy_level: None, + } + } +} + diff --git a/src/models/update_thread_request_partial.rs b/src/models/update_thread_request_partial.rs new file mode 100644 index 0000000..00a455c --- /dev/null +++ b/src/models/update_thread_request_partial.rs @@ -0,0 +1,93 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateThreadRequestPartial { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "archived", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub archived: Option>, + #[serde(rename = "locked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locked: Option>, + #[serde(rename = "invitable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub invitable: Option>, + #[serde(rename = "auto_archive_duration", skip_serializing_if = "Option::is_none")] + pub auto_archive_duration: Option, + #[serde(rename = "rate_limit_per_user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_limit_per_user: Option>, + #[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flags: Option>, + #[serde(rename = "applied_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub applied_tags: Option>>, + #[serde(rename = "bitrate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bitrate: Option>, + #[serde(rename = "user_limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_limit: Option>, + #[serde(rename = "rtc_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rtc_region: Option>, + #[serde(rename = "video_quality_mode", skip_serializing_if = "Option::is_none")] + pub video_quality_mode: Option, +} + +impl UpdateThreadRequestPartial { + pub fn new() -> UpdateThreadRequestPartial { + UpdateThreadRequestPartial { + name: None, + archived: None, + locked: None, + invitable: None, + auto_archive_duration: None, + rate_limit_per_user: None, + flags: None, + applied_tags: None, + bitrate: None, + user_limit: None, + rtc_region: None, + video_quality_mode: None, + } + } +} + diff --git a/src/models/update_thread_tag_request.rs b/src/models/update_thread_tag_request.rs new file mode 100644 index 0000000..e0c777a --- /dev/null +++ b/src/models/update_thread_tag_request.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateThreadTagRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "emoji_id", skip_serializing_if = "Option::is_none")] + pub emoji_id: Option, + #[serde(rename = "emoji_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emoji_name: Option>, + #[serde(rename = "moderated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub moderated: Option>, + #[serde(rename = "id", skip_serializing_if = "Option::is_none")] + pub id: Option, +} + +impl UpdateThreadTagRequest { + pub fn new(name: String) -> UpdateThreadTagRequest { + UpdateThreadTagRequest { + name, + emoji_id: None, + emoji_name: None, + moderated: None, + id: None, + } + } +} + diff --git a/src/models/update_voice_state_request.rs b/src/models/update_voice_state_request.rs new file mode 100644 index 0000000..b53c5fa --- /dev/null +++ b/src/models/update_voice_state_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateVoiceStateRequest { + #[serde(rename = "suppress", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub suppress: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl UpdateVoiceStateRequest { + pub fn new() -> UpdateVoiceStateRequest { + UpdateVoiceStateRequest { + suppress: None, + channel_id: None, + } + } +} + diff --git a/src/models/update_webhook_by_token_request.rs b/src/models/update_webhook_by_token_request.rs new file mode 100644 index 0000000..6d6b279 --- /dev/null +++ b/src/models/update_webhook_by_token_request.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateWebhookByTokenRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, +} + +impl UpdateWebhookByTokenRequest { + pub fn new() -> UpdateWebhookByTokenRequest { + UpdateWebhookByTokenRequest { + name: None, + avatar: None, + } + } +} + diff --git a/src/models/update_webhook_request.rs b/src/models/update_webhook_request.rs new file mode 100644 index 0000000..12b06be --- /dev/null +++ b/src/models/update_webhook_request.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateWebhookRequest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl UpdateWebhookRequest { + pub fn new() -> UpdateWebhookRequest { + UpdateWebhookRequest { + name: None, + avatar: None, + channel_id: None, + } + } +} + diff --git a/src/models/user_avatar_decoration_response.rs b/src/models/user_avatar_decoration_response.rs new file mode 100644 index 0000000..9d9dc98 --- /dev/null +++ b/src/models/user_avatar_decoration_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserAvatarDecorationResponse { + #[serde(rename = "asset")] + pub asset: String, + #[serde(rename = "sku_id", skip_serializing_if = "Option::is_none")] + pub sku_id: Option, +} + +impl UserAvatarDecorationResponse { + pub fn new(asset: String) -> UserAvatarDecorationResponse { + UserAvatarDecorationResponse { + asset, + sku_id: None, + } + } +} + diff --git a/src/models/user_collectibles_response.rs b/src/models/user_collectibles_response.rs new file mode 100644 index 0000000..4b9532b --- /dev/null +++ b/src/models/user_collectibles_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCollectiblesResponse { + #[serde(rename = "nameplate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub nameplate: Option>>, +} + +impl UserCollectiblesResponse { + pub fn new() -> UserCollectiblesResponse { + UserCollectiblesResponse { + nameplate: None, + } + } +} + diff --git a/src/models/user_communication_disabled_action.rs b/src/models/user_communication_disabled_action.rs new file mode 100644 index 0000000..b481ff6 --- /dev/null +++ b/src/models/user_communication_disabled_action.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCommunicationDisabledAction { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: Box, +} + +impl UserCommunicationDisabledAction { + pub fn new(r#type: i32, metadata: models::UserCommunicationDisabledActionMetadata) -> UserCommunicationDisabledAction { + UserCommunicationDisabledAction { + r#type, + metadata: Box::new(metadata), + } + } +} + diff --git a/src/models/user_communication_disabled_action_metadata.rs b/src/models/user_communication_disabled_action_metadata.rs new file mode 100644 index 0000000..b13a6c4 --- /dev/null +++ b/src/models/user_communication_disabled_action_metadata.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCommunicationDisabledActionMetadata { + #[serde(rename = "duration_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration_seconds: Option>, +} + +impl UserCommunicationDisabledActionMetadata { + pub fn new() -> UserCommunicationDisabledActionMetadata { + UserCommunicationDisabledActionMetadata { + duration_seconds: None, + } + } +} + diff --git a/src/models/user_communication_disabled_action_metadata_response.rs b/src/models/user_communication_disabled_action_metadata_response.rs new file mode 100644 index 0000000..78c7318 --- /dev/null +++ b/src/models/user_communication_disabled_action_metadata_response.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCommunicationDisabledActionMetadataResponse { + #[serde(rename = "duration_seconds")] + pub duration_seconds: i32, +} + +impl UserCommunicationDisabledActionMetadataResponse { + pub fn new(duration_seconds: i32) -> UserCommunicationDisabledActionMetadataResponse { + UserCommunicationDisabledActionMetadataResponse { + duration_seconds, + } + } +} + diff --git a/src/models/user_communication_disabled_action_response.rs b/src/models/user_communication_disabled_action_response.rs new file mode 100644 index 0000000..3475169 --- /dev/null +++ b/src/models/user_communication_disabled_action_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserCommunicationDisabledActionResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "metadata")] + pub metadata: Box, +} + +impl UserCommunicationDisabledActionResponse { + pub fn new(r#type: i32, metadata: models::UserCommunicationDisabledActionMetadataResponse) -> UserCommunicationDisabledActionResponse { + UserCommunicationDisabledActionResponse { + r#type, + metadata: Box::new(metadata), + } + } +} + diff --git a/src/models/user_guild_onboarding_response.rs b/src/models/user_guild_onboarding_response.rs new file mode 100644 index 0000000..7a08fc9 --- /dev/null +++ b/src/models/user_guild_onboarding_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserGuildOnboardingResponse { + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "prompts")] + pub prompts: Vec, + #[serde(rename = "default_channel_ids")] + pub default_channel_ids: Vec, + #[serde(rename = "enabled")] + pub enabled: bool, +} + +impl UserGuildOnboardingResponse { + pub fn new(guild_id: String, prompts: Vec, default_channel_ids: Vec, enabled: bool) -> UserGuildOnboardingResponse { + UserGuildOnboardingResponse { + guild_id, + prompts, + default_channel_ids, + enabled, + } + } +} + diff --git a/src/models/user_nameplate_response.rs b/src/models/user_nameplate_response.rs new file mode 100644 index 0000000..74c3f88 --- /dev/null +++ b/src/models/user_nameplate_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserNameplateResponse { + #[serde(rename = "sku_id", skip_serializing_if = "Option::is_none")] + pub sku_id: Option, + #[serde(rename = "asset", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub asset: Option>, + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + #[serde(rename = "palette", skip_serializing_if = "Option::is_none")] + pub palette: Option, +} + +impl UserNameplateResponse { + pub fn new() -> UserNameplateResponse { + UserNameplateResponse { + sku_id: None, + asset: None, + label: None, + palette: None, + } + } +} + diff --git a/src/models/user_pii_response.rs b/src/models/user_pii_response.rs new file mode 100644 index 0000000..0552931 --- /dev/null +++ b/src/models/user_pii_response.rs @@ -0,0 +1,114 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserPiiResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "discriminator")] + pub discriminator: String, + #[serde(rename = "public_flags")] + pub public_flags: i32, + #[serde(rename = "flags")] + pub flags: i64, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>, + #[serde(rename = "system", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub system: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "accent_color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub accent_color: Option>, + #[serde(rename = "global_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub global_name: Option>, + #[serde(rename = "avatar_decoration_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_decoration_data: Option>>, + #[serde(rename = "collectibles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub collectibles: Option>>, + #[serde(rename = "primary_guild", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub primary_guild: Option>>, + #[serde(rename = "mfa_enabled")] + pub mfa_enabled: bool, + #[serde(rename = "locale")] + pub locale: String, + #[serde(rename = "premium_type", skip_serializing_if = "Option::is_none")] + pub premium_type: Option, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "verified", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verified: Option>, +} + +impl UserPiiResponse { + pub fn new(id: String, username: String, discriminator: String, public_flags: i32, flags: i64, mfa_enabled: bool, locale: String) -> UserPiiResponse { + UserPiiResponse { + id, + username, + avatar: None, + discriminator, + public_flags, + flags, + bot: None, + system: None, + banner: None, + accent_color: None, + global_name: None, + avatar_decoration_data: None, + collectibles: None, + primary_guild: None, + mfa_enabled, + locale, + premium_type: None, + email: None, + verified: None, + } + } +} + diff --git a/src/models/user_primary_guild_response.rs b/src/models/user_primary_guild_response.rs new file mode 100644 index 0000000..df883d1 --- /dev/null +++ b/src/models/user_primary_guild_response.rs @@ -0,0 +1,69 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserPrimaryGuildResponse { + #[serde(rename = "identity_guild_id", skip_serializing_if = "Option::is_none")] + pub identity_guild_id: Option, + #[serde(rename = "identity_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_enabled: Option>, + #[serde(rename = "tag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub tag: Option>, + #[serde(rename = "badge", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub badge: Option>, +} + +impl UserPrimaryGuildResponse { + pub fn new() -> UserPrimaryGuildResponse { + UserPrimaryGuildResponse { + identity_guild_id: None, + identity_enabled: None, + tag: None, + badge: None, + } + } +} + diff --git a/src/models/user_response.rs b/src/models/user_response.rs new file mode 100644 index 0000000..fc73687 --- /dev/null +++ b/src/models/user_response.rs @@ -0,0 +1,99 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "discriminator")] + pub discriminator: String, + #[serde(rename = "public_flags")] + pub public_flags: i32, + #[serde(rename = "flags")] + pub flags: i64, + #[serde(rename = "bot", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bot: Option>, + #[serde(rename = "system", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub system: Option>, + #[serde(rename = "banner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banner: Option>, + #[serde(rename = "accent_color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub accent_color: Option>, + #[serde(rename = "global_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub global_name: Option>, + #[serde(rename = "avatar_decoration_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_decoration_data: Option>>, + #[serde(rename = "collectibles", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub collectibles: Option>>, + #[serde(rename = "primary_guild", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub primary_guild: Option>>, +} + +impl UserResponse { + pub fn new(id: String, username: String, discriminator: String, public_flags: i32, flags: i64) -> UserResponse { + UserResponse { + id, + username, + avatar: None, + discriminator, + public_flags, + flags, + bot: None, + system: None, + banner: None, + accent_color: None, + global_name: None, + avatar_decoration_data: None, + collectibles: None, + primary_guild: None, + } + } +} + diff --git a/src/models/user_select_component_for_message_request.rs b/src/models/user_select_component_for_message_request.rs new file mode 100644 index 0000000..7d31ba2 --- /dev/null +++ b/src/models/user_select_component_for_message_request.rs @@ -0,0 +1,78 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserSelectComponentForMessageRequest { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl UserSelectComponentForMessageRequest { + pub fn new(r#type: i32, custom_id: String) -> UserSelectComponentForMessageRequest { + UserSelectComponentForMessageRequest { + r#type, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/user_select_component_response.rs b/src/models/user_select_component_response.rs new file mode 100644 index 0000000..1604df4 --- /dev/null +++ b/src/models/user_select_component_response.rs @@ -0,0 +1,81 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserSelectComponentResponse { + #[serde(rename = "type")] + pub r#type: i32, + #[serde(rename = "id")] + pub id: i32, + #[serde(rename = "custom_id")] + pub custom_id: String, + #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub placeholder: Option>, + #[serde(rename = "min_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub min_values: Option>, + #[serde(rename = "max_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_values: Option>, + #[serde(rename = "disabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub disabled: Option>, + #[serde(rename = "default_values", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub default_values: Option>>, +} + +impl UserSelectComponentResponse { + pub fn new(r#type: i32, id: i32, custom_id: String) -> UserSelectComponentResponse { + UserSelectComponentResponse { + r#type, + id, + custom_id, + placeholder: None, + min_values: None, + max_values: None, + disabled: None, + default_values: None, + } + } +} + diff --git a/src/models/user_select_default_value.rs b/src/models/user_select_default_value.rs new file mode 100644 index 0000000..3acdec9 --- /dev/null +++ b/src/models/user_select_default_value.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserSelectDefaultValue { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl UserSelectDefaultValue { + pub fn new(r#type: Option, id: String) -> UserSelectDefaultValue { + UserSelectDefaultValue { + r#type, + id, + } + } +} + diff --git a/src/models/user_select_default_value_response.rs b/src/models/user_select_default_value_response.rs new file mode 100644 index 0000000..fefe865 --- /dev/null +++ b/src/models/user_select_default_value_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserSelectDefaultValueResponse { + #[serde(rename = "type", deserialize_with = "Option::deserialize")] + pub r#type: Option, + #[serde(rename = "id")] + pub id: String, +} + +impl UserSelectDefaultValueResponse { + pub fn new(r#type: Option, id: String) -> UserSelectDefaultValueResponse { + UserSelectDefaultValueResponse { + r#type, + id, + } + } +} + diff --git a/src/models/vanity_url_error_response.rs b/src/models/vanity_url_error_response.rs new file mode 100644 index 0000000..786fbda --- /dev/null +++ b/src/models/vanity_url_error_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VanityUrlErrorResponse { + #[serde(rename = "message")] + pub message: String, + #[serde(rename = "code")] + pub code: i32, +} + +impl VanityUrlErrorResponse { + pub fn new(message: String, code: i32) -> VanityUrlErrorResponse { + VanityUrlErrorResponse { + message, + code, + } + } +} + diff --git a/src/models/vanity_url_response.rs b/src/models/vanity_url_response.rs new file mode 100644 index 0000000..0628dbf --- /dev/null +++ b/src/models/vanity_url_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VanityUrlResponse { + #[serde(rename = "code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub code: Option>, + #[serde(rename = "uses")] + pub uses: i32, + #[serde(rename = "error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error: Option>>, +} + +impl VanityUrlResponse { + pub fn new(uses: i32) -> VanityUrlResponse { + VanityUrlResponse { + code: None, + uses, + error: None, + } + } +} + diff --git a/src/models/voice_region_response.rs b/src/models/voice_region_response.rs new file mode 100644 index 0000000..a97c5fa --- /dev/null +++ b/src/models/voice_region_response.rs @@ -0,0 +1,72 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VoiceRegionResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "custom")] + pub custom: bool, + #[serde(rename = "deprecated")] + pub deprecated: bool, + #[serde(rename = "optimal")] + pub optimal: bool, +} + +impl VoiceRegionResponse { + pub fn new(id: String, name: String, custom: bool, deprecated: bool, optimal: bool) -> VoiceRegionResponse { + VoiceRegionResponse { + id, + name, + custom, + deprecated, + optimal, + } + } +} + diff --git a/src/models/voice_scheduled_event_create_request.rs b/src/models/voice_scheduled_event_create_request.rs new file mode 100644 index 0000000..ac0e3fb --- /dev/null +++ b/src/models/voice_scheduled_event_create_request.rs @@ -0,0 +1,84 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VoiceScheduledEventCreateRequest { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl VoiceScheduledEventCreateRequest { + pub fn new(name: String, scheduled_start_time: String, privacy_level: Option, entity_type: Option) -> VoiceScheduledEventCreateRequest { + VoiceScheduledEventCreateRequest { + name, + description: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + privacy_level, + entity_type, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/voice_scheduled_event_patch_request_partial.rs b/src/models/voice_scheduled_event_patch_request_partial.rs new file mode 100644 index 0000000..ea56d66 --- /dev/null +++ b/src/models/voice_scheduled_event_patch_request_partial.rs @@ -0,0 +1,87 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VoiceScheduledEventPatchRequestPartial { + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time", skip_serializing_if = "Option::is_none")] + pub scheduled_start_time: Option, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "entity_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub entity_type: Option>, + #[serde(rename = "privacy_level", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub privacy_level: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl VoiceScheduledEventPatchRequestPartial { + pub fn new() -> VoiceScheduledEventPatchRequestPartial { + VoiceScheduledEventPatchRequestPartial { + status: None, + name: None, + description: None, + image: None, + scheduled_start_time: None, + scheduled_end_time: None, + entity_type: None, + privacy_level: None, + channel_id: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/voice_scheduled_event_response.rs b/src/models/voice_scheduled_event_response.rs new file mode 100644 index 0000000..89f3d70 --- /dev/null +++ b/src/models/voice_scheduled_event_response.rs @@ -0,0 +1,108 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VoiceScheduledEventResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "guild_id")] + pub guild_id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "creator_id", skip_serializing_if = "Option::is_none")] + pub creator_id: Option, + #[serde(rename = "creator", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub creator: Option>>, + #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image: Option>, + #[serde(rename = "scheduled_start_time")] + pub scheduled_start_time: String, + #[serde(rename = "scheduled_end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub scheduled_end_time: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "entity_type", deserialize_with = "Option::deserialize")] + pub entity_type: Option, + #[serde(rename = "entity_id", skip_serializing_if = "Option::is_none")] + pub entity_id: Option, + #[serde(rename = "user_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_count: Option>, + #[serde(rename = "privacy_level", deserialize_with = "Option::deserialize")] + pub privacy_level: Option, + #[serde(rename = "user_rsvp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_rsvp: Option>>, + #[serde(rename = "entity_metadata", skip_serializing_if = "Option::is_none")] + pub entity_metadata: Option, +} + +impl VoiceScheduledEventResponse { + pub fn new(id: String, guild_id: String, name: String, scheduled_start_time: String, status: Option, entity_type: Option, privacy_level: Option) -> VoiceScheduledEventResponse { + VoiceScheduledEventResponse { + id, + guild_id, + name, + description: None, + channel_id: None, + creator_id: None, + creator: None, + image: None, + scheduled_start_time, + scheduled_end_time: None, + status, + entity_type, + entity_id: None, + user_count: None, + privacy_level, + user_rsvp: None, + entity_metadata: None, + } + } +} + diff --git a/src/models/voice_state_response.rs b/src/models/voice_state_response.rs new file mode 100644 index 0000000..cc5239e --- /dev/null +++ b/src/models/voice_state_response.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct VoiceStateResponse { + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, + #[serde(rename = "deaf")] + pub deaf: bool, + #[serde(rename = "guild_id", skip_serializing_if = "Option::is_none")] + pub guild_id: Option, + #[serde(rename = "member", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub member: Option>>, + #[serde(rename = "mute")] + pub mute: bool, + #[serde(rename = "request_to_speak_timestamp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_to_speak_timestamp: Option>, + #[serde(rename = "suppress")] + pub suppress: bool, + #[serde(rename = "self_stream", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub self_stream: Option>, + #[serde(rename = "self_deaf")] + pub self_deaf: bool, + #[serde(rename = "self_mute")] + pub self_mute: bool, + #[serde(rename = "self_video")] + pub self_video: bool, + #[serde(rename = "session_id")] + pub session_id: String, + #[serde(rename = "user_id")] + pub user_id: String, +} + +impl VoiceStateResponse { + pub fn new(deaf: bool, mute: bool, suppress: bool, self_deaf: bool, self_mute: bool, self_video: bool, session_id: String, user_id: String) -> VoiceStateResponse { + VoiceStateResponse { + channel_id: None, + deaf, + guild_id: None, + member: None, + mute, + request_to_speak_timestamp: None, + suppress, + self_stream: None, + self_deaf, + self_mute, + self_video, + session_id, + user_id, + } + } +} + diff --git a/src/models/webhook_slack_embed.rs b/src/models/webhook_slack_embed.rs new file mode 100644 index 0000000..05fda40 --- /dev/null +++ b/src/models/webhook_slack_embed.rs @@ -0,0 +1,99 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WebhookSlackEmbed { + #[serde(rename = "title", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title: Option>, + #[serde(rename = "title_link", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub title_link: Option>, + #[serde(rename = "text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub text: Option>, + #[serde(rename = "color", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub color: Option>, + #[serde(rename = "ts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ts: Option>, + #[serde(rename = "pretext", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub pretext: Option>, + #[serde(rename = "footer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub footer: Option>, + #[serde(rename = "footer_icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub footer_icon: Option>, + #[serde(rename = "author_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub author_name: Option>, + #[serde(rename = "author_link", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub author_link: Option>, + #[serde(rename = "author_icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub author_icon: Option>, + #[serde(rename = "image_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub image_url: Option>, + #[serde(rename = "thumb_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub thumb_url: Option>, + #[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub fields: Option>>, +} + +impl WebhookSlackEmbed { + pub fn new() -> WebhookSlackEmbed { + WebhookSlackEmbed { + title: None, + title_link: None, + text: None, + color: None, + ts: None, + pretext: None, + footer: None, + footer_icon: None, + author_name: None, + author_link: None, + author_icon: None, + image_url: None, + thumb_url: None, + fields: None, + } + } +} + diff --git a/src/models/webhook_slack_embed_field.rs b/src/models/webhook_slack_embed_field.rs new file mode 100644 index 0000000..79356c9 --- /dev/null +++ b/src/models/webhook_slack_embed_field.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WebhookSlackEmbedField { + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub value: Option>, + #[serde(rename = "inline", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub inline: Option>, +} + +impl WebhookSlackEmbedField { + pub fn new() -> WebhookSlackEmbedField { + WebhookSlackEmbedField { + name: None, + value: None, + inline: None, + } + } +} + diff --git a/src/models/webhook_source_channel_response.rs b/src/models/webhook_source_channel_response.rs new file mode 100644 index 0000000..9e9c69d --- /dev/null +++ b/src/models/webhook_source_channel_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WebhookSourceChannelResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, +} + +impl WebhookSourceChannelResponse { + pub fn new(id: String, name: String) -> WebhookSourceChannelResponse { + WebhookSourceChannelResponse { + id, + name, + } + } +} + diff --git a/src/models/webhook_source_guild_response.rs b/src/models/webhook_source_guild_response.rs new file mode 100644 index 0000000..9ad7a36 --- /dev/null +++ b/src/models/webhook_source_guild_response.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WebhookSourceGuildResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub icon: Option>, + #[serde(rename = "name")] + pub name: String, +} + +impl WebhookSourceGuildResponse { + pub fn new(id: String, name: String) -> WebhookSourceGuildResponse { + WebhookSourceGuildResponse { + id, + icon: None, + name, + } + } +} + diff --git a/src/models/welcome_message_response.rs b/src/models/welcome_message_response.rs new file mode 100644 index 0000000..7946da3 --- /dev/null +++ b/src/models/welcome_message_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WelcomeMessageResponse { + #[serde(rename = "author_ids")] + pub author_ids: Vec, + #[serde(rename = "message")] + pub message: String, +} + +impl WelcomeMessageResponse { + pub fn new(author_ids: Vec, message: String) -> WelcomeMessageResponse { + WelcomeMessageResponse { + author_ids, + message, + } + } +} + diff --git a/src/models/welcome_screen_patch_request_partial.rs b/src/models/welcome_screen_patch_request_partial.rs new file mode 100644 index 0000000..89d2495 --- /dev/null +++ b/src/models/welcome_screen_patch_request_partial.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WelcomeScreenPatchRequestPartial { + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + #[serde(rename = "welcome_channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub welcome_channels: Option>>, + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, +} + +impl WelcomeScreenPatchRequestPartial { + pub fn new() -> WelcomeScreenPatchRequestPartial { + WelcomeScreenPatchRequestPartial { + description: None, + welcome_channels: None, + enabled: None, + } + } +} + diff --git a/src/models/widget_activity.rs b/src/models/widget_activity.rs new file mode 100644 index 0000000..1e8ff7e --- /dev/null +++ b/src/models/widget_activity.rs @@ -0,0 +1,60 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WidgetActivity { + #[serde(rename = "name")] + pub name: String, +} + +impl WidgetActivity { + pub fn new(name: String) -> WidgetActivity { + WidgetActivity { + name, + } + } +} + diff --git a/src/models/widget_channel.rs b/src/models/widget_channel.rs new file mode 100644 index 0000000..175fc2d --- /dev/null +++ b/src/models/widget_channel.rs @@ -0,0 +1,66 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WidgetChannel { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "position")] + pub position: i32, +} + +impl WidgetChannel { + pub fn new(id: String, name: String, position: i32) -> WidgetChannel { + WidgetChannel { + id, + name, + position, + } + } +} + diff --git a/src/models/widget_member.rs b/src/models/widget_member.rs new file mode 100644 index 0000000..e5b9fe2 --- /dev/null +++ b/src/models/widget_member.rs @@ -0,0 +1,96 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WidgetMember { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "discriminator", deserialize_with = "Option::deserialize")] + pub discriminator: Option, + #[serde(rename = "avatar", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar: Option>, + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "avatar_url")] + pub avatar_url: String, + #[serde(rename = "activity", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub activity: Option>>, + #[serde(rename = "deaf", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deaf: Option>, + #[serde(rename = "mute", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mute: Option>, + #[serde(rename = "self_deaf", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub self_deaf: Option>, + #[serde(rename = "self_mute", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub self_mute: Option>, + #[serde(rename = "suppress", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub suppress: Option>, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl WidgetMember { + pub fn new(id: String, username: String, discriminator: Option, status: String, avatar_url: String) -> WidgetMember { + WidgetMember { + id, + username, + discriminator, + avatar: None, + status, + avatar_url, + activity: None, + deaf: None, + mute: None, + self_deaf: None, + self_mute: None, + suppress: None, + channel_id: None, + } + } +} + diff --git a/src/models/widget_response.rs b/src/models/widget_response.rs new file mode 100644 index 0000000..0b6da4d --- /dev/null +++ b/src/models/widget_response.rs @@ -0,0 +1,75 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WidgetResponse { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "instant_invite", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub instant_invite: Option>, + #[serde(rename = "channels")] + pub channels: Vec, + #[serde(rename = "members")] + pub members: Vec, + #[serde(rename = "presence_count")] + pub presence_count: i32, +} + +impl WidgetResponse { + pub fn new(id: String, name: String, channels: Vec, members: Vec, presence_count: i32) -> WidgetResponse { + WidgetResponse { + id, + name, + instant_invite: None, + channels, + members, + presence_count, + } + } +} + diff --git a/src/models/widget_settings_response.rs b/src/models/widget_settings_response.rs new file mode 100644 index 0000000..8c59af4 --- /dev/null +++ b/src/models/widget_settings_response.rs @@ -0,0 +1,63 @@ +//! # Discord HTTP API (Preview) - REST API Client +//! +//! Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details. +//! +//! ## Metadata +//! +//! - **Copyright**: Copyright (c) 2025 Qntx +//! - **Author**: ΣX +//! - **Version**: 10 +//! - **Modified**: 2025-07-01T06:33:04.448935044Z[Etc/UTC] +//! - **Generator Version**: 7.14.0 +//! +//!
+//! ⚠️ Important Disclaimer & Limitation of Liability +//!
+//! > **IMPORTANT**: This software is provided "as is" without any warranties, express or implied, including but not limited +//! > to warranties of merchantability, fitness for a particular purpose, or non-infringement. The developers, contributors, +//! > and licensors (collectively, "Developers") make no representations regarding the accuracy, completeness, or reliability +//! > of this software or its outputs. +//! > +//! > This client is not intended to provide financial, investment, tax, or legal advice. It facilitates interaction with the +//! > Discord HTTP API (Preview) service but does not endorse or recommend any financial actions, including the purchase, sale, or holding of +//! > financial instruments (e.g., stocks, bonds, derivatives, cryptocurrencies). Users must consult qualified financial or +//! > legal professionals before making decisions based on this software's outputs. +//! > +//! > Financial markets are inherently speculative and carry significant risks. Using this software in trading, analysis, or +//! > other financial activities may result in substantial losses, including total loss of capital. The Developers are not +//! > liable for any losses or damages arising from such use. Users assume full responsibility for validating the software's +//! > outputs and ensuring their suitability for intended purposes. +//! > +//! > This client may rely on third-party data or services (e.g., market feeds, APIs). The Developers do not control or verify +//! > the accuracy of these services and are not liable for any errors, delays, or losses resulting from their use. Users must +//! > comply with third-party terms and conditions. +//! > +//! > Users are solely responsible for ensuring compliance with all applicable financial, tax, and regulatory requirements in +//! > their jurisdiction. This includes obtaining necessary licenses or approvals for trading or investment activities. The +//! > Developers disclaim liability for any legal consequences arising from non-compliance. +//! > +//! > To the fullest extent permitted by law, the Developers shall not be liable for any direct, indirect, incidental, +//! > consequential, or punitive damages arising from the use or inability to use this software, including but not limited to +//! > loss of profits, data, or business opportunities. +//! +//!
+use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct WidgetSettingsResponse { + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +impl WidgetSettingsResponse { + pub fn new(enabled: bool) -> WidgetSettingsResponse { + WidgetSettingsResponse { + enabled, + channel_id: None, + } + } +} +