File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Commands } from '../managers/CommandManager';
6
6
import { Locale , LocaleString } from '../util/common' ;
7
7
import { Logger } from '../util/logger/Logger' ;
8
8
import { commandAndOptionNameRegexp } from '../util/regexes' ;
9
- import type { PermissionResolvable } from 'discord.js' ;
9
+ import { PermissionResolvable , Permissions } from 'discord.js' ;
10
10
11
11
export enum CommandType {
12
12
/**
@@ -231,7 +231,9 @@ export class Command {
231
231
description : this . description ,
232
232
description_localizations : this . descriptionLocalizations ,
233
233
dm_permission : this . dmPermission ,
234
- default_member_permissions : this . defaultMemberPermissions ,
234
+ default_member_permissions : this . defaultMemberPermissions
235
+ ? new Permissions ( this . defaultMemberPermissions ) . bitfield
236
+ : null ,
235
237
options : this . arguments ?. map ( argument => argument . toJSON ( ) ) ,
236
238
type : type ,
237
239
} ;
Original file line number Diff line number Diff line change @@ -104,7 +104,10 @@ export class CommandContext<
104
104
| MessagePayload
105
105
| InteractionReplyOptions ,
106
106
) : Promise < Fetch extends true ? GuildCacheMessage < Cached > : void > {
107
- return this . deferred || this . replied || this . interaction ?. deferred || this . interaction ?. replied
107
+ return this . deferred ||
108
+ this . replied ||
109
+ this . interaction ?. deferred ||
110
+ this . interaction ?. replied
108
111
? this . editReply ( options )
109
112
: this . reply ( options ) ;
110
113
}
You can’t perform that action at this time.
0 commit comments