function select_guild() {
  let guild_list = client.guilds.array();
  let guild_names = client.guilds.array().map(g => g.name);

  return guild_list[select_item(guild_names)];
}
// Returns the index of the selected guild
Returns the index of the selected guild
Returns the index of the selected guild
function select_guild() {
  let guild_list = client.guilds.array();
  let guild_names = client.guilds.array().map(g => g.name);
  return guild_list[select_item(guild_names)];
}
function select_guild ( ) { let guild_list = client . guilds . array ( ) ; let guild_names = client . guilds . array ( ) . map ( g => g . name ) ; return guild_list [ select_item ( guild_names ) ] ; }
Returns the index of the selected guild
Returns the index of the selected guild