diff --git a/src/class/Command.ts b/src/class/Command.ts index 0fb911e..3c987de 100644 --- a/src/class/Command.ts +++ b/src/class/Command.ts @@ -1,4 +1,4 @@ -import { Message } from 'eris'; +import { Message, TextableChannel, Textable } from 'eris'; import { Client } from '..'; import { Collection } from '.'; @@ -39,4 +39,16 @@ export default class Command { this.subcommands = new Collection(); this.permissions = {}; } + + public success(channel: TextableChannel, txt: string) { + return channel.createMessage(`***${this.client.stores.emojis.success} ${txt}***`); + } + + public loading(channel: TextableChannel, txt: string) { + return channel.createMessage(`***${this.client.stores.emojis.loading} ${txt}***`); + } + + public error(channel: TextableChannel, txt: string) { + return channel.createMessage(`***${this.client.stores.emojis.error} ${txt}***`); + } }