Skip to main content

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

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
typenumberequals, gt, gte, lt, lte, in
guild_idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
topicstringequals, contains, startsWith, endsWith, in
positionnumberequals, gt, gte, lt, lte, in
parent_idstringequals, contains, startsWith, endsWith, in
last_message_idstringequals, contains, startsWith, endsWith, in
createdAtdateequals, 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

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
iconstringequals, contains, startsWith, endsWith, in
owner_idstringequals, contains, startsWith, endsWith, in
approximate_member_countnumberequals, gt, gte, lt, lte, in
approximate_presence_countnumberequals, gt, gte, lt, lte, in
descriptionstringequals, contains, startsWith, endsWith, in
premium_tiernumberequals, gt, gte, lt, lte, in
preferred_localestringequals, contains, startsWith, endsWith, in
createdAtdateequals, 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

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
guild_idstringequals, contains, startsWith, endsWith, in
nickstringequals, contains, startsWith, endsWith, in
joined_atstringequals, contains, startsWith, endsWith, in
premium_sincestringequals, contains, startsWith, endsWith, in
deafbooleanequals
mutebooleanequals
pendingbooleanequals
createdAtdateequals, 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

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
channel_idstringequals, contains, startsWith, endsWith, in
contentstringequals, contains, startsWith, endsWith, in
timestampstringequals, contains, startsWith, endsWith, in
edited_timestampstringequals, contains, startsWith, endsWith, in
ttsbooleanequals
mention_everyonebooleanequals
pinnedbooleanequals
typenumberequals, gt, gte, lt, lte, in
flagsnumberequals, gt, gte, lt, lte, in
createdAtdateequals, before, after, between
authorIdstringequals, contains, startsWith, endsWith, in
thread_tsstringequals, 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.