You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`${color.red}[${getTimestamp()}] [INTERACTION_CREATE] Error while executing command. \n${color.red}[${getTimestamp()}] [INTERACTION_CREATE] Please check you are using the correct execute method: "async execute(interaction, client)":`,error);
console.error(`${color.red}[${getTimestamp()}] [MESSAGE_CREATE] Error while executing command. \n${color.red}[${getTimestamp()}] [MESSAGE_CREATE] Please check you are using the correct execute method: "async execute(message, client, args)":`,error);
Copy file name to clipboardexpand all lines: src/functions/handelCommands.js
+3-1
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,9 @@ module.exports = (client) => {
67
67
Routes.applicationCommands(clientId),{
68
68
body: client.commandArray
69
69
},
70
-
);
70
+
).catch((error)=>{
71
+
console.error(`${color.red}[${getTimestamp()}] [SLASH_COMMANDS] Error while refreshing application (/) commands. \n${color.red}[${getTimestamp()}] [SLASH_COMMANDS] Check if your clientID is correct and matches your bots token:`,error);
console.error(`${color.torquise}[${getTimestamp()}] [LATEST_VERSION] Error while retrieving the latest version, ${color.reset}`,error);
31
+
// Release has not yet come out yet causing this error to be thrown, just ignore it for it now.
32
+
console.error(`${color.torquise}[${getTimestamp()}] [LATEST_VERSION] Error while retrieving the latest version. No release found. ${color.reset}`);
32
33
}
33
34
}
34
35
35
36
functioncheckVersion(currentVersion){
36
37
getLatestVersion().then((latestVersion)=>{
37
38
if(currentVersion<latestVersion){
38
-
console.log(`${color.torquise}[${getTimestamp()}] [LATEST_VERSION] Attention, a new update is available, please install it - https://github.com/Kkkermit/DiscordBotV14-template`);
39
+
console.log(`${color.torquise}[${getTimestamp()}] [LATEST_VERSION] Attention, a new update is available, please install it - https://github.com/Kkkermit/Testify`);
39
40
}else{
40
41
console.log(`${color.torquise}[${getTimestamp()}] [LATEST_VERSION] You have the latest version of the code.`);
0 commit comments