Main class + README.md

This commit is contained in:
mmacierzanka committed 2021-06-19 19:04:25 +02:00
1 parent 38f74fce6b
commit 23077912e3
2 files changed
+21 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
# DiscordCommands
+20 -1
View File
@@ -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);
}
}