diff --git a/src/framework/services/Commands.ts b/src/framework/services/Commands.ts index 95969237..c0c078e6 100644 --- a/src/framework/services/Commands.ts +++ b/src/framework/services/Commands.ts @@ -474,6 +474,7 @@ export class CommandsService { scope.setUser({ id: guild.id }); } scope.setTag('command', cmd.name); + scope.setExtra('channel', channel.id); scope.setExtra('message', message.content); captureException(error); }); diff --git a/src/moderation/commands/mod/lockdown.ts b/src/moderation/commands/mod/lockdown.ts index 1cd7c48f..2aad9bd6 100644 --- a/src/moderation/commands/mod/lockdown.ts +++ b/src/moderation/commands/mod/lockdown.ts @@ -50,7 +50,6 @@ export default class extends Command { return; } - // Get lowest role that has write permissions const scheduledUnlockActions = await this.client.scheduler.getScheduledActionsOfType( guild.id, ScheduledActionType.unlock @@ -75,6 +74,7 @@ export default class extends Command { return; } + // Get lowest role that has write permissions let lowestRole: Role | null = null; let lowestOverride: PermissionOverwrite | null = null; for (const [id, value] of channel.permissionOverwrites) {