Archived
Main class + README.md
This commit is contained in:
1 parent
38f74fce6b
commit
23077912e3
2 files changed
+21
-1
No files matched your search
+20
-1
@@ -1 +1,20 @@
|
||||
import { Client } from 'discord.js';
|
||||
//IMPORTS
|
||||
import { Client, ClientOptions } from 'discord.js';
|
||||
|
||||
//TYPE DEFINITIONS
|
||||
interface ConstructorOptions {
|
||||
name: string,
|
||||
prefix: string,
|
||||
helpCommand?: boolean,
|
||||
clientOptions?: ClientOptions
|
||||
}
|
||||
|
||||
//MAIN CLASS
|
||||
class Bot {
|
||||
name: string;
|
||||
client: Client;
|
||||
constructor(options: ConstructorOptions) {
|
||||
this.name = options.name;
|
||||
this.client = new Client(options.clientOptions);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user