Gravity
Gravity provides recommended guilds, channels, messages, activities, and topics.
Dehydrated Gravity Feed Object
A dehydrated Gravity feed identifies feed items that can be hydrated separately.
Dehydrated Gravity Feed Structure
| Field | Type | Description |
|---|---|---|
| items | array[object] | The dehydrated feed items |
| load_id | string | The ID of the feed load |
Hydrated Gravity Feed Object
A hydrated Gravity feed contains resolved message and activity items.
Hydrated Gravity Feed Structure
| Field | Type | Description |
|---|---|---|
| message_items | array[object] | The hydrated message items |
| activity_items | array[object] | The hydrated activity items |
Gravity Message Item Reference Object
A Gravity message item reference identifies a message to hydrate.
Gravity Message Item Reference Structure
| Field | Type | Description |
|---|---|---|
| channel_id | snowflake | The ID of the message's channel |
| message_id | snowflake | The ID of the message |
Gravity Guild List Object
A Gravity guild list contains guilds recommended by Gravity.
Gravity Guild List Structure
| Field | Type | Description |
|---|---|---|
| guilds | array[object] | The recommended guilds |
Endpoints
List Dehydrated Gravity Items
GET/users/@me/gravity-icymiReturns a dehydrated Gravity feed object.
Query String Params
| Field | Type | Description |
|---|---|---|
| refresh? | boolean | Whether to force a refreshed feed |
Example Response
{ "items": [], "load_id": "01J56PZ5RB9XQV3BWYMKJ7DQ94"}List Gravity Recommended Guilds
GET/gravity-recommended-guildsReturns a Gravity guild list object.
Hydrate Gravity Items
POST/gravity-contentHydrates Gravity message and activity item references. Returns a hydrated Gravity feed object on success.
JSON Params
| Field | Type | Description |
|---|---|---|
| message_items | array[Gravity message item reference object] | The message references to hydrate |
| activity_items | array[object] | The activity item references to hydrate |
Example JSON Params
{ "message_items": [ { "channel_id": "1204178985545056256", "message_id": "1262564215779856384" } ], "activity_items": []}Join Gravity Guilds
POST/guilds/gravity-joinJoins the given Gravity guild recommendations.
JSON Params
| Field | Type | Description |
|---|---|---|
| guild_ids | array[snowflake] | The IDs of the guilds to join |
| location | string | The client location initiating the guild join |
Example JSON Params
{ "guild_ids": ["1204178985545056256", "1215387377138409472"], "location": "icymi"}Get Gravity Topic Guilds
POST/gravity-topic-guildsReturns a Gravity guild list object for the requested topic categories.
JSON Params
| Field | Type | Description |
|---|---|---|
| category_ids | array[snowflake] | The IDs of the topic categories |
| offset | integer | The result offset |
Example JSON Params
{ "category_ids": ["1232035516401129472"], "offset": 0}