File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ export const resolveHarmonixContextMenu = (
2222 const contextMenu = _jiti ( _ctmPath ) as HarmonixContextMenu
2323 const options : ContextMenuOptions = {
2424 name : contextMenu . options . name || filename ( _ctmPath ) . split ( '.' ) [ 0 ] ,
25- type : contextMenu . options . type || 'message'
25+ type : contextMenu . options . type || 'message' ,
26+ ...contextMenu . options
2627 }
2728
2829 return { options, callback : contextMenu . callback }
Original file line number Diff line number Diff line change 11import type {
22 CacheType ,
33 MessageContextMenuCommandInteraction ,
4+ PermissionsString ,
45 UserContextMenuCommandInteraction
56} from 'discord.js'
67
@@ -13,6 +14,8 @@ export type ContextMenuCallback = (
1314export interface ContextMenuOptions {
1415 name ?: string
1516 type ?: 'message' | 'user'
17+ userPermissions ?: PermissionsString [ ]
18+ preconditions ?: string [ ]
1619}
1720
1821export type DefineContextMenu = (
You can’t perform that action at this time.
0 commit comments