Skip to content

Commit 455db44

Browse files
committed
Added warn message if configpath undefined
1 parent dd22b3d commit 455db44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/Utils/setupMessage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ const rowStructure = [
6969
* @returns
7070
*/
7171
module.exports = (settings, ephemeral = false, components = null) => {
72+
if (!settings || !settings.configPath)
73+
return Utils.logWarning(`[Utils] [setupMessage] Invalid ${chalk.bold("configPath")}. Got undefined`)
74+
7275
let Variables = [
7376
{ searchFor: /{branding}/g, replaceWith: config.Embeds.Branding },
7477
], Embeds, Content, Components, Ephemeral = false;

0 commit comments

Comments
 (0)