DiscordAuthWebsocket
classe · Source
Discord Auth QR
Extends: EventEmitter
Constructor
new DiscordAuthWebsocket()
Properties
AuthURL
AuthURL: string
[Source](https://github.com/AltKit/discord/blob/selfbotjs/src/util/RemoteAuth.js#L73) exprire
exprire: Date
[Source](https://github.com/AltKit/discord/blob/selfbotjs/src/util/RemoteAuth.js#L80) user
user: UserRaw
[Source](https://github.com/AltKit/discord/blob/selfbotjs/src/util/RemoteAuth.js#L87) Methods
connect
connect(client?: Client): Promise<void>
Connect WS Parameters
| Name | Type | Description |
|---|---|---|
client? | Client | DiscordJS Client |
Returns: Promise<void>Source
destroy
destroy(): void
Destroy client Returns: voidSource
generateQR
generateQR(): void
Generate QR code for user to scan (Terminal) Returns: voidSource
Events
error
error: unknown
WS Error Parameters
| Name | Type | Description |
|---|---|---|
error | Error | Error |
| Source |
debug
debug: unknown
Debug Event Parameters
| Name | Type | Description |
|---|---|---|
msg | string | Debug msg |
| Source |
ready
ready: unknown
Ready Event Parameters
| Name | Type | Description |
|---|---|---|
client | DiscordAuthWebsocket | WS |
| Source |
cancel
cancel: unknown
Cancel Parameters
| Name | Type | Description |
|---|---|---|
client | DiscordAuthWebsocket | WS |
| Source |
pending
pending: unknown
Emitted whenever a user is scan QR Code. Parameters
| Name | Type | Description |
|---|---|---|
user | UserRaw | Discord User Raw |
| Source |
closed
closed: unknown
Emitted whenever a connection is closed. Source
finish
finish: unknown
Emitted whenever a real token is found. Parameters
| Name | Type | Description |
|---|---|---|
token | string | Discord Token |
| Source |