File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,9 @@ export class HelpThreadModule extends Module {
237
237
@command ( {
238
238
description : 'Help System: Ping the @Helper role from a help thread' ,
239
239
aliases : [ 'helpers' ] ,
240
+ single : true ,
240
241
} )
241
- async helper ( msg : Message ) {
242
+ async helper ( msg : Message , comment : string ) {
242
243
if ( ! isHelpThread ( msg . channel ) ) {
243
244
return sendWithMessageOwnership (
244
245
msg ,
@@ -278,7 +279,11 @@ export class HelpThreadModule extends Module {
278
279
279
280
// The beacons are lit, Gondor calls for aid
280
281
await Promise . all ( [
281
- thread . parent . send ( `<@&${ trustedRoleId } > ${ msg . channel } ` ) ,
282
+ thread . parent . send (
283
+ `<@&${ trustedRoleId } > ${ msg . channel } ${
284
+ isTrusted ? comment : ''
285
+ } `,
286
+ ) ,
282
287
this . updateHelpInfo ( thread . parent ) ,
283
288
msg . react ( '✅' ) ,
284
289
HelpThread . update ( thread . id , {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { TextChannel } from 'discord.js';
3
3
import { trustedRoleId } from '../env' ;
4
4
5
5
export const isTrustedMember : Inhibitor = async ( msg , client ) => {
6
- if ( ! msg . guild || ! msg . member || ! ( msg . channel instanceof TextChannel ) ) {
6
+ if ( ! msg . guild || ! msg . member || ! msg . channel . isText ( ) ) {
7
7
return ":warning: you can't use that command here." ;
8
8
}
9
9
You can’t perform that action at this time.
0 commit comments