|
import { APIEmbed } from "discord-api-types/v9"; |
|
|
import { MessageEmbedOptions } from "discord.js"; |
|
1 |
import { readFile, writeFile } from "fs"; |
import { readFile, writeFile } from "fs"; |
2 |
import path from "path"; |
import path from "path"; |
3 |
import DiscordClient from "../client/Client"; |
import DiscordClient from "../client/Client"; |
39 |
} |
} |
40 |
|
|
41 |
set(guildID: string, name: string, content: string, files: string[] = []): void { |
set(guildID: string, name: string, content: string, files: string[] = []): void { |
|
if (!this.snippets[guildID]) { |
|
|
this.snippets[guildID] = []; |
|
|
} |
|
|
|
|
42 |
this.snippets[guildID].push({ |
this.snippets[guildID].push({ |
43 |
name, |
name, |
44 |
content, |
content, |
114 |
} |
} |
115 |
} |
} |
116 |
} |
} |
|
} |
|
117 |
|
} |