File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import AsyncLock from "async-lock" ;
2
- import { parse as parseToml , TomlError } from "smol-toml" ;
3
2
import { safeParse } from "valibot" ;
4
3
import { bot } from "../.." ;
5
4
import { get_guild_config , insert_guild_config } from "../../../db/core/configs" ;
@@ -54,6 +53,8 @@ export async function install_config_change_listener(): Promise<void> {
54
53
}
55
54
56
55
async function load_config ( guild_id : string , plugin : Plugin ) : Promise < void > {
56
+ const { parse : parseToml , TomlError } = await import ( "smol-toml" ) ;
57
+
57
58
if ( plugin . config === undefined )
58
59
return ;
59
60
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"target" : " ESNext" ,
4
- "module" : " NodeNext " ,
4
+ "module" : " Node16 " ,
5
5
"strict" : true ,
6
6
"noImplicitAny" : false ,
7
7
"noUncheckedIndexedAccess" : true ,
8
- "skipLibCheck" : true
8
+ "skipLibCheck" : true ,
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments