1
- import { Message , NewsChannel , Permissions , TextChannel } from 'discord.js' ;
1
+ import { Message , NewsChannel , Permissions , PermissionString , TextChannel } from 'discord.js' ;
2
2
import { Identifiers } from '../lib/errors/Identifiers' ;
3
3
import type { Command } from '../lib/structures/Command' ;
4
4
import { Precondition , PreconditionContext , PreconditionResult } from '../lib/structures/Precondition' ;
@@ -49,7 +49,7 @@ export class CorePrecondition extends Precondition {
49
49
} ) ;
50
50
}
51
51
52
- public static readonly readablePermissions = {
52
+ public static readonly readablePermissions : Record < PermissionString , string > = {
53
53
ADD_REACTIONS : 'Add Reactions' ,
54
54
ADMINISTRATOR : 'Administrator' ,
55
55
ATTACH_FILES : 'Attach Files' ,
@@ -64,20 +64,22 @@ export class CorePrecondition extends Precondition {
64
64
KICK_MEMBERS : 'Kick Members' ,
65
65
MANAGE_CHANNELS : 'Manage Channels' ,
66
66
MANAGE_EMOJIS_AND_STICKERS : 'Manage Emojis and Stickers' ,
67
+ MANAGE_EVENTS : 'Manage Events' ,
67
68
MANAGE_GUILD : 'Manage Server' ,
68
69
MANAGE_MESSAGES : 'Manage Messages' ,
69
70
MANAGE_NICKNAMES : 'Manage Nicknames' ,
70
71
MANAGE_ROLES : 'Manage Roles' ,
71
72
MANAGE_THREADS : 'Manage Threads' ,
72
73
MANAGE_WEBHOOKS : 'Manage Webhooks' ,
73
74
MENTION_EVERYONE : 'Mention Everyone' ,
75
+ MODERATE_MEMBERS : 'Moderate Members' ,
74
76
MOVE_MEMBERS : 'Move Members' ,
75
77
MUTE_MEMBERS : 'Mute Members' ,
76
78
PRIORITY_SPEAKER : 'Priority Speaker' ,
77
79
READ_MESSAGE_HISTORY : 'Read Message History' ,
78
80
REQUEST_TO_SPEAK : 'Request to Speak' ,
79
- SEND_MESSAGES : 'Send Messages' ,
80
81
SEND_MESSAGES_IN_THREADS : 'Send Messages in Threads' ,
82
+ SEND_MESSAGES : 'Send Messages' ,
81
83
SEND_TTS_MESSAGES : 'Send TTS Messages' ,
82
84
SPEAK : 'Speak' ,
83
85
START_EMBEDDED_ACTIVITIES : 'Start Activities' ,
0 commit comments