|
@@ -44,7 +44,7 @@ export class ViolationPlugin {
|
|
{
|
|
{
|
|
command: "mute",
|
|
command: "mute",
|
|
type: Mute,
|
|
type: Mute,
|
|
- start: async (member: GuildMember | PartialGuildMember, settings: GuildViolationSettings, violation: TimedViolation): Promise<void> => {
|
|
|
|
|
|
+ start: async (member: GuildMember | PartialGuildMember, settings: GuildViolationSettings): Promise<void> => {
|
|
const muteRoleResolve = await tryDo(member.guild.roles.fetch(settings.muteRoleId));
|
|
const muteRoleResolve = await tryDo(member.guild.roles.fetch(settings.muteRoleId));
|
|
if (!muteRoleResolve.ok || !muteRoleResolve.result) {
|
|
if (!muteRoleResolve.ok || !muteRoleResolve.result) {
|
|
logger.error(
|
|
logger.error(
|