Compare commits
No commits in common. "81f58cab27c326339149b8afa340f667a06acd05" and "9ce84fb89b692c36c387c61e2673604001b3cefd" have entirely different histories.
81f58cab27
...
9ce84fb89b
|
@ -85,7 +85,7 @@ export default class AccountUtil {
|
||||||
return { account: accountInterface, tempPass };
|
return { account: accountInterface, tempPass };
|
||||||
}
|
}
|
||||||
|
|
||||||
public async lock(username: string, moderatorID: string, data?: { reason?: string, time?: number }) {
|
public async lock(username: string, moderatorID: string, data?: { reason?: string, time?: number}) {
|
||||||
const account = await this.client.db.Account.findOne({ username });
|
const account = await this.client.db.Account.findOne({ username });
|
||||||
if (!account) throw new Error('Account does not exist.');
|
if (!account) throw new Error('Account does not exist.');
|
||||||
if (account.locked) throw new Error('Account is already locked.');
|
if (account.locked) throw new Error('Account is already locked.');
|
||||||
|
|
|
@ -299,7 +299,7 @@ export default class Util {
|
||||||
.setTitle(embedTitle)
|
.setTitle(embedTitle)
|
||||||
.setColor(color)
|
.setColor(color)
|
||||||
.addField('User', `${username} | <@${userID}>`, true)
|
.addField('User', `${username} | <@${userID}>`, true)
|
||||||
.addField(archType, moderatorID === this.client.user.id ? 'SYSTEM' : `${moderator.username},${find.isManager ? ' [k] ' : ' '}(<@${moderatorID}>)`, true)
|
.addField(archType, moderatorID === this.client.user.id ? 'SYSTEM' : `${moderator.username}, ${find.pn.join(', ')} (<@${moderatorID}>)`, true)
|
||||||
.setFooter(this.client.user.username, this.client.user.avatarURL())
|
.setFooter(this.client.user.username, this.client.user.avatarURL())
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
if (reason) embed.addField('Reason', reason || 'Not specified');
|
if (reason) embed.addField('Reason', reason || 'Not specified');
|
||||||
|
|
Loading…
Reference in New Issue