28 |
channel = await <TextChannel> options.options.getChannel('channel'); |
channel = await <TextChannel> options.options.getChannel('channel'); |
29 |
} |
} |
30 |
|
|
31 |
if (options.options.getChannel('role')) { |
if (options.options.getRole('role')) { |
32 |
role = await <Role> options.options.getRole('role'); |
role = await <Role> options.options.getRole('role'); |
33 |
} |
} |
34 |
} |
} |
80 |
let error = null; |
let error = null; |
81 |
|
|
82 |
if (!result) { |
if (!result) { |
83 |
error = 'This channel is already locked.'; // If you want to force unlock, run this command with `--force` option or select `True` if using slash commands.'; |
error = 'This channel is already locked' + (role.id === msg.guild!.id ? '' : ' for the given role') + '.'; |
84 |
} |
} |
85 |
|
|
86 |
if (error) { |
if (error) { |