feat: update modlogs usernames
parent
e826e464c9
commit
669d9d0fef
|
@ -57,6 +57,7 @@ export default class Usermod extends Command {
|
||||||
username: value,
|
username: value,
|
||||||
homepath: `/home/${value}`,
|
homepath: `/home/${value}`,
|
||||||
});
|
});
|
||||||
|
await this.client.db.Moderation.updateMany({ username: account.username }, { username: value });
|
||||||
await this.client.commands.get('notify')
|
await this.client.commands.get('notify')
|
||||||
.run(message, [value, ...`Your username has been successfully changed. Remember to use \`ssh ${value}@cloud.libraryofcode.org\` when logging in.`.split(' ')]);
|
.run(message, [value, ...`Your username has been successfully changed. Remember to use \`ssh ${value}@cloud.libraryofcode.org\` when logging in.`.split(' ')]);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue