aboutsummaryrefslogtreecommitdiff
path: root/handler
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-14 14:37:21 +0100
committerMinteck <contact@minteck.org>2022-01-14 14:37:21 +0100
commit81884db115f3f6a5d4e968fb77cc050cadb1a05e (patch)
tree040d5448c46a432facef26d4f9f9fc2823090466 /handler
parent541633055c76a0c002fb8509f106f4b449e21207 (diff)
downloadponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.gz
ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.bz2
ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.zip
v8
Diffstat (limited to 'handler')
-rw-r--r--handler/button.js2
-rw-r--r--handler/errors.js8
-rw-r--r--handler/menu.js2
3 files changed, 6 insertions, 6 deletions
diff --git a/handler/button.js b/handler/button.js
index 9cfbf95..3837a81 100644
--- a/handler/button.js
+++ b/handler/button.js
@@ -203,7 +203,7 @@ module.exports = async (interaction) => {
.setColor('#28dc46')
.setTitle(l("Thanks for suggesting", "Merci d'avoir proposé", interaction.user.id, interaction.guild ? interaction.guild.id : 0) + " \"" + keys[1] + "\"" + l("!", " !", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
.setDescription(l("Your suggestion has been sent to the developers. They can contact you later if your settings allow this to ask you more about your request.\nThanks for your help!", "Votre suggestion a bien été envoyée aux développeurs. Ils pourront vous recontacter si vos paramètres le permettent afin de vous poser plus de questions sur votre requête.\nMerci d'aider à améliorer notre système !", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
]
});
} else {
diff --git a/handler/errors.js b/handler/errors.js
index 44c216b..989adc4 100644
--- a/handler/errors.js
+++ b/handler/errors.js
@@ -13,7 +13,7 @@ module.exports = async (interaction, e) => {
.setColor('#dc2828')
.setTitle(l("An internal exception occurred", "Une erreur interne s'est produite", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
.setDescription(l("That's not your fault! The developers have already been informed about the issue and will resolve it as soon as possible.", "Ce n'est pas votre faute ! Les développeurs ont déjà été informés du problème et il sera corrigé aussi vite que possible.", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
]
});
} catch (e2) {
@@ -27,7 +27,7 @@ module.exports = async (interaction, e) => {
.setColor('#dc2828')
.setTitle("2 internal exceptions occurred")
.setDescription("That's not your fault! The developers have already been informed about the issue and will resolve it as soon as possible. We additionally weren't able to deliver you a localized error message.")
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
]
});
} catch (e3) {
@@ -38,7 +38,7 @@ module.exports = async (interaction, e) => {
.setColor('#dc2828')
.setTitle("3 internal exceptions occurred")
.setDescription("That's not your fault! The developers have already been informed about the issue and will resolve it as soon as possible. We additionally weren't able to deliver you a localized error message and/or through a reply to your command.")]
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
}).catch((e4) => {
tid = "./reports/Telemetry-Crash-" + (new Date().toISOString().replace(/[^a-zA-Z0-9]/gm, "-")) + ".txt";
fs.writeFileSync(tid, "-------------------------\nPonyfind Telemetry Report\n-------------------------\n\nReport Type:\n System Crash Report\n\n-------------------------\n\nReporter:\n " + interaction.user.tag + " (" + interaction.user.id + ")\n\nServer:\n " + (interaction.guild ? interaction.guild.name : "[Direct Messages]") + " (" + (interaction.guild ? interaction.guild.id : 0) + ")\n\nChannel:\n " + (interaction.channel ? interaction.channel.name : "[Direct Messages]") + " (" + (interaction.channel ? interaction.channel.id : 0) + ")\n\nItem:\n -\n\nReport Type:\n Automated Error Report (chained with " + e.message + ", " + e2.message + " and " + e3.message + ")\n\n-------------------------\n\n" + e4.stack)
@@ -47,7 +47,7 @@ module.exports = async (interaction, e) => {
.setColor('#dc2828')
.setTitle("4 internal exceptions occurred")
.setDescription("That's not your fault! The developers have already been informed about the issue and will resolve it as soon as possible. We additionally weren't able to deliver you a localized error message, through a reply to your command and/or through the channel you initially executed the command.")]
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
})
})
} catch (e) {}
diff --git a/handler/menu.js b/handler/menu.js
index 4b0f313..6552735 100644
--- a/handler/menu.js
+++ b/handler/menu.js
@@ -15,7 +15,7 @@ module.exports = async (interaction) => {
.setColor('#28dc46')
.setTitle(l("Thanks for reporting an issue with", "Merci d'avoir signalé un problème avec", interaction.user.id, interaction.guild ? interaction.guild.id : 0) + " \"" + keys[1] + "\"" + l("!", " !", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
.setDescription(l("Your report has been sent to the developers. They can contact you later if your settings allow this to ask you more about your issue.\nThanks for your help!", "Votre rapport a bien été envoyé aux développeurs. Ils pourront vous recontacter si vos paramètres le permettent afin de vous poser plus de questions sur le problème que vous rencontrez.\nMerci d'aider à améliorer notre système !", interaction.user.id, interaction.guild ? interaction.guild.id : 0))
- .setFooter("Ticket ID: " + tid)
+ .setFooter({ text: "Ticket ID: " + tid })
]
});
} else {