Strip formatting in webhook name (#4344)

This commit is contained in:
triagonal 2021-07-11 23:57:46 +10:00 committed by GitHub
parent cca98e817f
commit c020526b1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ public final class DiscordUtil {
return;
}
final DiscordMessageEvent event = new DiscordMessageEvent(messageType, FormatUtil.stripFormat(message), allowPing, avatarUrl, name, uuid);
final DiscordMessageEvent event = new DiscordMessageEvent(messageType, FormatUtil.stripFormat(message), allowPing, avatarUrl, FormatUtil.stripFormat(name), uuid);
// If the server is stopping, we cannot dispatch events.
if (messageType == MessageType.DefaultTypes.SERVER_STOP) {