139 |
guild_id: msg.guild!.id, |
guild_id: msg.guild!.id, |
140 |
mod_id: msg.member!.user.id, |
mod_id: msg.member!.user.id, |
141 |
mod_tag: (msg.member!.user as User).tag, |
mod_tag: (msg.member!.user as User).tag, |
142 |
reason: banOptions.reason ?? undefined |
reason: banOptions.reason ?? undefined, |
143 |
|
createdAt: new Date() |
144 |
}); |
}); |
145 |
|
|
146 |
await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined); |
await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined); |