File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
ChannelType ,
3
3
type ChatInputCommandInteraction ,
4
4
DMChannel ,
5
- type Message ,
5
+ Message ,
6
6
type NonThreadGuildBasedChannel ,
7
+ type PartialMessage ,
7
8
} from 'discord.js' ;
8
9
9
10
import { cache } from '../../core/cache' ;
@@ -62,8 +63,13 @@ export const reactOnEndWithQuoi = async (message: Message) => {
62
63
await reactWithFeur ( message ) ;
63
64
} ;
64
65
65
- export const reactOnEndWithQuoiUpdated = async ( _oldMessage : Message , newMessage : Message ) =>
66
- reactOnEndWithQuoi ( newMessage ) ;
66
+ export const reactOnEndWithQuoiUpdated = async (
67
+ _oldMessage : Message | PartialMessage ,
68
+ newMessage : Message | PartialMessage ,
69
+ ) => {
70
+ if ( ! ( newMessage instanceof Message ) ) return ;
71
+ await reactOnEndWithQuoi ( newMessage ) ;
72
+ } ;
67
73
68
74
export const addQuoiFeurToChannel = async ( interaction : ChatInputCommandInteraction ) => {
69
75
const { channel } = interaction ;
You can’t perform that action at this time.
0 commit comments