enable rest mode
parent
1e5bcc56c0
commit
3b12b26026
|
@ -5,7 +5,7 @@ import { Client } from './class';
|
|||
async function main(): Promise<void> {
|
||||
const read = await fs.readFile('../config.yaml', 'utf8');
|
||||
const config: { token: string, prefix: string, guildID: string, mongoDB: string } = parse(read);
|
||||
const client = new Client(config.token, { defaultImageFormat: 'png' });
|
||||
const client = new Client(config.token, { defaultImageFormat: 'png', restMode: true });
|
||||
client.config = config;
|
||||
await client.loadDatabase();
|
||||
client.loadPlugins();
|
||||
|
|
Loading…
Reference in New Issue