Skip to content

Commit 40012b8

Browse files
committed
stuff
1 parent 84e5668 commit 40012b8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ console.info("[BİLGİ] Basit Altyapı - by Kıraç Armağan Önal");
2020
let eventsPath = path.resolve("./events");
2121
await makeSureFolderExists(eventsPath);
2222

23-
config.onBeforeLoad(client);
23+
await config.onBeforeLoad(client);
2424

2525
let loadStart = Date.now();
2626
let commandFiles = await readdirRecursive(commandsPath);
@@ -249,7 +249,7 @@ console.info("[BİLGİ] Basit Altyapı - by Kıraç Armağan Önal");
249249
eventFiles = 0;
250250
loadStart = 0;
251251

252-
config.onAfterLoad(client);
252+
await config.onAfterLoad(client);
253253

254254
await client.login(config.clientToken);
255255
console.info("[BİLGİ] Discord'a bağlanıldı!", client.user.tag);

types/Config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,19 @@ class Config {
8080
this.other = arg.other || {};
8181

8282
this.commandDefaults = typeof arg.commandDefaults == "object" ? arg.commandDefaults : {
83-
aliases: [],
84-
description: "",
83+
actionType: "CHAT_INPUT",
84+
description: "Açıkla belirtilmemiş.",
8585
developerOnly: false,
8686
guildOnly: true,
8787
disabled: false,
8888
coolDown: -1,
8989
other: {},
9090
perms: {
91-
bot: ["SEND_MESSAGES"],
91+
bot: [],
9292
user: []
93-
}
93+
},
94+
options: [],
95+
defaultPermission: true
9496
};
9597

9698
if (

0 commit comments

Comments
 (0)