feat: Update (see description)

```diff
+ fix: Discord Ban (invalid headers)
+ fix: acceptInvite not working (invalid captcha data)
+ feat: automod update
- feat: remove `nopecha`
- feat: remove Client#updateCookie & ClientOptions#autoCookie
```
This commit is contained in:
March 7th
2022-12-27 17:27:34 +07:00
parent e407700865
commit affcf5e166
12 changed files with 118 additions and 126 deletions

4
typings/index.d.ts vendored
View File

@@ -856,7 +856,6 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
// Added
public settings: ClientSettingManager;
public relationships: RelationshipManager;
public updateCookie(): Promise<void>;
public readonly callVoice?: VoiceConnection;
public voiceStates: VoiceStateManager;
// End
@@ -4767,7 +4766,6 @@ export interface ClientOptions {
// add
checkUpdate?: boolean;
readyStatus?: boolean;
autoCookie?: boolean;
autoRedeemNitro?: boolean;
patchVoice?: boolean;
password?: string;
@@ -4779,7 +4777,7 @@ export interface ClientOptions {
usingNewAttachmentAPI?: boolean;
}
export type captchaServices = '2captcha' | 'nopecha';
export type captchaServices = '2captcha';
// end copy