mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
refactor(api): drop ignored location param from thread routes (#3371)
This commit is contained in:
1 parent
c14b7d4cb3
commit
70fd9e6331
6 files changed
+3
-77
No files matched your search
@@ -84,12 +84,6 @@ Joining a locked thread needs an enrolled authenticator while the guild [MFA lev
|
||||
| --- | --- | --- |
|
||||
| channel_id | snowflake | The ID of the thread |
|
||||
|
||||
### Query parameters
|
||||
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
### Response
|
||||
|
||||
| Status | Body | Condition |
|
||||
@@ -131,12 +125,6 @@ Adding to a locked thread needs an enrolled authenticator while the guild [MFA l
|
||||
| channel_id | snowflake | The ID of the thread |
|
||||
| user_id | snowflake | The ID of the user to add |
|
||||
|
||||
### Query parameters
|
||||
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
### Response
|
||||
|
||||
| Status | Body | Condition |
|
||||
@@ -176,12 +164,6 @@ A timed-out member can leave a thread. A member who can no longer view the threa
|
||||
| --- | --- | --- |
|
||||
| channel_id | snowflake | The ID of the thread |
|
||||
|
||||
### Query parameters
|
||||
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
### Response
|
||||
|
||||
| Status | Body | Condition |
|
||||
@@ -219,12 +201,6 @@ Removing a member needs an enrolled authenticator while the guild [MFA level](/h
|
||||
| channel_id | snowflake | The ID of the thread |
|
||||
| user_id | snowflake | The ID of the user to remove |
|
||||
|
||||
### Query parameters
|
||||
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
### Response
|
||||
|
||||
| Status | Body | Condition |
|
||||
|
||||
@@ -184,7 +184,6 @@ Starts a public thread from a message in a guild text channel, or an announcemen
|
||||
| name | string | The name of the thread (1-100 characters) |
|
||||
| auto_archive_duration? | integer | The [auto archive duration](#auto-archive-durations) in minutes (default 4320) |
|
||||
| rate_limit_per_user? | integer | The slowmode interval in seconds (0-21,600) |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
`rate_limit_per_user` defaults to the `default_thread_rate_limit_per_user` of the parent, or `0` when the parent has none.
|
||||
|
||||
@@ -252,7 +251,6 @@ The parent type selects the body. Either body can be sent as multipart form data
|
||||
| auto_archive_duration? | integer | The [auto archive duration](#auto-archive-durations) in minutes (default 4320) |
|
||||
| rate_limit_per_user? | integer | The slowmode interval in seconds (0-21,600) |
|
||||
| invitable?<sup>1</sup> | boolean | Whether a member who is not a thread moderator can add members who are not thread moderators (default true) |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
<sup>1</sup> Applies only to a private thread
|
||||
|
||||
@@ -266,7 +264,6 @@ The parent type selects the body. Either body can be sent as multipart form data
|
||||
| auto_archive_duration? | integer | The [auto archive duration](#auto-archive-durations) in minutes (default 4320) |
|
||||
| rate_limit_per_user? | integer | The slowmode interval in seconds (0-21,600) |
|
||||
| type?<sup>2</sup> | integer | The thread type (`11` only) |
|
||||
| location? | string | A value Fluxer accepts and ignores (max 100 characters) |
|
||||
|
||||
<sup>1</sup> Required when the channel has `REQUIRE_TAG`. A tag marked `moderated` needs a thread moderator
|
||||
|
||||
|
||||
Reference in new issue
Block a user