Commit 7c72b497 authored by Grant's avatar Grant
Browse files

discord display name check (<80)

parent baf82013
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -274,10 +274,16 @@ class Discord_ {
  ) {
    const webhook = await this.getWebhookFor(guild_id, channel_id);

    const displayName = user.displayname
    let displayName = user.displayname
      ? user.displayname + " (" + user.userId + ")"
      : user.userId;

    if (displayName.length > 80) {
      displayName = user.userId;
    }

    displayName = displayName.slice(0, 80);

    let components = [];

    if (options.replyTo) {