File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- import { promises as fs } from "fs" ;
2
- import * as path from "path" ;
1
+ import { promises as fs } from "node: fs" ;
2
+ import * as path from "node: path" ;
3
3
4
4
import type { CommandFunction } from "../../types.js" ;
5
5
Original file line number Diff line number Diff line change
1
+ import { readFile } from "node:fs/promises" ;
2
+
1
3
import { type Message , type Client , cleanContent } from "discord.js" ;
2
4
import { createCanvas , loadImage , GlobalFonts } from "@napi-rs/canvas" ;
3
- import { readFile } from "fs/promises" ;
4
5
5
6
import type { SpecialCommand } from "../command.js" ;
6
7
import { countWords , substringAfter } from "../../utils/stringUtils.js" ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export default {
44
44
// by accident.
45
45
const role = guild . roles . cache . find (
46
46
r =>
47
+ // biome-ignore lint/suspicious/noMisleadingCharacterClass: somebody wrote this and it seems right
47
48
r . name . replace ( / [ \u200B - \u200D \uFEFF ] / g, "" ) ===
48
49
message . content ,
49
50
) ;
Original file line number Diff line number Diff line change 1
- import { mkdirSync } from "fs" ;
1
+ import { mkdirSync } from "node: fs" ;
2
2
3
3
import { pino , type LoggerOptions } from "pino" ;
4
4
You can’t perform that action at this time.
0 commit comments