fix(live_status): change reply to editReply for error handling in channel permissions

This commit is contained in:
2025-11-03 13:40:39 +01:00
parent e375fb2631
commit 4b6b2c8575

View File

@@ -30,7 +30,7 @@ const cmd : CommandDefinition = {
try { try {
message = await channel.send({components: [statusService.getUpdatedContainer(true)], flags: [MessageFlags.IsComponentsV2]}); message = await channel.send({components: [statusService.getUpdatedContainer(true)], flags: [MessageFlags.IsComponentsV2]});
} catch (error) { } catch (error) {
await interaction.reply({content: 'An error has occurred. Please check the permissions for the channel.', flags: [MessageFlags.Ephemeral]}); await interaction.editReply({content: 'An error has occurred. Please check the permissions for the channel.', flags: [MessageFlags.Ephemeral]});
return; return;
} }