16 |
await History.create(user.id, user.guild!, 'unmute', d.id, null); |
await History.create(user.id, user.guild!, 'unmute', d.id, null); |
17 |
|
|
18 |
const role = await user.guild!.roles.fetch(client.config.props[user.guild.id].mute_role); |
const role = await user.guild!.roles.fetch(client.config.props[user.guild.id].mute_role); |
19 |
await user.roles.remove(role!, 'Unmuting user'); |
try { |
20 |
|
await user.roles.remove(role!, 'Unmuting user'); |
21 |
|
} |
22 |
|
catch (e) { |
23 |
|
console.log(e); |
24 |
|
} |
25 |
|
|
26 |
const { default: Punishment } = await import('../../models/Punishment'); |
const { default: Punishment } = await import('../../models/Punishment'); |
27 |
|
|