MGalaCyber / Discord.js-v14-Command-Handler-Template

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
a year agoa year old
Unexpected string concatenation.
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    }
Unexpected string concatenation.
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    }
Unexpected string concatenation.
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
Unexpected string concatenation.
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    }
Unexpected string concatenation.
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    }