prefix should come from client, not directly

merge-requests/1/merge
Matthew 2019-10-27 20:51:02 -04:00
parent 72e9750d2d
commit fae3eab310
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { Message } from 'eris'; import { Message } from 'eris';
import { Client, config } from '..'; import { Client } from '..';
import { Command } from '../class'; import { Command } from '../class';
export default class Announce extends Command { export default class Announce extends Command {
@ -7,7 +7,7 @@ export default class Announce extends Command {
super(client); super(client);
this.name = 'announce'; this.name = 'announce';
this.description = 'Sends an announcement to all active terminals'; this.description = 'Sends an announcement to all active terminals';
this.usage = `${config.prefix}announce Hi there! | ${config.prefix}announce -e EMERGENCY!`; this.usage = `${this.client.config.prefix}announce Hi there! | ${this.client.config.prefix}announce -e EMERGENCY!`;
this.aliases = ['ann']; this.aliases = ['ann'];
this.permissions = { roles: ['608095934399643649', '521312697896271873'] }; this.permissions = { roles: ['608095934399643649', '521312697896271873'] };
this.enabled = true; this.enabled = true;