Documentation Index
Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
Use this file to discover all available pages before exploring further.
The Discord plugin syncs data locally. Use corsair.discord.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.
Channels
Path: discord.db.channels.search
const rows = await corsair.discord.db.channels.search({
data: { /* filters below */ },
limit: 100,
offset: 0,
});
Searchable filters
| Field | Type | Operators |
|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
type | number | equals, gt, gte, lt, lte, in |
guild_id | string | equals, contains, startsWith, endsWith, in |
name | string | equals, contains, startsWith, endsWith, in |
topic | string | equals, contains, startsWith, endsWith, in |
position | number | equals, gt, gte, lt, lte, in |
parent_id | string | equals, contains, startsWith, endsWith, in |
last_message_id | string | equals, contains, startsWith, endsWith, in |
createdAt | date | equals, before, after, between |
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Guilds
Path: discord.db.guilds.search
const rows = await corsair.discord.db.guilds.search({
data: { /* filters below */ },
limit: 100,
offset: 0,
});
Searchable filters
| Field | Type | Operators |
|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
name | string | equals, contains, startsWith, endsWith, in |
icon | string | equals, contains, startsWith, endsWith, in |
owner_id | string | equals, contains, startsWith, endsWith, in |
approximate_member_count | number | equals, gt, gte, lt, lte, in |
approximate_presence_count | number | equals, gt, gte, lt, lte, in |
description | string | equals, contains, startsWith, endsWith, in |
premium_tier | number | equals, gt, gte, lt, lte, in |
preferred_locale | string | equals, contains, startsWith, endsWith, in |
createdAt | date | equals, before, after, between |
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Members
Path: discord.db.members.search
const rows = await corsair.discord.db.members.search({
data: { /* filters below */ },
limit: 100,
offset: 0,
});
Searchable filters
| Field | Type | Operators |
|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
guild_id | string | equals, contains, startsWith, endsWith, in |
nick | string | equals, contains, startsWith, endsWith, in |
joined_at | string | equals, contains, startsWith, endsWith, in |
premium_since | string | equals, contains, startsWith, endsWith, in |
deaf | boolean | equals |
mute | boolean | equals |
pending | boolean | equals |
createdAt | date | equals, before, after, between |
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Messages
Path: discord.db.messages.search
const rows = await corsair.discord.db.messages.search({
data: { /* filters below */ },
limit: 100,
offset: 0,
});
Searchable filters
| Field | Type | Operators |
|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
channel_id | string | equals, contains, startsWith, endsWith, in |
content | string | equals, contains, startsWith, endsWith, in |
timestamp | string | equals, contains, startsWith, endsWith, in |
edited_timestamp | string | equals, contains, startsWith, endsWith, in |
tts | boolean | equals |
mention_everyone | boolean | equals |
pinned | boolean | equals |
type | number | equals, gt, gte, lt, lte, in |
flags | number | equals, gt, gte, lt, lte, in |
createdAt | date | equals, before, after, between |
authorId | string | equals, contains, startsWith, endsWith, in |
thread_ts | string | equals, contains, startsWith, endsWith, in |
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.