Skip to content

Commit

Permalink
fix: Enable all desiredProperties.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Oct 15, 2024
1 parent 3b1d78c commit 5cc7eab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/library/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ class DiscordConnection {
Discord.Intents.GuildMessages |
Discord.Intents.MessageContent,
events: eventHandlers,
defaultDesiredPropertiesValue: true,
});
for (const [customiser, handler] of Object.entries(cacheHandlers)) {
// @ts-ignore: This will be removed after updating to a new Discordeno release.
this.bot.transformers.customizers[customiser] = handler;
}
this.bot.transformers.desiredProperties =
constants.properties as unknown as Discord.Transformers["desiredProperties"];
this.bot.handlers = Discord.createBotGatewayHandlers({
// We override the `MESSAGE_UPDATE` handler to prevent Discordeno from discarding message updates when
// an embed is removed from a message.
Expand Down

0 comments on commit 5cc7eab

Please sign in to comment.