Skip to main content
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

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

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

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

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.