i have not committed in years
diff --git a/src/utils/log.ts b/src/utils/log.ts
index d807831..14e9750 100644
--- a/src/utils/log.ts
+++ b/src/utils/log.ts
@@ -10,7 +10,8 @@
export class Logger {
- renderUser(user: Discord.User) {
+ renderUser(user: Discord.User | string) {
+ if (typeof user == 'string') return `${user} [<@${user}>]`;
return `${user.username} [<@${user.id}>]`;
}
renderTime(t: number) {
@@ -45,7 +46,6 @@
}
-
async getAuditLog(guild: Discord.Guild, event) {
await wait(250)
let auditLog = await guild.fetchAuditLogs({type: event});