Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Izocel committed May 14, 2024
1 parent f8d6a68 commit 3154842
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/commands/banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default new Command({
const channel = args.getChannel('channel', false, [ChannelType.GuildText])
?? guild.systemChannel;

interaction?.channel?.sendTyping();
await sendBanner(member, type, channel);
interaction.channel?.sendTyping();
await sendBanner(member, type, channel, interaction);
interaction.reply({ content: "Done!", ephemeral: true });
} catch (error) {
interaction.reply({ content: "Error!", ephemeral: true });
interaction?.reply({ content: "Error!", ephemeral: true });
}
}
});
Expand All @@ -48,10 +48,10 @@ export async function sendBanner(
member: GuildMember | PartialGuildMember,
type: any,
channelOverride?: any,
args?: any,
interaction?: any) {
interaction?: any,
args?: any) {
if (!member || member.user.bot) return;

const defConfigs = getGuildConfigsById("default");
const guildConfigs = getGuildConfigsById(member.guild.id) ?? defConfigs;

Expand Down

0 comments on commit 3154842

Please sign in to comment.