File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/services/gamebridge/payloads Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ export default class AdminNotifyPayload extends Payload {
7777 const guild = discordClient . guilds . cache . get ( bridge . config . guildId ) ;
7878 if ( ! guild ) return ;
7979
80- const callAdminRole = guild . roles . cache . get ( bridge . config . callAdminRoleId ) ;
81-
8280 const notificationsChannel = ( await guild . channels . fetch (
8381 bridge . config . notificationsChannelId
8482 ) ) as Discord . TextChannel ;
@@ -157,9 +155,10 @@ export default class AdminNotifyPayload extends Payload {
157155 . setLabel ( "KICK Reporter" )
158156 ) ;
159157 }
158+ const callAdminRole = server . discord . config . roles . callAdmin ;
160159 try {
161160 await thread . send ( {
162- content : callAdminRole && `<@&${ callAdminRole . id } > ` ,
161+ content : `<@&${ callAdminRole } > new ingame report from ${ player . nick } ` ,
163162 embeds : [ embed ] ,
164163 components : [ row ] ,
165164 } ) ;
@@ -168,7 +167,8 @@ export default class AdminNotifyPayload extends Payload {
168167 // embed.data.fields = embed.data.fields.filter(f => f.name !== "Message");
169168
170169 await thread . send ( {
171- content : callAdminRole && `<@&${ callAdminRole . id } >` ,
170+ content :
171+ callAdminRole && `<@&${ callAdminRole } > new ingame report from ${ player . nick } ` ,
172172 files : [
173173 {
174174 name : `${ player . nick } Report.txt` ,
You can’t perform that action at this time.
0 commit comments