feat: update searchMessages

Breaking Change:
```diff
- author
- channelId
+ authors
+ channels
```
This commit is contained in:
Elysia
2023-04-28 19:46:37 +07:00
parent a5c0f09482
commit 3b793e80cd
2 changed files with 65 additions and 56 deletions

8
typings/index.d.ts vendored
View File

@@ -4260,17 +4260,19 @@ export class InteractionResponse extends Base {
}
export interface MessageSearchOptions {
author: Snowflake[];
authors: UserResolvable[];
content: string;
mentions: Snowflake[];
mentions: UserResolvable[];
has: ('link' | 'embed' | 'file' | 'video' | 'image' | 'sound' | 'sticker')[];
maxId: Snowflake;
minId: Snowflake;
channelId: Snowflake[];
channels: TextChannelResolvable[];
pinned: boolean;
nsfw: boolean;
offset: number;
limit: number;
sortBy: 'relevant' | 'timestamp';
sortOrder: 'asc' | 'desc';
}
export interface MessageSearchResult {