@@ -25,16 +25,16 @@ export class Harmony {
2525 return this . _events
2626 }
2727
28- constructor ( ) { }
28+ constructor ( ) { }
2929
3030 public static async create ( opts : LoadHarmonyConfigOptions ) {
3131 const harmony = new Harmony ( )
3232
33- await harmony . _initConfig ( opts )
34- harmony . _initCommands ( )
35- harmony . _initEvents ( )
33+ await harmony . _initConfig ( opts )
34+ harmony . _initCommands ( )
35+ harmony . _initEvents ( )
3636
37- return harmony
37+ return harmony
3838 }
3939
4040 private async _initConfig ( opts : LoadHarmonyConfigOptions ) {
@@ -43,9 +43,9 @@ export class Harmony {
4343 }
4444
4545 private _initCommands ( ) {
46- if ( ! this . _config || ! this . _cwd ) {
47- throw new Error ( " Configuration not initialized" )
48- }
46+ if ( ! this . _config || ! this . _cwd ) {
47+ throw new Error ( ' Configuration not initialized' )
48+ }
4949 const filesPath = getAllFiles (
5050 resolve ( this . _cwd , this . _config ! . dir . commands as string )
5151 )
@@ -60,9 +60,9 @@ export class Harmony {
6060 }
6161
6262 private _initEvents ( ) {
63- if ( ! this . _config || ! this . _cwd ) {
64- throw new Error ( " Configuration not initialized" )
65- }
63+ if ( ! this . _config || ! this . _cwd ) {
64+ throw new Error ( ' Configuration not initialized' )
65+ }
6666 const filesPath = getAllFiles (
6767 resolve ( this . _cwd , this . _config . dir . events as string )
6868 )
@@ -92,13 +92,15 @@ export class Harmony {
9292 name : c . name ,
9393 description : c . description ,
9494 options : c . arguments ,
95- nsfw : c . nsfw ,
95+ nsfw : c . nsfw
9696 } )
9797 }
9898 }
9999
100100 public initClient ( ) {
101- this . _client = new Client ( { intents : [ 'Guilds' , 'GuildMessages' , 'MessageContent' ] } )
101+ this . _client = new Client ( {
102+ intents : [ 'Guilds' , 'GuildMessages' , 'MessageContent' ]
103+ } )
102104
103105 this . _refreshSlashCommands ( )
104106
0 commit comments