Skip to content

Commit

Permalink
Updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
GJSBRT committed Mar 8, 2023
1 parent d7c0897 commit 671e01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/components/DiscordBot/commands/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const removeOldEmbed = async (interaction: ChatInputCommandInteraction, t
if (oldChannel?.type === ChannelType.GuildText || oldChannel?.type === ChannelType.GuildAnnouncement) {
await oldChannel.messages.delete(oldMessageId);
} else {
throw new Error(`oldChannel is not a guild text channel`);
throw new Error(`oldChannel is not a guild text or announcement channel`);
}
} else {
throw new Error(`no old message id saved, maybe was never sent, maybe it was removed`);
Expand Down

0 comments on commit 671e01d

Please sign in to comment.