mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Strip formatting in webhook name (#4344)
This commit is contained in:
parent
cca98e817f
commit
c020526b1e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue