chore(gateway)!: Remove Shard forwardToBot (#4431)

forwardToBot has been removed in favor of directly using the events.message.

the default implementation for forwardToBot used to camelize the packet, however in most cases you want to preserve the snake_case, and for those that need camelCase it can be easly done in the message event function.

This also removes the gateway.preferSnakeCase option as it no longer has a use
This commit is contained in:
Fleny
2025-09-05 08:28:48 +02:00
committed by GitHub
parent 4e08703eab
commit 96fa6e3a3f
4 changed files with 4 additions and 29 deletions
-1
View File
@@ -63,7 +63,6 @@ export function createBot<
}
options.gateway.intents = options.intents
options.gateway.preferSnakeCase = true
const id = getBotIdFromToken(options.token)