drago.js
Version:
Framework for Discord.js
18 lines (16 loc) • 442 B
text/typescript
import { Client, Collection } from 'discord.js'
export default class Bot {
client: Client
token: string
prefix: string
commands: Collection<any, any>
constructor(token: string, prefix: string){
this.client = new Client()
this.token = token
this.prefix = prefix
this.commands = new Collection()
}
async login(){
return this.client.login(this.token)
}
}