diff --git a/src/class/Client.ts b/src/class/Client.ts index edcd30f..07228ea 100644 --- a/src/class/Client.ts +++ b/src/class/Client.ts @@ -3,7 +3,7 @@ import { promises as fs } from 'fs'; import { Collection, Command, Util } from '.'; export default class Client extends eris.Client { - public config: { token: string, prefix: string }; + public config: { token: string, prefix: string, guildID: string }; public commands: Collection; diff --git a/src/main.ts b/src/main.ts index b0899ff..28aa51e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,8 +4,8 @@ import { Client } from './class'; async function main(): Promise { const read = await fs.readFile('../config.yaml', 'utf8'); - const config: { token: string, prefix: string } = parse(read); - const client = new Client(config.token); + const config: { token: string, prefix: string, guildID: string } = parse(read); + const client = new Client(config.token, { defaultImageFormat: 'png' }); client.config = config; client.loadPlugins(); await client.loadEvents();