function select_channel() {
  if (guild === undefined) {
    return undefined;
  }

  console_out("getting channel list ready");
  let channel_list = guild.channels
    .array()
    .filter(c => c.type === "text" && channel_readable(c));
  let channel_names = channel_list.map(c => c.name);

  return channel_list[select_item(channel_names)];
}
// Returns the index of the selected channel
Returns the index of the selected channel
Returns the index of the selected channel
function select_channel() {
  if (guild === undefined) {
    return undefined;
  }
  console_out("getting channel list ready");
  let channel_list = guild.channels
    .array()
    .filter(c => c.type === "text" && channel_readable(c));
  let channel_names = channel_list.map(c => c.name);
  return channel_list[select_item(channel_names)];
}
function select_channel ( ) { if ( guild === undefined ) { return undefined ; } console_out ( "getting channel list ready" ) ; let channel_list = guild . channels . array ( ) . filter ( c => c . type === "text" && channel_readable ( c ) ) ; let channel_names = channel_list . map ( c => c . name ) ; return channel_list [ select_item ( channel_names ) ] ; }
Returns the index of the selected channel
Returns the index of the selected channel