Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
luphoria committed Apr 18, 2023
1 parent afa3ac6 commit a5a6af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a5a6af9

Please sign in to comment.