added autopublish
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 6eb735e..aa7fd36 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -340,6 +340,10 @@
}
}
};
+ autoPublish: {
+ enabled: boolean;
+ channels: string[];
+ }
welcome: {
enabled: boolean;
role: string | null;
diff --git a/src/utils/memory.ts b/src/utils/memory.ts
index 870ffaf..60a6535 100644
--- a/src/utils/memory.ts
+++ b/src/utils/memory.ts
@@ -7,6 +7,7 @@
logging: GuildConfig["logging"];
tickets: GuildConfig["tickets"];
tags: GuildConfig["tags"];
+ autoPublish: GuildConfig["autoPublish"];
}
class Memory {
@@ -31,7 +32,8 @@
filters: guildData.filters,
logging: guildData.logging,
tickets: guildData.tickets,
- tags: guildData.tags
+ tags: guildData.tags,
+ autoPublish: guildData.autoPublish
});
}
return this.memory.get(guild)!;