Skip to content

Commit 80c5083

Browse files
Techbot121Meta Construct
authored andcommitted
add a short description to the message content
1 parent 67e99c8 commit 80c5083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/services/gamebridge/payloads/AdminNotifyPayload.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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`,

0 commit comments

Comments
 (0)