@@ -144,7 +144,7 @@ export class Client<T extends boolean> extends Discord.Client<T> {
144
144
console . log ( `Initialized task worker "${ worker . name } "` ) ;
145
145
}
146
146
147
- public async start ( token : string ) {
147
+ public async start ( token : string ) : Promise < string > {
148
148
await this . login ( token ) ;
149
149
150
150
const [ commands , events ] = await this . load ( ) ;
@@ -244,7 +244,9 @@ export class Client<T extends boolean> extends Discord.Client<T> {
244
244
console . log ( `Created slash command "${ c . name } " (${ c . id } )` ) ;
245
245
}
246
246
} else {
247
- const mapper = ( option : Discord . ApplicationCommandOption ) => {
247
+ const mapper = (
248
+ option : Discord . ApplicationCommandOption
249
+ ) : Discord . ApplicationCommandOption => {
248
250
type Keys = keyof typeof option ;
249
251
250
252
type Values = typeof option [ Keys ] ;
@@ -297,7 +299,10 @@ export class Client<T extends boolean> extends Discord.Client<T> {
297
299
return [ this . commands . size , events . length ] ;
298
300
}
299
301
300
- public embed ( embedOptions : Discord . MessageEmbedOptions , user ?: Discord . User ) {
302
+ public embed (
303
+ embedOptions : Discord . MessageEmbedOptions ,
304
+ user ?: Discord . User
305
+ ) : Discord . MessageEmbed {
301
306
// if (!embedOptions.title?.startsWith(this.user?.username ?? "George")) {
302
307
// embedOptions.title = `${this.user?.username ?? "George"}: \`${
303
308
// embedOptions.title
@@ -323,7 +328,7 @@ export class Client<T extends boolean> extends Discord.Client<T> {
323
328
return embed ;
324
329
}
325
330
326
- public async paginate < T > ( options : PaginationOptions < T > ) {
331
+ public async paginate < T > ( options : PaginationOptions < T > ) : Promise < void > {
327
332
const {
328
333
embedOptions,
329
334
interaction,
0 commit comments