mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Various bugfixes and change ct.anyId return to Snowflake
This commit is contained in:
parent
c932269b7d
commit
bc1330bf33
7 changed files with 19 additions and 13 deletions
|
@ -1,3 +1,4 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { GlobalPluginData } from "knub";
|
||||
import { SECONDS } from "../../../utils";
|
||||
import { GuildConfigReloaderPluginType } from "../types";
|
||||
|
@ -11,7 +12,7 @@ export async function reloadChangedGuilds(pluginData: GlobalPluginData<GuildConf
|
|||
for (const item of changedConfigs) {
|
||||
if (!item.key.startsWith("guild-")) continue;
|
||||
|
||||
const guildId = item.key.slice("guild-".length);
|
||||
const guildId = item.key.slice("guild-".length) as Snowflake;
|
||||
console.log(`Config changed, reloading guild ${guildId}`);
|
||||
await pluginData.getKnubInstance().reloadGuild(guildId);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue