Skip to content

Commit d692ccd

Browse files
gitctrlxgithub-actions[bot]
authored andcommitted
chore(dc_rest): Regen client v"10" on 2025-07-01
1 parent 56f1ca1 commit d692ccd

File tree

930 files changed

+63668
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

930 files changed

+63668
-23
lines changed

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Close Stale Pull Requests
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
days-before-pr-stale: 30 # Mark PR as stale after 30 days of inactivity
15+
days-before-pr-close: 7 # Close PR 7 days after being marked as stale
16+
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.'
17+
close-pr-message: 'This pull request has been closed due to inactivity for 7 days after being marked as stale.'
18+
stale-pr-label: 'stale' # Label to add when marking as stale
19+
exempt-pr-labels: 'pinned,security' # PRs with these labels will not be marked as stale

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
debug/
44
target/
55

6+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8+
Cargo.lock
9+
610
# These are backup files generated by rustfmt
711
**/*.rs.bk
812

Cargo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "dc_rest"
3+
version = "10.0.0"
4+
authors = ["CtrlX <gitctrlx@gmail.com>"]
5+
description = "Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details."
6+
license = "MIT"
7+
edition = "2024"
8+
9+
[dependencies]
10+
serde = { version = "^1.0", features = ["derive"] }
11+
serde_with = { version = "^3.13", default-features = false, features = ["base64", "std", "macros"] }
12+
serde_json = "^1.0"
13+
serde_repr = "^0.1"
14+
url = "^2.5"
15+
async-trait = "^0.1"
16+
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
17+
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"], optional = true }
18+
19+
[features]
20+
default = ["native-tls"]
21+
native-tls = ["reqwest/native-tls"]
22+
rustls = ["reqwest/rustls-tls"]
23+
middleware = ["reqwest-middleware"]

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 722 additions & 2 deletions
Large diffs are not rendered by default.

docs/AccountResponse.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AccountResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **String** | |
8+
**name** | Option<**String**> | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ActionRowComponentForMessageRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**r#type** | **i32** | |
8+
**components** | [**Vec<models::ActionRowComponentForMessageRequestComponentsInner>**](ActionRowComponentForMessageRequest_components_inner.md) | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ActionRowComponentForMessageRequestComponentsInner
2+
3+
## Enum Variants
4+
5+
| Name | Description |
6+
|---- | -----|
7+
| ButtonComponentForMessageRequest | |
8+
| ChannelSelectComponentForMessageRequest | |
9+
| MentionableSelectComponentForMessageRequest | |
10+
| RoleSelectComponentForMessageRequest | |
11+
| StringSelectComponentForMessageRequest | |
12+
| UserSelectComponentForMessageRequest | |
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ActionRowComponentForModalRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**r#type** | **i32** | |
8+
**components** | [**Vec<models::TextInputComponentForModalRequest>**](TextInputComponentForModalRequest.md) | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

0 commit comments

Comments
 (0)