File tree 1 file changed +3
-1
lines changed
src/lib/utils/application-commands
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ export class ApplicationCommandRegistry {
237
237
if ( apiCall . type === InternalRegistryAPIType . ChatInput && entry . type !== ApplicationCommandType . ChatInput ) return false ;
238
238
// If the command is a context menu command, we need to check if the entry is a context menu command of the same type
239
239
if ( apiCall . type === InternalRegistryAPIType . ContextMenu ) {
240
+ // If its a chat input command, it doesn't match
240
241
if ( entry . type === ApplicationCommandType . ChatInput ) return false ;
241
- return apiCall . builtData . type === entry . type ;
242
+ // Check the command type (must match)
243
+ if ( apiCall . builtData . type !== entry . type ) return false ;
242
244
}
243
245
244
246
// Find the command by name or by id hint (mostly useful for context menus)
You can’t perform that action at this time.
0 commit comments