diff --git a/src/commands/lock.ts b/src/commands/lock.ts index 49a294e..1e30dca 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -72,7 +72,7 @@ export async function runLockCommand( let warn = ""; if (channel) { - channel = guild.channels.cache.get(channel).catch(err => console.log(err)); + channel = guild.channels.cache.get(channel); channel.permissionOverwrites .edit(channel.guild.id, { SEND_MESSAGES: false,