def command_aliases(name)
      commands.values.select do |command|
        command.is_a?(CommandAlias) && command.aliased_command.name == name
      end
    end
def command_aliases(name)
      commands.values.select do |command|
        command.is_a?(CommandAlias) && command.aliased_command.name == name
      end
    end
Creates a new CommandBot and logs in to Discord.
 @param attributes [Hash] The attributes to initialize the CommandBot with.
 @see {Discordrb::Bot#initialize} for other attributes that should be used to create the underlying regular bot.
 @option attributes [String, Array<String>, #call] :prefix The prefix that should trigger this bot's commands. It
   can be:

   * Any string (including the empty string). This has the effect that if a message starts with the prefix, the
     prefix will be stripped and the rest of the chain will be parsed as a command chain. Note that it will be
     literal - if the prefix is "hi" then the corresponding trigger string for a command called "test" would be
     "hitest". Don't forget to put spaces in if you need them!
   * An array of prefixes. Those will behave similarly to setting one string as a prefix, but instead of only one
     string, any of the strings in the array can be used.
   * Something Proc-like (responds to :call) that takes a {Message} object as an argument and returns either
     the command chain in raw form or `nil` if the given message shouldn't be parsed. This can be used to make more
     complicated dynamic prefixes (e. g. based on server), or even something else entirely (suffixes, or most
     adventurous, infixes).
 @option attributes [true, false] :advanced_functionality Whether to enable advanced functionality (very powerful
   way to nest commands into chains, see https://github.com/meew0/discordrb/wiki/Commands#command-chain-syntax
   for info. Default is false.
 @option attributes [Symbol, Array<Symbol>, false] :help_command The name of the command that displays info for
   other commands. Use an array if you want to have aliases. Default is "help". If none should be created, use
   `false` as the value.
 @option attributes [String] :command_doesnt_exist_message The message that should be displayed if a user attempts
   to use a command that does not exist. If none is specified, no message will be displayed. In the message, you
   can use the string '%command%' that will be replaced with the name of the command.
 @option attributes [String] :no_permission_message The message to be displayed when `NoPermission` error is raised.
 @option attributes [true, false] :spaces_allowed Whether spaces are allowed to occur between the prefix and the
   command. Default is false.
 @option attributes [true, false] :webhook_commands Whether messages sent by webhooks are allowed to trigger
   commands. Default is true.
 @option attributes [Array<String, Integer, Channel>] :channels The channels this command bot accepts commands on.
   Superseded if a command has a 'channels' attribute.
 @option attributes [String] :previous Character that should designate the result of the previous command in
   a command chain (see :advanced_functionality). Default is '~'. Set to an empty string to disable.
 @option attributes [String] :chain_delimiter Character that should designate that a new command begins in the
   command chain (see :advanced_functionality). Default is '>'. Set to an empty string to disable.
 @option attributes [String] :chain_args_delim Character that should separate the command chain arguments from the
   chain itself (see :advanced_functionality). Default is ':'. Set to an empty string to disable.
 @option attributes [String] :sub_chain_start Character that should start a sub-chain (see
   :advanced_functionality). Default is '['. Set to an empty string to disable.
 @option attributes [String] :sub_chain_end Character that should end a sub-chain (see
   :advanced_functionality). Default is ']'. Set to an empty string to disable.
 @option attributes [String] :quote_start Character that should start a quoted string (see
   :advanced_functionality). Default is '"'. Set to an empty string to disable.
 @option attributes [String] :quote_end Character that should end a quoted string (see
   :advanced_functionality). Default is '"' or the same as :quote_start. Set to an empty string to disable.
 @option attributes [true, false] :ignore_bots Whether the bot should ignore bot accounts or not. Default is false.
 Returns all aliases for the command with the given name
 @param name [Symbol] the name of the `Command`
 @return [Array<CommandAlias>]