I have been working on a script to identify when a user alters their name on Discord by adding a period at the beginning, such as changing "bob" to ".bob". The goal is to prevent this change and keep it as "bob".
if (user.nickname.startsWith(".")) {
user.nickname = "bob";
}