@@ -8,14 +8,14 @@ const event: Event = {
8
8
event : "interactionCreate" ,
9
9
execute : async ( client : WouldYou , interaction : Interaction ) => {
10
10
const user = await UserModel . findOne ( { userID : interaction . user ?. id } ) ;
11
-
12
11
if ( ! user ) {
13
12
await UserModel . create ( {
14
13
userID : interaction . user ?. id ,
15
14
} ) ;
16
15
}
17
-
16
+
18
17
if ( interaction . isChatInputCommand ( ) ) {
18
+ console . log ( `[INFO] INTERACTION ${ interaction . id } RUN BY (${ interaction . user . id } , ${ interaction . user . globalName } ) COMMAND ${ interaction . commandName } ` )
19
19
const command = client . commands . get ( interaction . commandName ) ;
20
20
if ( ! interaction . guild ) {
21
21
if ( command ?. requireGuild ) {
@@ -69,6 +69,7 @@ const event: Event = {
69
69
return ;
70
70
} ) ;
71
71
} else if ( interaction . isButton ( ) ) {
72
+ console . log ( `[INFO] INTERACTION ${ interaction . id } RUN BY (${ interaction . user . id } , ${ interaction . user . globalName } ) CLICKED ${ interaction . customId } ` )
72
73
const guildDb = await client . database . getGuild (
73
74
interaction . guildId as string ,
74
75
true ,
@@ -318,6 +319,7 @@ const event: Event = {
318
319
interaction . isMentionableSelectMenu ( ) ||
319
320
interaction . isChannelSelectMenu ( )
320
321
) {
322
+ console . log ( `[INFO] INTERACTION ${ interaction . id } RUN BY (${ interaction . user . id } , ${ interaction . user . globalName } ) MENU ${ interaction . customId } ` )
321
323
const guildDb = await client . database . getGuild (
322
324
interaction . guildId as string ,
323
325
true ,
0 commit comments