#How to cancel the `<username>` in front of the message

6 messages · Page 1 of 1 (latest)

novel berry
umbral sageBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

novel berry
#

How to cancel the <username> in front of the message

paper swift
#

You could just cancel the original message event and resend the content of the message in whatever format you want from the server

novel berry
#

That's exactly what I'm doing now

PlayerEvents.chat((event) => {
  const { message, server, username } = event;
  const date = new Date();

  server.tell([
    Text.darkGray(
      (date.getHours() + "").padEnd(2, 0) +
        ":" +
        (date.getMinutes() + "").padEnd(2, 0)
    ),
    " | ",
    Text.darkGreen(username),
    ": ",
    message,
  ]);

  event.cancel();
});