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 10:26:21 +05:30
committed by GitHub
co-authored by Awesome Stickz
parent 9e1ada64b8
commit 746f0a99ac
10 changed files with 27 additions and 27 deletions
+2 -2
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>