(argv: ArgumentsCamelCase<CommandArgs>)
| 44 | .epilog(buildEpilog({ command, apiDocs: 'updateChannel' })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiOrganizationCommand(argv) |
| 48 | |
| 49 | const id = await chooseChannel( |
| 50 | command, |
| 51 | argv.id, |
| 52 | { promptMessage: 'Choose a channel to update.', useConfigDefault: true }, |
| 53 | ) |
| 54 | await inputAndOutputItem<ChannelUpdate, Channel>( |
| 55 | command, |
| 56 | { tableFieldDefinitions }, |
| 57 | (_, channelMods) => command.client.channels.update(id, channelMods), |
| 58 | ) |
| 59 | } |
| 60 | |
| 61 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 62 | export default cmd |
nothing calls this directly
no test coverage detected