Added nickname updating to commands

This commit is contained in:
2024-02-19 10:52:34 +01:00
parent 2ce15570dd
commit c71386c18b
8 changed files with 109 additions and 51 deletions

View File

@@ -155,6 +155,9 @@ export = {
}
await user.roles.add(roleManage("default").rolesToAdd, "User was force verified by " + modName)
await user.setNickname(player.displayname!, "User was force verified by " + modName).catch(() => {
// Do nothing
})
const newVerify = new verify({
_id: new mongoose.Types.ObjectId(),