7DXA53YQGL4O53NUQOTRSDL4OROAJME6X37WZZMGST6TIBTXGG3AC
LL5PNIABADMCIKL7OKCQM7AIQFK363TYWU65FSVM22YAV73FWROAC
64J6B76FTOAIPF2HGPIQYU523COLWHN7QOVC3XY42PHKC3GCLMZAC
B4SKYP3Y5R7UPPGLLZV7OK3SIN4TRAJ3IL6FS3T7ZFZF5HTEQARQC
ZGMIJNFVDK7R6AF56FNCA23W5KV3HVBUBPTWMLQADCEPB3MOPELQC
ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC
6H4B4UJQ4PQULICKBZ5U55QU2BWIH2VNGRCUVYR7KDYOGC7MQU7QC
NCBEWRYEEJMJO37SHY7XCNFZYWLT5HUHCKN47UGSEY3FFWFX6QFQC
GNQD74OZ56J2R23GVUGFP3G5KVML2KDZ4OUZK6SVLSM7HVO2WOCAC
await repository.refreshStatus();
}
/**
* Delete a channel
* @param repository The repository that contains the channel
*/
@command('pijul.deleteChannel', { repository: true })
async deleteChannel (repository: Repository, targetChannel: PijulChannel): Promise<void> {
if (targetChannel.isCurrent) {
throw new Error('Cannot delete the current channel');
}
await repository.deleteChannel(targetChannel);