feat: Add support for Automated Message nonce handling (#10381)

* Add support for Automated Message nonce handling

* Fix options property

* Address PR feedback

* Handled case where it was explicitly set to false for that iteration to not generate a nonce, and PR feedback

* Fix lint issue

* Fix lint issue

* Move to MessagePayload.resolveBody instead

* Fix test errors

* Update packages/discord.js/src/structures/MessagePayload.js

Co-authored-by: Almeida <github@almeidx.dev>

* PR feedback

* Merge

* Let and not const

---------

Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
Jacob Morrison
2024-08-19 10:07:46 -04:00
committed by GitHub
parent 8fb400827f
commit 2ca187bd34
4 changed files with 18 additions and 3 deletions

View File

@@ -5311,6 +5311,7 @@ export interface ClientOptions {
ws?: WebSocketOptions;
rest?: Partial<RESTOptions>;
jsonTransformer?: (obj: unknown) => unknown;
enforceNonce?: boolean;
}
export type ClientPresenceStatus = 'online' | 'idle' | 'dnd';