Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSW committed Aug 2, 2022
1 parent 9290870 commit d951ec5
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/adapter/discord/donations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ import {
ApplicationCommandType,
ButtonInteraction,
ButtonStyle,
Client, Colors,
CommandInteraction, EmbedBuilder,
Interaction, InteractionReplyOptions, InteractionUpdateOptions, MessageEditOptions, SelectMenuComponentOptionData,
Client,
Colors,
CommandInteraction,
EmbedBuilder,
Interaction,
InteractionButtonComponentData,
InteractionReplyOptions,
InteractionUpdateOptions,
MessageEditOptions,
SelectMenuComponentOptionData,
SelectMenuInteraction
} from 'discord.js';
import {AppConfig} from '../../domain/app-config';
Expand Down Expand Up @@ -153,8 +160,8 @@ export class Donations {
type: 2,
label: translate('PAYMENT_METHOD_' + p.provider().branding.name.toUpperCase()),
customId: withPrefix(withPrefix(p.provider().branding.name, packageId.toString(10)), DONATE_MONEY),
style: 'PRIMARY',
}));
style: ButtonStyle.Primary,
} as InteractionButtonComponentData));

await interaction.update({
embeds: [this.buildPackageDetails(selectedPackage)],
Expand All @@ -167,8 +174,8 @@ export class Donations {
type: 2,
label: translate('CMD_DONATE_SELECT_ANOTHER'),
customId: PACKAGE_SELECTION,
style: 'PRIMARY',
}
style: ButtonStyle.Primary,
} as InteractionButtonComponentData,
],
}],
});
Expand Down

0 comments on commit d951ec5

Please sign in to comment.