Skip to content

Commit f95ded4

Browse files
committed
fix tag roles message timer
1 parent d617a4d commit f95ded4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

public/js/viewDashboard.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ class VueDashboard {
411411
const name = el.nickname || el.username;
412412
sysContent = sysContent.replace("@"+name, "<@"+el.id+">");
413413
});
414+
document.roles.forEach(el => {
415+
sysContent = sysContent.replace("@"+el.username, "<@&"+el.id+">");
416+
});
414417
formData.append("content", content);
415418
formData.append("sys_content", sysContent);
416419
formData.append("timestamp", timestamp);

0 commit comments

Comments
 (0)