manual commit 2026-04-10T19:48:23Z
This commit is contained in:
@@ -877,8 +877,6 @@ async function handleCommand(interaction) {
|
||||
// /signature
|
||||
if (interaction.commandName === 'signature') {
|
||||
try {
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
|
||||
// Fetch existing signature data if it exists
|
||||
const StaffSignature = mongoose.model('StaffSignature');
|
||||
const existingSignature = await StaffSignature.findOne({ userId: interaction.user.id }).lean();
|
||||
@@ -920,7 +918,7 @@ async function handleCommand(interaction) {
|
||||
await interaction.showModal(modal);
|
||||
} catch (err) {
|
||||
console.error('Signature command error:', err);
|
||||
await interaction.editReply({ content: 'Failed to open signature settings.', ephemeral: true });
|
||||
await interaction.reply({ content: 'Failed to open signature settings.', ephemeral: true });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user