(argv: ArgumentsCamelCase<CommandArgs>)
| 34 | |
| 35 | |
| 36 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 37 | const command = await apiOrganizationCommand(argv) |
| 38 | |
| 39 | const id = await chooseChannel(command, argv.id, { promptMessage: 'Choose a channel to delete.' }) |
| 40 | await command.client.channels.delete(id) |
| 41 | await resetManagedConfigKey(command.cliConfig, 'defaultChannel', value => value === id) |
| 42 | console.log(`Channel ${id} deleted.`) |
| 43 | } |
| 44 | |
| 45 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 46 | export default cmd |
nothing calls this directly
no test coverage detected