48 command.execute(client, interaction);
49 } catch (error) {
50 errorCmdLogsSelect(client, interaction, error)
51 console.log(`${color.bold.red(`[INTERACTION > SELECTION: ERROR]`)} ` + `${error}`.bgRed);52 };
53 };
54 }
39 command.execute(client, interaction);
40 } catch (error) {
41 errorCmdLogsModal(client, interaction, error)
42 console.log(`${color.bold.red(`[INTERACTION > MODAL: ERROR]`)} ` + `${error}`.bgRed);43 };
44 };
45 }
105 command.execute(client, interaction);
106 } catch (error) {
107 errorCmdLogsInt(client, interaction, error)
108 console.log(`${color.bold.red(`[INTERACTION > SLASH: ERROR]`)} ` + `${error}`.bgRed);109 };
110 };
111
104 command.execute(client, interaction);
105 } catch (error) {
106 errorCmdLogsInt(client, interaction, error)
107 console.log(`${color.bold.red(`[INTERACTION > CONTEXT: ERROR]`)} ` + `${error}`.bgRed);108 };
109 };
110 }
48 command.execute(client, interaction);
49 } catch (error) {
50 errorCmdLogsButton(client, interaction, error)
51 console.log(`${color.bold.red(`[INTERACTION > BUTTON: ERROR]`)} ` + `${error}`.bgRed);52 };
53 };
54 }
In ES2015 (ES6), we can use template literals instead of string concatenation.
var str = `Hello, ${name}!`;
var str = "Hello, " + name + "!";
var str = "Time: " + (12 * 60 * 60 * 1000);
var str = "Hello World!";
var str = `Hello, ${name}!`;
var str = `Time: ${12 * 60 * 60 * 1000}`;
var str = "Hello, " + "World!";