def set_nick(nick, reason = nil)
      # Discord uses the empty string to signify 'no nickname' so we convert nil into that
      nick ||= ''

      if @user.current_bot?
        API::User.change_own_nickname(@bot.token, @server.id, nick, reason)
      else
        API::Server.update_member(@bot.token, @server.id, @user.id, nick: nick, reason: nil)
      end
    end
def set_nick(nick, reason = nil)
      # Discord uses the empty string to signify 'no nickname' so we convert nil into that
      nick ||= ''

      if @user.current_bot?
        API::User.change_own_nickname(@bot.token, @server.id, nick, reason)
      else
        API::Server.update_member(@bot.token, @server.id, @user.id, nick: nick, reason: nil)
      end
    end
Sets or resets this member's nickname. Requires the Change Nickname permission for the bot itself and Manage
 Nicknames for other users.
 @param nick [String, nil] The string to set the nickname to, or nil if it should be reset.
 @param reason [String] The reason the user's nickname is being changed.