fix(discordeno)!: Fix some errors in DiscordenoConfig (#3824)

* Fix typo, remove RecursivePartial from DiscordenoConfig.desiredProperties.properties

* Fix properties typo

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
This commit is contained in:
Fleny
2024-08-03 06:56:21 +02:00
committed by GitHub
parent 9e1ada64b8
commit 746f0a99ac
10 changed files with 27 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ export const bot = createProxyCache(
// By default, bot.logger will use an instance of the logger from @discordeno/bot, this logger supports depth and we need to change it, so we need to say to TS that we know what we are doing with as
;(bot.logger as typeof discordenoLogger).setDepth(LogDepth.Full)
// Setup desired proprieties
// Setup desired properties
bot.transformers.desiredProperties.interaction.id = true
bot.transformers.desiredProperties.interaction.type = true
bot.transformers.desiredProperties.interaction.data = true

View File

@@ -18,7 +18,7 @@ export const bot = createProxyCache(
},
)
// Setup desired proprieties
// Setup desired properties
bot.transformers.desiredProperties.interaction.id = true
bot.transformers.desiredProperties.interaction.type = true
bot.transformers.desiredProperties.interaction.data = true

View File

@@ -19,7 +19,7 @@ export const bot = createCustomBot(
overrideGatewayImplementations(bot)
// TEMPLATE-SETUP: Add/Remove the desired proprieties that you don't need
// TEMPLATE-SETUP: Add/Remove the desired properties that you don't need
const props = bot.transformers.desiredProperties
props.interaction.id = true
@@ -32,7 +32,7 @@ props.interaction.guildId = true
props.user.id = true
props.user.username = true
// TEMPLATE-SETUP: If you want/need to add any custom proprieties on the Bot type, you can do it in this function and the `CustomBot` type below. Make sure to do it in both or else you will get an error by TypeScript
// TEMPLATE-SETUP: If you want/need to add any custom properties on the Bot type, you can do it in this function and the `CustomBot` type below. Make sure to do it in both or else you will get an error by TypeScript
function createCustomBot<TBot extends Bot = Bot>(rawBot: TBot): CustomBot<TBot> {
const bot = rawBot as CustomBot<TBot>

View File

@@ -7,7 +7,7 @@ const rawBot = createBot({
intents: Intents.Guilds,
})
// Setup desired proprieties
// Setup desired properties
rawBot.transformers.desiredProperties.interaction.id = true
rawBot.transformers.desiredProperties.interaction.type = true
rawBot.transformers.desiredProperties.interaction.data = true