File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ export default class InventarCommand implements ApplicationCommand {
130130 } ) ;
131131
132132 collector . on ( "collect" , async i => {
133- i . deferUpdate ( ) ;
133+ void i . deferUpdate ( ) . catch ( ( ) => { } ) ;
134+
134135 switch ( i . customId ) {
135136 case "page-prev" :
136137 pageIndex = Math . max ( 0 , pageIndex - 1 ) ;
@@ -217,7 +218,7 @@ async function drawBbCircle(contents: Set<lootDataService.LootKindId>) {
217218 const img = await loadImage ( buf ) ;
218219
219220 ctx . drawImageEx ( entry . target . minus ( entry . size . scale ( 0.5 ) ) , entry . size , img ) ;
220- } catch ( err ) {
221+ } catch ( err : any ) {
221222 log . warn ( `Failed to draw inventory item '${ id } ': ${ err } ` ) ;
222223 }
223224 }
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ export default class MinCommand implements MessageCommand {
1313 const { args } = parseLegacyMessageParts ( context , message ) ;
1414
1515 if ( args . length === 0 ) {
16- message . channel . send ( "Wie wärs wenn du auch ein Alter angibst?" ) ;
16+ await message . channel . send ( "Wie wärs wenn du auch ein Alter angibst?" ) ;
1717 return ;
1818 }
1919
2020 const parsedAge = Number ( args [ 0 ] ) ;
2121
2222 if ( ! Number . isSafeInteger ( parsedAge ) ) {
23- message . channel . send ( "Das is keine Zahl bruder." ) ;
23+ await message . channel . send ( "Das is keine Zahl bruder." ) ;
2424 return ;
2525 }
2626
Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ export default class WrappedCommand implements ApplicationCommand {
195195 } ) ;
196196
197197 collector . on ( "collect" , async i => {
198- i . deferUpdate ( ) ;
198+ void i . deferUpdate ( ) . catch ( ( ) => { } ) ;
199+
199200 switch ( i . customId ) {
200201 case "wrapped-prev" :
201202 pageIndex = Math . max ( 0 , pageIndex - 1 ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default class ZusammenfassungCommand implements MessageCommand {
2626 ) ;
2727 }
2828
29- message . channel . send (
29+ await message . channel . send (
3030 `Habe ${ messages . size } Nachrichten abrufen können:\n${ authors . join ( "\n" ) } ` ,
3131 ) ;
3232 }
You can’t perform that action at this time.
0 commit comments