mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-26 06:38:25 -04:00
report more information on command message error
This commit is contained in:
parent
60a0316cbc
commit
b9fc1f5134
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@ module.exports.editOrReply = function(context, message, disableReference = false
|
|||
if(!message.allowedMentions) message.allowedMentions = {parse: [], repliedUser: false}
|
||||
// Only respond if the command is still available and we have permissions to respond.
|
||||
if(!context.message.deleted && context.channel.can(Permissions.SEND_MESSAGES)) return context.editOrReply(message).catch((e)=>
|
||||
basecamp(`<:ico_w3:1086624963047460874>\`[${process.env.HOSTNAME}]\` **\` SHARD_MESSAGE_ERROR \`** \`[Shard ${context.client.shardId}]\` Command \`${context.command.name}\` failed to reply: @ \`${Date.now()}\`\n\`\`\`js\n${e}\`\`\``)
|
||||
basecamp(`<:ico_w3:1086624963047460874>\`[${process.env.HOSTNAME}]\` **\` SHARD_MESSAGE_ERROR \`** \`[Shard ${context.client.shardId}]\` Command \`${context.message.content}\` failed to reply: @ \`${Date.now()}\`\nGuild: \`${context.guild.id}\`\nChannel: \`${context.channel.id}\`\nUser: \`${context.user.id}\`\`\`\`js\n${e}\`\`\``)
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue