#i show you the problem here

1 messages ยท Page 1 of 1 (latest)

short solar
tight granite
#

exports default class ExtendedClient..?

#

and then import the module in other files to use the class as your client type?

short solar
#

yes

#

Wait, now i just need to import the Extended client

tight granite
#

oh i se

short solar
short solar
#

it's not good ?

tight granite
#

Can you move defining the class to its own module

short solar
#

But, how i can start the Bot if i move the export ?

tight granite
#

import your client in index.ts

short solar
#

it's already in

#

or you mean the root index.ts ??

tight granite
#

Create a file just for the class and then create a new client in index.ts by importing your class, so you can always reference the file for the class as the type

short solar
#

OHHHH

#

i see

#

i just need to move my class in another file, and making an another index.ts ๐Ÿ˜‚

#

okayy

#

thxx

tight granite
#

no problem

#

if anything goes wrong ping me

short solar
#

Okay ^^

#

i test it tomorow, it's 2am in France ๐Ÿ˜‚