mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -63,7 +63,6 @@ export function createBot<
|
||||
}
|
||||
|
||||
options.gateway.intents = options.intents
|
||||
options.gateway.preferSnakeCase = true
|
||||
|
||||
const id = getBotIdFromToken(options.token)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user