style(error/command): Changing the message error
The name will not have the command name at the start (already seen in the catch message)
This commit is contained in:
parent
1241332561
commit
08dae4f787
6 changed files with 13 additions and 17 deletions
|
|
@ -101,7 +101,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -116,7 +116,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | Owner => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | Buyer => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -53,7 +53,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -222,7 +222,7 @@ export default {
|
|||
flags: MessageFlags.Ephemeral
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`⚠️ | Buyer => error when fetching infromation from the database: ${err}`);
|
||||
console.error(`⚠️ | error when fetching infromation from the database: ${err}`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot fetch the infromation of the database.`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | Owner => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -53,7 +53,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -212,7 +212,7 @@ export default {
|
|||
flags: MessageFlags.Ephemeral
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`⚠️ | Buyer => error when fetching infromation from the database: ${err}`);
|
||||
console.error(`⚠️ | error when fetching infromation from the database: ${err}`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot fetch the infromation of the database.`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -87,7 +87,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | USERINFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
@ -98,7 +98,7 @@ export default {
|
|||
try {
|
||||
targetServer = await interaction.guild.members.fetch(targetGlobal.id);
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | USERINFO => Cannot get the targetServer!\n\t\t(${err}).`);
|
||||
console.error(`\t⚠️ | Cannot get the targetServer!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot get the guild profile of the user`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
|
|
|
|||
|
|
@ -67,11 +67,7 @@ export default {
|
|||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`);
|
||||
await interaction.reply({
|
||||
content: `${emoji.answer.error} | Cannot connect to the database`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
});
|
||||
console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`);
|
||||
return;
|
||||
}
|
||||
console.log(`✅ | ${client.user.username} is now running under TTS bot`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue