/[sudobot]/trunk/src/commands/moderation/SetChPermsCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/SetChPermsCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 62 by rakin, Mon Jul 29 17:28:26 2024 UTC revision 63 by rakin, Mon Jul 29 17:28:26 2024 UTC
# Line 62  export default class BanCommand extends Line 62  export default class BanCommand extends
62              }              }
63    
64              permKey = <PermissionString> options.options.getString('permission');              permKey = <PermissionString> options.options.getString('permission');
65                
66                if (FLAGS[permKey] === undefined) {
67                    await this.deferReply(msg, {
68                        content: (await fetchEmoji('error'))?.toString() + ' Invalid permission key given.',
69                        embeds: []
70                    }, true);
71    
72                    return;
73                }
74    
75              const permValueInput = <string> options.options.getString('value');              const permValueInput = <string> options.options.getString('value');
76    
77              if (permValueInput === 'true')              if (permValueInput === 'true')

Legend:
Removed from v.62  
changed lines
  Added in v.63

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26