mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user